From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id KEXKDmudD2aeewAA62LTzQ:P1 (envelope-from ) for ; Fri, 05 Apr 2024 08:42:51 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id KEXKDmudD2aeewAA62LTzQ (envelope-from ) for ; Fri, 05 Apr 2024 08:42:51 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b="M/A5Ivrn"; dmarc=pass (policy=none) header.from=gmail.com; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1712299371; a=rsa-sha256; cv=none; b=Zv6c6Cmf+oARL7Yd77GOh56jWGLS1FbGpkyqDWRKZH0SJ+SqNsF7C1W+ZcfgMmTnrYkP8B Ysygwmz8CR+wlw8+qTl6UY0Z7gL0VSsKDaqmmYZNvEqSgxfC89o1eRGzsfeDhXpb+8LvD/ p5NigiNWv/eQJpukt4ffjZZO8NdVdykWcCiBo0GNTG32deLrSJFrms7BETNUXctgOnUigt DQrTEa/LOe1TmjjWQFRo8a72RDWVdqA7XqRuJA65BkuDLoSInPM0J0Q6LSrJ9aUxNTXAzT 5+2QwRhXjt5I7BGltPJn5CBOwpjfzsH1IdZH42sNtvMkoSz+bEHWCrjz6TRJFw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b="M/A5Ivrn"; dmarc=pass (policy=none) header.from=gmail.com; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1712299371; 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=sVh4dOjtVbzM2ltWUysWZvbxtzYVvvBI4JenGKOcaeI=; b=c/dTcX9esZo1wqrirtvSB73mYaaE4ngxxVm7YMGGdSNZnkaTgR0fYGNKUo+Ig3CqtUp/ak d4MZKSqjejRknOMvrssN5+HuFpb4Y7Qfepl+NtJ1wZduRj8jLQg9ufT2CdQSTOfBlYn9Jm t3bnr02FAyjAL/z9GINGnWekbaVxV0o50MFdVuJlbqB4+wNDVwkYjk2kPaE3Ez/B30URj6 hn6hrhWM2TJzNA6Q7o7rE59ud2cOxD/GNjanrcxOizKR7Y5FBvIyuTVEC6J7agoRmzGuIW Do+7782sKUcU2Bh99NVU44AHhbKqNtIT4OtD3upkfF7pjcsu4mwRLQBCFpjXag== 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 D861920763 for ; Fri, 5 Apr 2024 08:42:50 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rsdGw-0004az-41; Fri, 05 Apr 2024 02:41:58 -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 1rsdGt-0004ad-HV for emacs-orgmode@gnu.org; Fri, 05 Apr 2024 02:41:56 -0400 Received: from mail-pl1-x634.google.com ([2607:f8b0:4864:20::634]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rsdGr-0002Bp-Tt for emacs-orgmode@gnu.org; Fri, 05 Apr 2024 02:41:55 -0400 Received: by mail-pl1-x634.google.com with SMTP id d9443c01a7336-1e0edd0340fso16182695ad.2 for ; Thu, 04 Apr 2024 23:41:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712299312; x=1712904112; darn=gnu.org; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:from:to:cc:subject:date:message-id :reply-to; bh=sVh4dOjtVbzM2ltWUysWZvbxtzYVvvBI4JenGKOcaeI=; b=M/A5IvrnQimJSktxRGtnyIuI+Kmx5Lsl8/ucGH4ue1/WiawOcmOdHtRLgKXSQ9y0DU 7oPyHRbnC2cpAzUn4aMt6GaFziidZN2O5XAI0hb0DbEI46W+1bBGnM4L6m4yxiddlPiZ cp+6qzzmZd7wrEFt8crOYp/EIPtQe6nVfFmXbNJonefcEapoPTmZ+sGjgIcMWrXOUNlj FwA5I8wZ2hOZuNZwxq7n6oV0HYFr4KFbsnDrq0KBxCcNqh7PFDcGqV5RmtC+y4DCLRbI nqbLdynlj+YONdcTQvpfxRlktf4XDTrQneo0SpCEnAymC2iuO5DL583Y3tBtEZApigXd nkNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712299312; x=1712904112; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=sVh4dOjtVbzM2ltWUysWZvbxtzYVvvBI4JenGKOcaeI=; b=Tm9KziLVHE2iuckWt/I17ZS+3rxOx/yPw6u6GDk0TO51akcFBeN0lMcYIJKjNdW7bs 0qhDQwRDHt1n5E6zce2glb5nTUjGhxE1sgL/ezDowocvyZ44OOSSI0189Z++7YzE1Ioi y/FHuaS2/Jn6Jrgvac1AJTIJtt0RLC1HyKQB0CewP/j3QYTp+92yLyqt/16MIBeUlOL1 3SmEIfCr8KR+SUM4ydfPi5KneBp5od/FuSikybG3tE/Yy2qWb6VG9+5QyvGc+qZDPls7 GYXNseKwDy2rkVq04rwRrat1DQ6ZivWQpXY+KHDlWYihaLcZxpUgvzoK4TkXgUlIlCvo bQLQ== X-Forwarded-Encrypted: i=1; AJvYcCV/HKtyIG8laBmWXvSsuUORd8xE3V9nzT+iPZOWpwA1pEteULCeXBrCNT8C9B2ko2z13FnGDeufS+F9y1yj1z4KwdgAnFI= X-Gm-Message-State: AOJu0YyFrK1jjZEInO/Hsn2HANdazqY32sd5jrTm2bXd6ZJWWFL9oAK8 QKRzhbZoyW29Fzh9LYvue1W4iz42XIo6onm82id9+qsFSrTBuH4d X-Google-Smtp-Source: AGHT+IEUWnhz4tXudmUOZ8FTQXzT0lykDV6/j3PPcxtNk/TmcIvzMIfTpPjU/N+I7SbriIKu1LArdg== X-Received: by 2002:a17:903:230e:b0:1e2:36d:c67a with SMTP id d14-20020a170903230e00b001e2036dc67amr613994plh.34.1712299311836; Thu, 04 Apr 2024 23:41:51 -0700 (PDT) Received: from localhost ([2600:8802:5726:2500:a962:d396:64c3:a8e5]) by smtp.gmail.com with ESMTPSA id kh3-20020a170903064300b001ddc93c5759sm752349plb.196.2024.04.04.23.41.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Apr 2024 23:41:50 -0700 (PDT) From: Karthik Chikmagalur To: mherstine@pobox.com, Ihor Radchenko Cc: Timothy , emacs-orgmode@gnu.org Subject: Re: [PATCH] Run latex more than once for LaTeX src block evaluation In-Reply-To: <864jcyw4wj.fsf@runbox.com> References: <868r2bw5qh.fsf@runbox.com> <87le6atofh.fsf@localhost> <864jcyw4wj.fsf@runbox.com> Date: Thu, 04 Apr 2024 23:41:50 -0700 Message-ID: <87le5sfh01.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::634; envelope-from=karthikchikmagalur@gmail.com; helo=mail-pl1-x634.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Spam-Score: -6.65 X-Migadu-Queue-Id: D861920763 X-Migadu-Spam-Score: -6.65 X-Migadu-Scanner: mx10.migadu.com X-TUID: rP7NOECZH0P+ >> Thanks for the patch! >> May you please describe a use case when it is necessary to run=20 >> latex >> multiple times for previews? > > Sure: it's required whenever you have LaTeX that refers to > other document elements whose positions are only known after > they've been typeset. This often comes up with bibliographies; to > quote the docstring for `org-latex-pdf-process': "The reason why > this is a list is that it usually takes several runs of > =E2=80=98pdflatex=E2=80=99, maybe mixed with a call to =E2=80=98bibtex=E2= =80=99." I assume this is a general example of a situation where you have to run LaTeX multiple times, and not something applicable to Org's LaTeX previews. > I personally encountered it when using the tikzmark library from > the tikzpicture package to draw annotations on a table (LaTeX > needed to be run once to typeset the table & only then did it > "know" where the arrows needed to be drawn). Was this for in-buffer previews or a LaTeX source block? Could you provide the LaTeX source for a minimal example? I'd like to try it with the new preview system. Karthik