emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Ian Barton <lists@wilkesley.net>
To: emacs-orgmode@gnu.org
Subject: Re: Latex "Missing number, treated as zero."
Date: Mon, 02 Dec 2013 11:35:13 +0000	[thread overview]
Message-ID: <529C7071.1040009@wilkesley.net> (raw)
In-Reply-To: <87siucxquf.fsf@strey.biz>

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.

  reply	other threads:[~2013-12-02 11:35 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-01 17:54 Latex "Missing number, treated as zero." Ian Barton
2013-12-01 20:23 ` Michael Strey
2013-12-02 11:35   ` Ian Barton [this message]
2013-12-02 13:14     ` Alan Schmitt
2013-12-02 14:09       ` Sebastien Vauban
2013-12-02 14:49         ` Alan Schmitt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=529C7071.1040009@wilkesley.net \
    --to=lists@wilkesley.net \
    --cc=emacs-orgmode@gnu.org \
    --cc=ian@manor-farm.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).