From: "Juan Manuel Macías" <maciaschain@posteo.net>
To: "Sébastien Gendre" <seb@k-7.ch>
Cc: orgmode <emacs-orgmode@gnu.org>
Subject: Re: PDF export, table of contents and internal links
Date: Wed, 29 Jun 2022 19:56:42 +0000 [thread overview]
Message-ID: <87mtdv1bwl.fsf@posteo.net> (raw)
In-Reply-To: <87czerb72i.fsf@k-7.ch> ("Sébastien Gendre"'s message of "Wed, 29 Jun 2022 21:18:59 +0200")
Hi, Sébastien,
Sébastien Gendre writes:
> To generate the table of contents, I have to compile my .tex file into
> PDF 2 times. The first time, I got no toc. The second time the toc was
> here.
I would say It's a normal LaTeX thing. Sometimes LaTeX needs more than
one compilation to finish processing things like TOC or
cross-references, because it writes to auxiliary files if there has been
any change in those elements. What I suggest is that you use latexmk as
the default 'org-latex-pdf-process'. latexmk is a script that takes care
of intelligently compiling everything, as many times as necessary.
I have in my init:
(setq org-latex-pdf-process
'("latexmk -lualatex -output-directory=%o -e '$lualatex=q/lualatex
%%O -shell-escape %%S/' %f"))
(I use LuaTeX instead of pdfTeX).
Best regards,
Juan Manuel
next prev parent reply other threads:[~2022-06-29 19:57 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-06-29 19:18 PDF export, table of contents and internal links Sébastien Gendre
2022-06-29 19:56 ` Juan Manuel Macías [this message]
2022-06-29 22:02 ` Sébastien Gendre
2022-06-30 11:41 ` Juan Manuel Macías
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=87mtdv1bwl.fsf@posteo.net \
--to=maciaschain@posteo.net \
--cc=emacs-orgmode@gnu.org \
--cc=seb@k-7.ch \
/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).