emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [Orgmode] Re: [PATCH] Compiling multiple times the LaTeX output


From: Nick Dokos
Subject: Re: [Orgmode] Re: [PATCH] Compiling multiple times the LaTeX output
Date: Fri, 01 Oct 2010 12:12:21 -0400

Sébastien Vauban <address@hidden> wrote:

> Hi Nick,
> 
> Nick Dokos wrote:
> > Sébastien Vauban <address@hidden> wrote:
> >> Noorul Islam K M wrote:
> >> > Sébastien Vauban <address@hidden> writes:
> >> >> I've been taught of a weird observation: the page number indicated in
> >> >> the TOC of a PDFLaTeX output is wrong by one page...
> >> >
> >> > Quoting from source code
> >> >
> >> > (defcustom org-latex-to-pdf-process
> >> >   '("pdflatex -interaction nonstopmode -output-directory %o %f"
> >> >     "pdflatex -interaction nonstopmode -output-directory %o %f")
> >> >   "Commands to process a LaTeX file to a PDF file.
> >> > This is a list of strings, each of them will be given to the shell
> >> > as a command.
> >> 
> >> Attached my proposed patch for fixing this, regarding the TOC error 
> >> (needed a
> >> third compilation). Here, as many compilations as necessary are run, up to
> >> when LaTeX confirms the result is stable (no message "please re-run...").
> >
> > I don't know if that's still the case, but there were (rare) situations
> > where that would *never* happen: LaTeX would oscillate between two different
> > states of output, so you always needed to do one more compilation. The only
> > fix was to rearrange the *input* sligthly to try to get LaTeX out of its
> > rut.
> 
> In years of LaTeX use, that's something that I never have had to play with. I
> think such experiences are close to 0 in one full LaTeX live. Though, yes, it
> can happen.
> 

Me neither - it is really rare. See

   http://www.tex.ac.uk/cgi-bin/texfaq2html?label=rerun

for one possibility.

OTOH, I have never had a document that requires more than 3 compilations to get
references right either, although I'm sure that they exist. That's what the "3"
suggestion was based on.

> 
> > It may be wise to limit the number of compilations to 3 (but perhaps make it
> > configurable, so that it can be increased if necessary).
> 
> Nice idea. I'll try to see if I can come up with something like that.
> 

Cheers,
Nick




reply via email to

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