pandoc document conversion failed with error 43 : pdflatex: The memory dump file could not be found

Bharathi Boyareddigari picture Bharathi Boyareddigari · Sep 15, 2014 · Viewed 76.8k times · Source

RStudio : 0.98.994 OS: Microsoft Windows 7 Ultimate Edition, 64-bit Service Pack 1 MiKTeX: 2.9.4503

Hi,

I get the following error when I try to knit a PDF document.

pandoc.exe: Error producing PDF from TeX source. This is pdfTeX, Version 3.1415926-1.40.11 (MiKTeX 2.9) pdflatex: The memory dump file could not be found. pdflatex: Data: pdflatex.fmt

Answer

user1464473 picture user1464473 · Apr 25, 2015

I also tried devtools::install_github('rstudio/rmarkdown') but was still getting an error when I added 'fig.align='center' to a ggplot2 plot in my document. It would work as HTML, but not as PDF.

After seeing isomorphismes's post I clicked on the gear symbol next to the knit PDF button, then under the advanced tab I changed the LaTeX Engine to xelatex. After that I no longer received the error message and my PDF document was created without problems.

Thank you.