On 01/12/13 20:23, Michael Strey wrote:
Hi Ian,

li...@wilkesley.net writes:

This is a Latex problem, but I am hoping someone here can trow some
light on it.

No, it's not a LaTeX problem.

\documentclass{scrlttr2} \usepackage[english]{babel}  [NO-DEFAULT-PACKAGES]

This line is no valid LaTeX code.  As you already mentioned, if you
remove `[NO-DEFAULT-PACKAGES]', the pdflatex run works.

Please check your Emacs variable org-latex-classes.

Here is what I have in this variable for my letter class:

,----
|  ("letter_private" 
"\\documentclass[fontsize=11pt,strey_privat]{scrlttr2}\n\\LoadLetterOption{DIN}\n[NO-DEFAULT-PACKAGES]\n[PACKAGES]\n[EXTRA]"
|   ("\\section{%s}" . "\\section*{%s}")
|   ("\\subsection{%s}" . "\\subsection*{%s}")
|   ("\\subsubsection{%s}" . "\\subsubsection*{%s}"))
`----


Hi Michael,

Thanks for the help. I did have org-latex-classes set correctly. I discovered the cause of the problem when I found that if I let org generate the pdf file it worked correctly. However, if I used pdflatex, or xelatex from the command line on the generated tex file, I still got the error.

Looking at how org produces the pdf file it uses the "nonstopmode" in the command line arguments to pdflatex. So when I used xelatex with this option:

xelatex -interaction=nonstopmode test.tex

The pdf file was generated correctly. I don't think this actually fixes the error, but the sledgehammer approach seems to work in this case:)

Ian.


Reply via email to