rstudio / bookdown

Authoring Books and Technical Documents with R Markdown

Home Page:https://pkgs.rstudio.com/bookdown/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

LaTeX failed to compile TEX file. Path to images have no file extensions.

depaulats opened this issue · comments

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

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 ?