My personal patches-in-progress branch of Org. See https://git.tecosaur.net/mirrors/org-mode/compare/main..tec/org-mode:dev.
Find a file
Sébastien Vauban 3d13b8e687 Compiling multiple times the LaTeX output
* lisp/org-latex.el (org-latex-to-pdf-process): Add a third pdflatex run.

Hi Carsten,

Carsten Dominik wrote:
> I have just pushed a fix which will use texi2dvi when available. The echo
> area will now also give an indication of the kinds of errors that happened
> during the final pdflatex run.

Thanks to Matthew for the info about texi2dvi!

> This is a big improvement, thanks to Sebastian for kicking off this
> discussion, and to all who contributed.

You're welcome. It was needed for me as well...

> Please test the new processing and let me know if there are problems.

Tested on the document for which I experienced the troubles in the first place
(because my TOC was more than one page long). Works perfect!

Only one comment, after reading your code in org-latex.el: if there is no
texi2dvi executable, please run pdflatex 3 times, as this is the right number
to get the TOC in sync' with the document, when it's more than one page long
(at least, in my above case, with a couple of org-babel sql source blocks).

--8<---------------cut here---------------start------------->8---
Changes in HEAD
	Modified lisp/org-latex.el

--8<---------------cut here---------------end--------------->8---

Thanks.

Best regards,
  Seb
2010-10-08 12:31:19 +02:00
BUGFIXING Intermediate state, I am just trying comiting now. 2008-01-31 16:04:26 +01:00
contrib library of babel: new code block for expanding headings 2010-09-21 09:49:41 -06:00
doc Document encryption for MobileOrg 2010-10-08 09:35:59 +02:00
EXPERIMENTAL org-export.el: major improvement. 2010-09-20 10:18:24 +02:00
lisp Compiling multiple times the LaTeX output 2010-10-08 12:31:19 +02:00
ORGWEBPAGE Link to FLOSS Weekly show 2010-09-25 08:27:54 +02:00
testing added tangle tests exercising new desired tangling behavior 2010-10-06 10:23:50 -06:00
UTILITIES Merge branch 'master' of git+ssh://repo.or.cz/srv/git/org-mode 2010-08-16 17:21:18 +02:00
.dir-locals.el Added a symlink .dir-locals.el 2010-04-26 06:46:16 +02:00
.dir-settings.el Add .dir-settings.el file to unify coding styles. 2008-11-20 15:45:22 +01:00
.gitignore gitignore patch 2010-08-17 09:54:21 +02:00
.gitmodules adding ERT and jump.el as git submodules 2010-10-05 11:54:48 -06:00
Makefile ob-scheme: very preliminary support for evaluating scheme code blocks 2010-08-27 18:03:11 -06:00
README Remove the special noutline.el file for XEmacs 2010-08-20 14:19:29 +02:00
README_DIST Remove the special noutline.el file for XEmacs 2010-08-20 14:19:29 +02:00
README_GIT Update README file 2010-04-14 15:52:13 +02:00
request-assign-future.txt Release 5.13e 2008-01-31 11:37:24 +01:00

This is the Emacs Org project, an emacs subsystem for organizing your life

The homepage of Org is at http://orgmode.org

This distribution contains:

README
    This file.

README_DIST
    The README file for the distribution (zip and tar files)

README_GIT
    Information about the git repository and how to contribute
    to Org-mode development. 

lisp/
    Directory with all the Emacs Lisp files that make up Org.

doc/
    The documentation files.  org.texi is the source of the
    documentation, org.html and org.pdf are formatted versions of it.

contrib/
    A directory with third-party additions for Org.  Some really cool
    stuff is in there.

ORGWEBPAGE/
    Directory with the source files for the orgmode.org web page.
    
ChangeLog
    The standard ChangeLog file.

Makefile
    The makefile to compile and install Org, and also for maintenance
    tasks.

request-assign-future.txt
    The form that contributors have to sign and get processed with the
    FSF before contributed changes can be integrated into the Org
    core.  All files in this distribution except the CONTRIB directory
    have copyright assigned to the FSF.

EXPERIMENTAL
    Experimental code, not necessarily FSF copyright.