From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id kGccHrSuvGLe2AAAbAwnHQ (envelope-from ) for ; Wed, 29 Jun 2022 21:57:40 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id +FcAHrSuvGItvgAA9RJhRA (envelope-from ) for ; Wed, 29 Jun 2022 21:57:40 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 2457A30D63 for ; Wed, 29 Jun 2022 21:57:40 +0200 (CEST) Received: from localhost ([::1]:35684 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o6doh-0002vI-8s for larch@yhetil.org; Wed, 29 Jun 2022 15:57:39 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43676) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o6dnz-0002v7-4X for emacs-orgmode@gnu.org; Wed, 29 Jun 2022 15:56:55 -0400 Received: from mout01.posteo.de ([185.67.36.65]:36067) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o6dnu-0004pp-Qf for emacs-orgmode@gnu.org; Wed, 29 Jun 2022 15:56:54 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 06E1A240027 for ; Wed, 29 Jun 2022 21:56:45 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1656532606; bh=N4HjJDmN0U20S7MskU3F2oDWmwOPwP7VS7a3zdgcsHI=; h=From:To:Cc:Subject:Date:From; b=Qpj8E3MZrtp+EE5s/z8ZwT/vjcj3fYG5fiwRtCMH0PqGvIGjR44Ff5s+Yxx8FRJDy dI0LnWjyjUSJWX2OCTr+ooNKuRH0VwLn5QsVqKaR+8jOEl+8SZMMiiD24iQ7Im9CsV WUslXtJ/XGPUnA66mKhHXHfw8a4yjDpZEh2MNYsgjG8DfWMxRMAi4HRe9+HHdeFSdx IIlxIfjR3c4eK27vHxS3UvTUskoCrkr/9b0M4rcAVK4wV92KMdXKhRELKyVEKzs9OD YiwiohXSvF31IQUKpmzcSdE+vislwuERsm8SDQvZtKl3ltn83dc1AEbj+NsN+TxO2C NdYxZ1Jkvvs0Q== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4LYC0F1Z7wz6tmK; Wed, 29 Jun 2022 21:56:45 +0200 (CEST) From: =?utf-8?Q?Juan_Manuel_Mac=C3=ADas?= To: =?utf-8?Q?S=C3=A9bastien?= Gendre Cc: orgmode Subject: Re: PDF export, table of contents and internal links References: <87czerb72i.fsf@k-7.ch> Date: Wed, 29 Jun 2022 19:56:42 +0000 In-Reply-To: <87czerb72i.fsf@k-7.ch> (=?utf-8?Q?=22S=C3=A9bastien?= Gendre"'s message of "Wed, 29 Jun 2022 21:18:59 +0200") Message-ID: <87mtdv1bwl.fsf@posteo.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.67.36.65; envelope-from=maciaschain@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1656532660; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=tlCwmtitO77jdnOosabppmB3U4JE32L1PFTcDF8G6MU=; b=mZFB9xJLI7bkKn8sBJ2Lw6Mw6T7Arv/Nx6QTyFSPni/JgYTe13hJ9xk9d6fuCV1cK7looP ZFFSptMBV2gF+bT0ZrMiqQSu46PTRsM8UE8CWmZRhiYrw27acQPCOJddLP2E+04NzCj958 76vm1RcidNDle0VkjZAHfiXbkWRNl9+7oaZpoi8V/RD7V+nnrbRomaYeEqNVoxsr0Nju9H bj+TrMbLyJKRaDrdJ8lmcHW1Kj8GbpzWUQIWDYKIPyUnoM9QHhoK3Psng90hljJwp3+6rd xov5t365hzI1qFDTQj4zNOrtgwIcEPnj0HxDactRc4pHhNzCfNsiVFMA7hPeNA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1656532660; a=rsa-sha256; cv=none; b=DZ1IwqTHinNXqiEq+JcRnT6yVz2oEIMwnx+4bRMxwSGqNNWBb3ALvwEG/YqPn61w4kfM0t TpFYOvgwTQcfB5flMYersm+kXZFjQI+rTnFYnB4Qe/P0omuNXRXfDQibyTe2Thomq1AyZ3 +5tXumuPx25IHug36VRWkxUxRUkw/1bMN0Ni0E6V3vvHXJUgn2D4dvhiVrggtgCdfFLoWo IRr+w2hQV+b0daR58HtsuDOdUlO//yJ7KbiMcamUjC5kilSP8tesXW+oWb+zrNVHhn1vgK UmFs9zxs863PWUygtjjrrxf+HRDb8uSxGXxpXrGsQkpmeL254dPmaqc6ApYYFg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=Qpj8E3MZ; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -4.16 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=Qpj8E3MZ; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 2457A30D63 X-Spam-Score: -4.16 X-Migadu-Scanner: scn0.migadu.com X-TUID: rpXvhwSS04Oa Hi, S=C3=A9bastien, S=C3=A9bastien 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=3D%o -e '$lualatex=3Dq/lualatex %%O -shell-escape %%S/' %f")) (I use LuaTeX instead of pdfTeX). Best regards, Juan Manuel=20