Handling of image filenames that contain dots
phreeza opened this issue · 5 comments
When generating a pdf, trying to include an image file that contains dots which are not file extension separators (eg raster_190.09.png) fails with LaTeX complaining of an unknown file extension.
When writing latex, this can be avoided by placing the filename without the extension in curly brackets like so: {raster_190.09}.png which does not work from pandoc because the {} get escaped.
The simplest solution to this would be to always wrap the filenames in unescaped brackets, I think there is no case where this does any harm.
+++ Thomas McColgan [Apr 12 15 04:00 ]:
The simplest solution to this would be to always wrap the filenames in unescaped brackets, I think there is no case where this does any harm.
Great idea, I'll do that.
On second look, I think a better solution may be just adding
\include{grffile}
to the default template.
Ah I did not know about that package, fantastic! Seems to work, I agree that is an even nicer solution.
@phreeza I tried what you suggest above and it didn't seem to work. Have I misunderstood?
Ah, see https://github.com/ho-tex/oberdiek/issues/73#issuecomment-539059311
This may be due to a recent change in the latex kernel