6

When I try to export a .org or .tex file to pdf with the command org-latex-export-to-pdf, I get the following error in *Messages* buffer:

Processing LaTeX file ./test.tex...
org-latex-compile: PDF file ./test.pdf wasn't produced: [LaTeX error]

I couldn't find anymore debug info. I already tried to install texlive-core and texlive-bin package from archlinux repo, but it didn't help.

EDIT: After digging further into the problem, I saw that org runs the command pdflatex file.tex, and it returned it couldn't find the file utf8x.def

closed as off-topic by Jesse, Emacs User, erikstokes, Luke, Andrew Swann Aug 16 '15 at 15:12

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "This question does not appear to be about emacs, within the scope defined in the help center." – Jesse, Emacs User, erikstokes, Luke, Andrew Swann
If this question can be reworded to fit the rules in the help center, please edit the question.

  • The Q and A do not help anyone as currently written, unless some more info is added. Voting to close, until/unless that happens. – Drew Aug 4 '15 at 14:51
  • @Drew I edited the question and answer with the exact error, if you still think it won't help anyone I'll also vote to close. Thanks – Jesse Aug 4 '15 at 15:00
  • 1
    @Dan, running pdflatex now works, so yes, it's a latex issue. But emacs doesn't tell me that, and in my search I couldn't find any help with the error returned by emacs, so I think it's a valid question. – Jesse Aug 4 '15 at 16:41
  • 1
    @Jesse: the reason I ask is that, if it's not actually Emacs related, the question makes more sense on tex.stackexchange.com – Dan Aug 4 '15 at 16:42
  • 2
    @Jessie: The LaTeX PDF export should log its output to a buffer called "*Org PDF LaTeX Output*". If that exists, try switching to it with C-x b. (Or does that not exist when you export?) – Archenoth Aug 14 '15 at 20:27
2

Installing the package texlive-latex-extra, that contains the utf8x.def file, fixed this issue for me. So for Debian based machines sudo apt-get install texlive-latex-extra should do it.

  • 4
    Can you explain what the problem was exactly. If not, then the question and answer should perhaps be deleted, as they cannot really help anyone. IOW, try to edit your answer and/or question to provide something that might help others. Otherwise, I think the question should be closed. – Drew Aug 4 '15 at 14:49

Not the answer you're looking for? Browse other questions tagged or ask your own question.