|
From: | Ian Barton |
Subject: | Re: [O] Latex "Missing number, treated as zero." |
Date: | Mon, 02 Dec 2013 11:35:13 +0000 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.1.1 |
On 01/12/13 20:23, Michael Strey wrote:
Hi Ian, address@hidden 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.texThe 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.
[Prev in Thread] | Current Thread | [Next in Thread] |