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 \graphicspath not honored consistently, if at all. #736
Comments
This shouldn't be too difficult to implement. |
Is there any way to reproduce this functionality otherwise? I keep all of my images for lecture slides in a central location, and so really need to get something like this working. For example, can I tell Pandoc to not even try to open up images itself? If it'd just spit the image path out into the TeX file without trying to check it first, it'd work when TeX built the PDF. |
@cpence In general pandoc does need to find the images, which might not even be coming from the file system (for example, if you're starting with a docx or epub, the images will be in the zip container). Currently when an image is not found, we substitute a placeholder (the emphasized alt text). It would be possible just to leave the Image node in there, and in some cases this might work (e.g. if you have an appropriate |
@cpence You can always create a small Makefile or script that uses pandoc to create a tex file, then runs pdflatex or xelatex on that to get a PDF. If you do this, it will leave the paths. |
That does it, thanks! For anyone else with this issue who's converting from Markdown to TeX, a perfect workaround is:
(Obviously the \graphicspath support would be great for converting from TeX. And if it were implemented there, perhaps Pandoc could also scan the template files looking for |
This issue breaks TeX to HTML convertion with flag |
I think this will be feasible with the archictectural
changes we're planning in pandoc 2.0.
+++ Yasuaki Uechi [Dec 26 16 23:07 ]:
… This issue breaks TeX to HTML convertion with flag --self-contained.
It would be great if pandoc can directly parse \graphicspath 👍
|
Hello!
I am using |
Proposal for dealing with this issue:
This would thread everything through the PandocMonad machinery, so graphicspath wouldn't leave a trace in the document metadata, or would we need to add it to WriterOptions. |
If I add \graphicspath{{images/}{otherimages/}} to the preamble of a Latex document, this tells Latex to look in the specified directories for images when processing \includegraphics{foo.png}. I attempted to compile a document which contains five images to EPUB. Pandoc complained like this about the fifth file:
pandoc: ././pic5.png: openBinaryFile: does not exist (No such file or directory)
Pandoc complained similarly with this test file, but complained about the first image file instead. No EPUB file was generated in either case.
The text was updated successfully, but these errors were encountered: