From mboxrd@z Thu Jan 1 00:00:00 1970 From: Noorul Islam K M Subject: Re: Compiling multiple times the LaTeX output Date: Wed, 29 Sep 2010 20:47:56 +0530 Message-ID: <87r5gcshnf.fsf@noorul.maa.corp.collab.net> References: <87zkv0pqyi.fsf@mundaneum.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=38652 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P0ycy-0008AA-Lx for emacs-orgmode@gnu.org; Wed, 29 Sep 2010 11:31:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1P0yRa-0003AD-CK for emacs-orgmode@gnu.org; Wed, 29 Sep 2010 11:19:45 -0400 Received: from mail-px0-f169.google.com ([209.85.212.169]:54198) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P0yRa-0003A1-2g for emacs-orgmode@gnu.org; Wed, 29 Sep 2010 11:19:42 -0400 Received: by pxi5 with SMTP id 5so499163pxi.0 for ; Wed, 29 Sep 2010 08:19:40 -0700 (PDT) In-Reply-To: <87zkv0pqyi.fsf@mundaneum.com> (=?utf-8?Q?=22S=C3=A9bastien?= Vauban"'s message of "Wed, 29 Sep 2010 16:25:09 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: =?utf-8?Q?S=C3=A9bastien?= Vauban Cc: emacs-orgmode@gnu.org S=C3=A9bastien Vauban writes: > Hello, > > I've been taught of a weird observation: the page number indicated in the= TOC > of a PDFLaTeX output is wrong by one page... > > I've re-exported my Org document. Same observation. So, it was not a prob= lem > during export or so. > > Taking the `.tex' file, and running `pdflatex' on it shows me twice this > message: > > LaTeX Warning: Label(s) may have changed. Rerun to get cross-references r= ight. > > After the 3rd compilation, everything is right in the PDF. > > Is it possible, somehow, that Org does not run `pdflatex' enough times?? > 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. %f in the command will be replaced by the full file name, %b by the file base name (i.e. without extension) and %o by the base directory of the file. The reason why this is a list is that it usually takes several runs of pdflatex, maybe mixed with a call to bibtex. Org does not have a clever mechanism to detect which of these commands have to be run to get to a stable result, and it also does not do any error checking. Alternatively, this may be a Lisp function that does the processing, so you could use this to apply the machinery of AUCTeX or the Emacs LaTeX mode. This function should accept the file name as its single argument." Thanks and Regards Noorul