From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Barton Subject: Re: Latex "Missing number, treated as zero." Date: Mon, 02 Dec 2013 11:35:13 +0000 Message-ID: <529C7071.1040009@wilkesley.net> References: <529B77E3.3070400@wilkesley.net> <87siucxquf.fsf@strey.biz> Reply-To: ian@manor-farm.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50973) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VnRmj-0006S9-Jv for emacs-orgmode@gnu.org; Mon, 02 Dec 2013 06:35:35 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VnRmb-0004CF-Is for emacs-orgmode@gnu.org; Mon, 02 Dec 2013 06:35:29 -0500 Received: from mail2.wilkesley.net ([109.74.196.44]:34473 helo=li40-130.members.linode.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VnRmb-0004CA-DR for emacs-orgmode@gnu.org; Mon, 02 Dec 2013 06:35:21 -0500 Received: from scamper2.bantercat.co.uk (unknown [46.33.134.31]) (Authenticated sender: lists@wilkesley.net) by li40-130.members.linode.com (Postfix) with ESMTPSA id 056B4124F88 for ; Mon, 2 Dec 2013 11:35:19 +0000 (UTC) In-Reply-To: <87siucxquf.fsf@strey.biz> 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: emacs-orgmode@gnu.org On 01/12/13 20:23, Michael Strey wrote: > Hi Ian, > > lists@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.