From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id mGwUHoha/WXdFQAAe85BDQ:P1 (envelope-from ) for ; Fri, 22 Mar 2024 11:16:40 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id mGwUHoha/WXdFQAAe85BDQ (envelope-from ) for ; Fri, 22 Mar 2024 11:16:40 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=runbox.com header.s=selector1 header.b=y6a4iFDN; 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"; dmarc=pass (policy=quarantine) header.from=runbox.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1711102600; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=OEL+m1VS4PUFv2dJ0jXaN1OxjB+hrGHTITE4c2XDsuE=; b=dVHUXlRldK3LZZ/4CxecUq/6ZdsLVWGL35Yox/EJBvF1askrjDxa6BmX+j6pGbPcMWx8qX kkqjyXwXMUVMKxZJtUpiRyQ8TptvhZzLsw51840gdCuFC2/8A5lEJqc4HL8U9ySMxZYW0M 2BuON0Wt3fkR4zeL3V/pAKM5u750iC1y4BsU5wwt1anrvhf0AFjoNxovHeAyCMIWERSulW rLABtG+qx3etmo3kzalr0fV6HEqL+GRSQjl2GTZpaJSk3amuI+eB0RyAu+ZW9gCH8RxCMA R5DoimoSY6EfrPKT/P7D9teFCPUD9CFqhAjkJd3OfpJlEGk9DjkcFE9RNTojyA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=runbox.com header.s=selector1 header.b=y6a4iFDN; 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"; dmarc=pass (policy=quarantine) header.from=runbox.com ARC-Seal: i=1; s=key1; d=yhetil.org; t=1711102600; a=rsa-sha256; cv=none; b=HziiZIOKPOIhJqIcQSsZ14cmXyPcZ/vQZibpsy49tl8+bUfMS+ika5KqHgCfpoA+sKbwPy wJ5BKAf5Tj3Mrszli92eIySFkPTC8vGG4FDynhHWsyqO8RfCQCcKJcOY/5w3qZYYPeQu4J LwAFuTzX14cG+iZj8GiNUPJGlX1eTO7CSefzyw24WSzgHei4nlYhhSeY0T3kjgQd6+yWkM IdRZe5X+io7Xc9kpwLscYfa+GA6Uw8BZryAM0ii9d2tjkbyOGJ8GF+g925mkKkYg7dPYVx Je0CtOJVE/QT2jd3N1V2AIYsFkwf+kb2p6XkBCBp2z4sexul5h/HV1EPbo3w3g== 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 56E4D15159 for ; Fri, 22 Mar 2024 11:16:39 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rnbvm-0002LD-GY; Fri, 22 Mar 2024 06:15:22 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rnROs-0002ST-4d for emacs-orgmode@gnu.org; Thu, 21 Mar 2024 19:00:42 -0400 Received: from mailtransmit05.runbox.com ([2a0c:5a00:149::26]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rnROp-0000rP-2c for emacs-orgmode@gnu.org; Thu, 21 Mar 2024 19:00:41 -0400 Received: from mailtransmit02.runbox ([10.9.9.162] helo=aibo.runbox.com) by mailtransmit05.runbox.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1rnROh-004P3l-Tx for emacs-orgmode@gnu.org; Fri, 22 Mar 2024 00:00:31 +0100 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=runbox.com; s=selector1; h=Content-Type:MIME-Version:Message-ID:Reply-To:Date:Subject:To :From; bh=OEL+m1VS4PUFv2dJ0jXaN1OxjB+hrGHTITE4c2XDsuE=; b=y6a4iFDNO8HujpQxfAW DFzlI/LJ+KvE7vkeJ2qkMSmaZ6V9s2nAzy/EjzvPf6WGlxK+at4thc+908RchldY3tWRI7Jh7Ugps unXKnxU9ltL69sx+kHU6FzAG1o6RqhP1j/9QIAS1imdu5uM6mRNsFMtOTmIIEUTF4pyKe2yLH+/VK wEi6ChboqSjshk9BA+C6CX7AT5nbXxuCQ4InCPLnWthrZ9FCzeV0mhFmWosDtrWrAXx51q1nfzn5A Uky9Y0lnyE50XdMyr57Fw/MGHtzT6txTffiQCGYZIdDWgzlI8bnhZXP6QZ6hCEPIna/Xs52P+GGsh RRCNHilc7VwX+Dw==; Received: from [10.9.9.73] (helo=submission02.runbox) by mailtransmit02.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1rnROd-0002GV-Ip for emacs-orgmode@gnu.org; Fri, 22 Mar 2024 00:00:31 +0100 Received: by submission02.runbox with esmtpsa [Authenticated ID (942723)] (TLS1.2:ECDHE_SECP256R1__RSA_SHA256__AES_256_GCM:256) (Exim 4.93) id 1rnROM-00Bpz1-Oc for emacs-orgmode@gnu.org; Fri, 22 Mar 2024 00:00:11 +0100 User-agent: mu4e 1.6.10; emacs 30.0.50 From: Michael To: emacs-orgmode@gnu.org Subject: [PATCH] Run latex more than once for LaTeX src block evaluation Date: Thu, 21 Mar 2024 15:55:12 -0700 Message-ID: <868r2bw5qh.fsf@runbox.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=2a0c:5a00:149::26; envelope-from=sp1ff@runbox.com; helo=mailtransmit05.runbox.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Fri, 22 Mar 2024 06:15:19 -0400 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: , Reply-To: mherstine@pobox.com Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -10.87 X-Spam-Score: -10.87 X-Migadu-Queue-Id: 56E4D15159 X-TUID: cHFWAF7haCy1 --=-=-= Content-Type: text/plain; format=flowed Hello, I have a small patch for `org-preview-latex-process-alist' making the default setting for LaTeX source block evaluation be running latex three times (instead of the current one). It is sometimes necessary to run latex more than once to produce the final document, a phenomenom described in the docstring for `org-latex-pdf-process' which itself runs latex three times by default. This patch just brings the former variable into parity with the latter. --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-lisp-org.el-org-preview-latex-process-alist-Run-late.patch Content-Description: lisp/org.el (org-preview-latex-process-alist): Run latex multiple times >From 7b297f61ee6dfb74e64c9b2a706982638a69e7f0 Mon Sep 17 00:00:00 2001 From: Michael Herstine Date: Thu, 21 Mar 2024 15:50:27 -0700 Subject: [PATCH] lisp/org.el (org-preview-latex-process-alist): Run latex multiple times * lisp/org.el (org-preview-latex-process-alist): Run latex three times by default It is sometimes necessary to run latex more than once against a given .tex file; something ably explained in the docstring for `org-latex-pdf-process', which exports LaTeX by running latex three times (by default). This patch brings `org-preview-latex-process-alist' into parity with that variable, running latex three times by default when previewing LaTeX. --- lisp/org.el | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/lisp/org.el b/lisp/org.el index caddf22a1..73b6a1e0a 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -3300,7 +3300,9 @@ All available processes and theirs documents can be found in :image-input-type "dvi" :image-output-type "png" :image-size-adjust (1.0 . 1.0) - :latex-compiler ("latex -interaction nonstopmode -output-directory %o %f") + :latex-compiler ("latex -interaction nonstopmode -output-directory %o %f" + "latex -interaction nonstopmode -output-directory %o %f" + "latex -interaction nonstopmode -output-directory %o %f") :image-converter ("dvipng -D %D -T tight -o %O %f") :transparent-image-converter ("dvipng -D %D -T tight -bg Transparent -o %O %f")) @@ -3311,7 +3313,9 @@ All available processes and theirs documents can be found in :image-input-type "dvi" :image-output-type "svg" :image-size-adjust (1.7 . 1.5) - :latex-compiler ("latex -interaction nonstopmode -output-directory %o %f") + :latex-compiler ("latex -interaction nonstopmode -output-directory %o %f" + "latex -interaction nonstopmode -output-directory %o %f" + "latex -interaction nonstopmode -output-directory %o %f") :image-converter ("dvisvgm %f --no-fonts --exact-bbox --scale=%S --output=%O")) (imagemagick :programs ("latex" "convert") @@ -3320,7 +3324,9 @@ All available processes and theirs documents can be found in :image-input-type "pdf" :image-output-type "png" :image-size-adjust (1.0 . 1.0) - :latex-compiler ("pdflatex -interaction nonstopmode -output-directory %o %f") + :latex-compiler ("pdflatex -interaction nonstopmode -output-directory %o %f" + "pdflatex -interaction nonstopmode -output-directory %o %f" + "pdflatex -interaction nonstopmode -output-directory %o %f") :image-converter ("convert -density %D -trim -antialias %f -quality 100 %O"))) "Definitions of external processes for LaTeX previewing. -- 2.44.0 --=-=-= Content-Type: text/plain; format=flowed -- Michael --=-=-=--