From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Thomas S. Dye" Subject: Re: Re: [PATCH] Compiling multiple times the LaTeX output Date: Fri, 1 Oct 2010 05:32:47 -1000 Message-ID: References: <87zkv0pqyi.fsf@mundaneum.com> <87r5gcshnf.fsf@noorul.maa.corp.collab.net> <874od7uzsa.fsf_-_@mundaneum.com> <30671.1285861145@gamaville.dokosmarshall.org> <87vd5njhm8.fsf@mundaneum.com> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=58044 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P1hbb-0007h1-Mt for emacs-orgmode@gnu.org; Fri, 01 Oct 2010 11:33:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P1hbT-00067k-8h for emacs-orgmode@gnu.org; Fri, 01 Oct 2010 11:33:03 -0400 Received: from oproxy3-pub.bluehost.com ([69.89.21.8]:50938) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1P1hbS-000671-VV for emacs-orgmode@gnu.org; Fri, 01 Oct 2010 11:32:55 -0400 In-Reply-To: <87vd5njhm8.fsf@mundaneum.com> 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: =?ISO-8859-1?Q?S=E9bastien_Vauban?= Cc: emacs-orgmode@gnu.org On Sep 30, 2010, at 6:55 AM, S=E9bastien Vauban wrote: > Hi Nick, > > Nick Dokos wrote: >> S=E9bastien Vauban wrote: >>> Noorul Islam K M wrote: >>>> S=E9bastien Vauban writes: >>>>> I've been taught of a weird observation: the page number =20 >>>>> 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 =20 >>> error (needed a >>> third compilation). Here, as many compilations as necessary are =20 >>> run, up to >>> when LaTeX confirms the result is stable (no message "please re-=20 >>> run..."). >> >> I don't know if that's still the case, but there were (rare) =20 >> situations >> where that would *never* happen: LaTeX would oscillate between two =20= >> different >> states of output, so you always needed to do one more compilation. =20= >> The only >> fix was to rearrange the *input* sligthly to try to get LaTeX out =20 >> of its >> rut. > > In years of LaTeX use, that's something that I never have had to =20 > play with. I > think such experiences are close to 0 in one full LaTeX live. =20 > Though, yes, it > can happen. > > >> It may be wise to limit the number of compilations to 3 (but =20 >> 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. > > Best regards, > Seb > > --=20 > S=E9bastien Vauban > > Aloha Seb, This will be a nice addition to Org-mode. All the best, Tom=