-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LaTeX reader: filename without extension in \includegraphics #4933
Comments
How does latex behave? Does it have a certain list of
extensions that it tries when none is specified? In what order?
|
I just had a look at the manual available at https://ctan.org/pkg/graphicx but it doesn't say anything about default extensions. However, it mentions \def\Gin@extensions{%
.pdf,.png,.jpg,.mps,.jpeg,.jbig2,.jb2,%
.PDF,.PNG,.JPG,.JPEG,.JBIG2,.JB2%
} If both (For some reason, if only The manual also describes options and commands that can modify what extensions are tried:
I suppose that emulating all those commands would be too much, but just maybe supporting the default extensions and perhaps even |
I think it would be good enough if pandoc provides a command line parameter that sets the fallback extension if it is missing in the filename. I think in most cases that should solve the issue. |
@eilers You mean, like |
It should be possible to modify the LaTeX reader to check existence for files, when the filename has no extension, using this order: |
The following
foo.tex
compiles withpdflatex
but notpandoc
:Directory layout:
Pandoc command:
Expected result: no error.
Without
--self-contained
, the output is also unexpected (missing.png
extension):Version:
The text was updated successfully, but these errors were encountered: