Skip to content
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 failed to compile TEX file. Path to images have no file extensions. #1412

Open
depaulats opened this issue Mar 12, 2023 · 1 comment
Open

Comments

@depaulats
Copy link

depaulats commented Mar 12, 2023

Hey guys,

I'm getting this weird behavior when rendering my bookdown project into a PDF file. And I'm almos sure it has a quick fix, but I was not able to find any through my searches.

While my bookdownproj.Rmd file properly shows image paths, the TEX file generated from it lacks the extension on the paths for images, thus failing to compile.

For instance,

Error: LaTeX failed to compile bookdownproj.tex.
In parse_packages(...) :
Failed to find a package that contains figs/figure1

Where 'figs/figure1' above should present the path to the file, such as as 'figs/figure1.svg' or 'figs/figure1.jpg'.

It is worth noting that many them are SVG images or link to images on the internet. Do I have to generate PNG or JPG images from SVG ones or place them locally (download) prior redering the PDF file?

Thanks in advance

Thiago

@depaulats depaulats changed the title LaTeX failed to compile TEX file. Path to SVG images have no file extensions. LaTeX failed to compile TEX file. Path to images have no file extensions. Mar 12, 2023
@cderv
Copy link
Collaborator

cderv commented Mar 12, 2023

Can you share a reproducible example of your document ? Or the log file ?

Somehow the figure is assimilated in our log parsing feature as a missing dependency for which we are searching which package to install.

It should not be like that. I am curious about the content detail that trigger this for you. Can you share more ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants