Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

rstudio

pandoc

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

like image 623
Bharathi Boyareddigari Avatar asked Sep 15 '14 20:09

Bharathi Boyareddigari


2 Answers

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.

like image 67
user1464473 Avatar answered Oct 06 '22 13:10

user1464473


I found the answer here: http://rmarkdown.rstudio.com/tufte_handout_format.html#comment-1582377678

The problem is that you need to add \usepackage[utf8]{inputnc} to the preamble of the tufte-handout.tex file in the rmarkdown package.

This was fixed here: https://github.com/rstudio/rmarkdown/commit/484d5b8e903e0e0c75c82f707efa35f9fd9a52b0

To update your rmarkdown package, you can use directly in the RStudio command line

devtools::install_github("rstudio/rmarkdown") 
like image 29
David LeBauer Avatar answered Oct 06 '22 14:10

David LeBauer