From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alan Schmitt Subject: Re: Latex "Missing number, treated as zero." Date: Mon, 02 Dec 2013 15:49:05 +0100 Message-ID: References: <529B77E3.3070400@wilkesley.net> <87siucxquf.fsf@strey.biz> <529C7071.1040009@wilkesley.net> <861u1vxs32.fsf@somewhere.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43928) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VnUqt-0003wl-IQ for emacs-orgmode@gnu.org; Mon, 02 Dec 2013 09:52:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VnUqo-0000sH-5V for emacs-orgmode@gnu.org; Mon, 02 Dec 2013 09:51:59 -0500 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:60055) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VnUqn-0000ry-W2 for emacs-orgmode@gnu.org; Mon, 02 Dec 2013 09:51:54 -0500 In-reply-to: <861u1vxs32.fsf@somewhere.org> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Sebastien Vauban Cc: emacs-orgmode@gnu.org sva-news@mygooglest.com 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