From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.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 CChGNBnQvGLJEAAAbAwnHQ (envelope-from ) for ; Thu, 30 Jun 2022 00:20:09 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id QPwvNBnQvGKTRQAAauVa8A (envelope-from ) for ; Thu, 30 Jun 2022 00:20:09 +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 6D45F35B17 for ; Thu, 30 Jun 2022 00:20:09 +0200 (CEST) Received: from localhost ([::1]:47372 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o6g2a-0007GV-C9 for larch@yhetil.org; Wed, 29 Jun 2022 18:20:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42764) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o6g1o-0007GC-VR for emacs-orgmode@gnu.org; Wed, 29 Jun 2022 18:19:20 -0400 Received: from [185.31.100.96] (port=47384 helo=gandalf.k-7.ch) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o6g1m-00019v-Tn for emacs-orgmode@gnu.org; Wed, 29 Jun 2022 18:19:20 -0400 Received: from van (_gateway [192.168.1.1]) (Authenticated sender: seb) by gandalf.k-7.ch (Postfix) with ESMTPSA id 01200E3E1; Thu, 30 Jun 2022 00:19:12 +0200 (CEST) References: <87czerb72i.fsf@k-7.ch> <87mtdv1bwl.fsf@posteo.net> User-agent: mu4e 1.6.6; emacs 27.2 From: =?utf-8?Q?S=C3=A9bastien?= Gendre To: Juan Manuel =?utf-8?Q?Mac=C3=ADas?= Cc: orgmode Subject: Re: PDF export, table of contents and internal links Date: Thu, 30 Jun 2022 00:02:02 +0200 In-reply-to: <87mtdv1bwl.fsf@posteo.net> Message-ID: <875ykjaza7.fsf@k-7.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Host-Lookup-Failed: Reverse DNS lookup failed for 185.31.100.96 (deferred) Received-SPF: permerror client-ip=185.31.100.96; envelope-from=seb@k-7.ch; helo=gandalf.k-7.ch X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.1 / 5.0 requ) BAYES_00=-1.9, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, T_SCC_BODY_TEXT_LINE=-0.01, T_SPF_PERMERROR=0.01 autolearn=no 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=1656541209; 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; bh=2aeldsQ5ntQtzez85xaQ2TuawJEZV7HBT4dRKJPZHP4=; b=XkpLCT4C+BjYuIAwU4nTjzKJYRigEdx988jyWqR4/EM8eKWLAIbb6OCDfyOaJTzbp9XOyo 2O65X3UWbwwUQAL5GHyMmFrUCQjjXCjHmjm8azdJlIMEd2nk1wSXNi/cWuNM55js9yUtp9 CtyjwBqVwGY5UMKz0bVOp4Rr/eOWl2sF8/2JpY/F1rsVqZSXQ9xX0I1Wn79w2J1JEZnre0 vlJdILYF6Aby9u/20Rd7eKLeAEpHxJTU125e/LO8EyMdWc6qfEV7qkxI+sWl/eeMV7Outd 6woKzQsd2ru2DKzgv1VzaDDZruJfYJ/bzLNyAichqBiYKUxDUCGVr8bkA8hMgQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1656541209; a=rsa-sha256; cv=none; b=QtjuoKUOpcBfuiDwQ323UfxAGoaLsK6RKo+Kf04j1TxNFEU5/PHJUuslpL0hGL0dIVDuKX lOuq1TaWA20oeOUjQiiP/iJfzB9OAPsdAcXgIuPPpUTvpR1OA0uNAb50+O08nyqbGTGpez f89hqocsJAjbk/UJJELxSETf3qp4ToIrtaSe0rM6COdAC0k/ZQZS9/CEp0jroIbgcjSVZC UiHAulvdwbKYjTvWwWVvEgIrvBf/An9p56ozaA5xfDk6ugUrDXiW9Jn4n6nZqJMSV0L6tU 14yrAwmw0D5NqJno88kGd0arNDl1Ij4kou8eKAkDW2BXOk3wgjbbMwD3zowvVA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; 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: -3.26 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; 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: 6D45F35B17 X-Spam-Score: -3.26 X-Migadu-Scanner: scn0.migadu.com X-TUID: Uh2UhaevwgT8 Thanks for your advice. You remember me that, in the past, I had modified "org-latex-pdf-process". I just forget about it. By looking this variable with "describe-variable", I see its default value is: "latexmk -f -pdf -%latex -interaction=3Dnonstopmode -output-directory=3D%o = %f" I modified it to be: "%latex -shell-escape -interaction nonstopmode -output-directory %o %f" Because, when I wanted to add "-shell-escape" option to latexmk, it seemed too complex to me. If I learned LaTeX syntax in the past, I never take enough time to learn how work each compilation possibility. I feel lost with all the pdflatex, teklive, lualatex, double or quadruple compilation, etc. Do you have good articles or book to suggest about this part of LaTeX=C2=A0? To come back to "org-latex-pdf-process", I only added "-shell-escape" for the minted package. To have beautify code block. But maybe it exist better solution=C2=A0? Someone have experience with Engrave Faces=C2=A0? Juan Manuel Mac=C3=ADas writes: > 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/luala= tex > %%O -shell-escape %%S/' %f")) > > (I use LuaTeX instead of pdfTeX). > > Best regards, > > Juan Manuel=20