emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Latex "Missing number, treated as zero."


From: Alan Schmitt
Subject: Re: [O] Latex "Missing number, treated as zero."
Date: Mon, 02 Dec 2013 14:14:58 +0100
User-agent: mu4e 0.9.9.6pre2; emacs 24.3.1

address@hidden writes:

>> 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}"))
>> `----

I think this letter class is wrong. Here is mine for beamer (note the
"\[" before the options to be substituted by the export process):

--8<---------------cut here---------------start------------->8---
(add-to-list 'org-latex-classes
             '("beamer"
               "\\documentclass[presentation]{beamer}
\[DEFAULT-PACKAGES]
\[PACKAGES]
\[EXTRA]"
               ("\\section{%s}" . "\\section*{%s}")
               ("\\subsection{%s}" . "\\subsection*{%s}")
               ("\\subsubsection{%s}" . "\\subsubsection*{%s}")))
--8<---------------cut here---------------end--------------->8---

> 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

This tell latex to continue compiling even if there are errors. I'm not
sure you want to rely on this.

Alan



reply via email to

[Prev in Thread] Current Thread [Next in Thread]