From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <emacs-orgmode-bounces+larch=yhetil.org@gnu.org>
Received: from mp1.migadu.com ([2001:41d0:403:58f0::])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	by ms8.migadu.com with LMTPS
	id MDCVMnzq/mW7VgAA62LTzQ:P1
	(envelope-from <emacs-orgmode-bounces+larch=yhetil.org@gnu.org>)
	for <larch@yhetil.org>; Sat, 23 Mar 2024 15:43:08 +0100
Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	by mp1.migadu.com with LMTPS
	id MDCVMnzq/mW7VgAA62LTzQ
	(envelope-from <emacs-orgmode-bounces+larch=yhetil.org@gnu.org>)
	for <larch@yhetil.org>; Sat, 23 Mar 2024 15:43:08 +0100
X-Envelope-To: larch@yhetil.org
Authentication-Results: aspmx1.migadu.com;
	dkim=pass header.d=posteo.net header.s=2017 header.b=fFbRh7DH;
	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=none) header.from=posteo.net
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org;
	s=key1; t=1711204988;
	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:in-reply-to:in-reply-to:
	 references:references:list-id:list-help:list-unsubscribe:
	 list-subscribe:list-post:dkim-signature;
	bh=rtvIj9DtRYBk3y700VCD0TFjvEmCw7895OVbYZyMdUw=;
	b=RtXcJNpWtukVBRhgFWsH5JebCMw2zB5KlQPOxVvV6XmMML+ybNxdplEFIzhhuGDAbA2JL7
	P1wQOIFHGbjSurvYJ3h06FdMX/IgJ/6hAxmGemYV9826QFxjm2G9+DoO1YPsiHg7+dziXw
	WNuFIaeYa1B1ffUupJTWRzJu+aXQBzqDO+tZPTFnO+2tM4YEXe2PZ9Mjh6mkkQm4nDGi/B
	HNhkDZHP4nKmkSDNnboo9e3tUQiPrvTWSv2Zw8Y2L6U3qyTzkYUg3Fscfz2z9m0C2eiaP9
	1uWIqSOTrGddopDKFmFcN6t/QtNjY3FxfOEAjYQ3geeFjmM9evDzA8dmR8t6xA==
ARC-Authentication-Results: i=1;
	aspmx1.migadu.com;
	dkim=pass header.d=posteo.net header.s=2017 header.b=fFbRh7DH;
	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=none) header.from=posteo.net
ARC-Seal: i=1; s=key1; d=yhetil.org; t=1711204988; a=rsa-sha256; cv=none;
	b=DoQu8Fuzel8Y7ZvrlvsUkd7XpXy1Z84kS8gwZq9WpZmr8cA24cKqpInapScPv7R+9FALZk
	eTvkkSlW2qP022fVQl/QTra+ktBIrmH+DxVgv3uFsYW9RuVqgT59KzEbUA4nQMpsfECGAM
	rjFr7rX8znjeNzlYiRiek/gf3Df4GgF2Ct76EzN8qGX1GSvBN7r4smDmOnbKvG4PZF0Ea6
	oRpTh99EpTqS1y8KAPROXZIwgGVmDe5Hh9aGivN8xRIbLZg2yDhHOmtTWFT/rsqzlYs6z8
	qLM0yf/6l9Ta/2/YtGwdI+qR9MIr5JN6ChQe3YfBL3UauCvOyiw23QLphUICkw==
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 9725D6919A
	for <larch@yhetil.org>; Sat, 23 Mar 2024 15:43:08 +0100 (CET)
Received: from localhost ([::1] helo=lists1p.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.90_1)
	(envelope-from <emacs-orgmode-bounces@gnu.org>)
	id 1ro2Zk-0002Zg-44; Sat, 23 Mar 2024 10:42:24 -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 <yantar92@posteo.net>)
 id 1ro2Zh-0002Yu-Pi
 for emacs-orgmode@gnu.org; Sat, 23 Mar 2024 10:42:22 -0400
Received: from mout02.posteo.de ([185.67.36.66])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <yantar92@posteo.net>)
 id 1ro2Ze-0003jO-Nd
 for emacs-orgmode@gnu.org; Sat, 23 Mar 2024 10:42:20 -0400
Received: from submission (posteo.de [185.67.36.169]) 
 by mout02.posteo.de (Postfix) with ESMTPS id 5CFC5240105
 for <emacs-orgmode@gnu.org>; Sat, 23 Mar 2024 15:42:16 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017;
 t=1711204936; bh=wPolZjcuJ1GG89qPCehKs2sIouLX1GfYcSEiIOHO8cI=;
 h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type:
 From;
 b=fFbRh7DHkiOPPiZMRlQ5uxcBrUxeiQ9SVfc783S3FOsgmG1rr2EeFQfrYdgxIp37L
 DEaBOYsLF9ubNclR2MIwZ3WqKWiRmQs4Z5wLtXZJ6H5j68JrmWC3JRQv8Avj2qsrFr
 4ItTzQe3wKJo5C9fzpCD74C6Rw7vz/D9QZMuA8BjKozKa1vth6InhCGGf5qlW52+wq
 BMb/zfgkfSDj164o2bggJ8tqLA9Qtl5JSV5asH145t35sJLJbP9xy/H7WW1So0nsLY
 YU+ylgFcNHpKiUJAAmoaINodSZTRPh3XXCB0u0nzQWiLCay4JQyCmNiwdMvYkuLkjn
 0izFPBegJOuGw==
Received: from customer (localhost [127.0.0.1])
 by submission (posteo.de) with ESMTPSA id 4V223B4Sj2z6twh;
 Sat, 23 Mar 2024 15:42:14 +0100 (CET)
From: Ihor Radchenko <yantar92@posteo.net>
To: mherstine@pobox.com
Cc: Timothy <orgmode@tec.tecosaur.net>, Karthik Chikmagalur
 <karthikchikmagalur@gmail.com>, 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: Sat, 23 Mar 2024 14:42:10 +0000
Message-ID: <87o7b557st.fsf@localhost>
MIME-Version: 1.0
Content-Type: text/plain
Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net;
 helo=mout02.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, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001,
 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." <emacs-orgmode.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/emacs-orgmode>,
 <mailto:emacs-orgmode-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/emacs-orgmode>
List-Post: <mailto:emacs-orgmode@gnu.org>
List-Help: <mailto:emacs-orgmode-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/emacs-orgmode>,
 <mailto:emacs-orgmode-request@gnu.org?subject=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-Migadu-Queue-Id: 9725D6919A
X-Spam-Score: -8.19
X-Migadu-Spam-Score: -8.19
X-Migadu-Scanner: mx11.migadu.com
X-TUID: ID/JN2Nv8EZP

Michael <sp1ff@runbox.com> writes:

>> May you please describe a use case when it is necessary to run 
>> latex
>> multiple times for previews?
> ...
> Oh-- and it's not just previews (sorry if I gave that
> impression)-- it's also required for "evaluating" LaTeX source
> blocks.

This makes more sense. I hardly imagine previews that will require
running latex multiple times. Such previews would be broken anyway,
because they have no access to the document context.

May you please add a code comment explaining why multiple invocations
are needed, referring to ob-latex? Also, please link to this thread form
the commit message. Finally, you may need to add TINYCHANGE cookie at
the bottom of the commit message if you do not have FSF copyright
assignment (see https://orgmode.org/worg/org-contribute.html#first-patch)

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>