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 15:49:05 +0100
User-agent: mu4e 0.9.9.6pre2; emacs 24.3.1

address@hidden writes:

> Alan Schmitt wrote:
>> I think this letter class is wrong. Here is mine for beamer (note the
>> "\[" before the options to be substituted by the export process):
>>
>> (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}")))
>
> Note that you don't need to escape the `[' with `\': it's not a regexp simply
> a string; hence, `[' does not need to be escaped.

Ah, good to know, thanks for the information. I forgot were I copied
this snippet, but I see that the example at
http://orgmode.org/worg/exporters/beamer/ox-beamer.html also escapes
many things.

Alan



reply via email to

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