From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.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 SAewMg11BGaWXAAAe85BDQ:P1 (envelope-from ) for ; Wed, 27 Mar 2024 20:35:42 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id SAewMg11BGaWXAAAe85BDQ (envelope-from ) for ; Wed, 27 Mar 2024 20:35:41 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=runbox.com header.s=selector1 header.b=HhDDibjC; 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=1711568141; h=from:from:sender:sender:reply-to: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=EZPVwfIDY8Jzv5mPJut9VBZ+JzMunJ4JEVsShbwLElw=; b=FK/I6XzFvRutTbJ3UA9t/V9mh4to2/qY2k97WfAdiNHX7VZJE46LOW37zbudpImRjgTmss gwGTx5p+Nfjklv9aWoY+kDoVJsKu4wmu6XXAM8igAhO366FHUTOmCBMe/L/3mC82FTRIDg yGdUlbldk0wJN/nWzK7mR+g2XHi76VkV26+GngA8nIzK73NeqftEQ6YeaAfmOONTFlkUqo 5m6/5lGi71RBV7vgfdielH882R+azkkRrblcCNFKsvEFRXnAgHjE7e6u0/r01A5gfnxTvs 7IF88FSIPA1RiOleEOdPb/Ja4obeHzMLAad7trUNWcmTcWphcpilRbZCQcjo/A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=runbox.com header.s=selector1 header.b=HhDDibjC; 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=1711568141; a=rsa-sha256; cv=none; b=hN5XTKQPshunUcdgpvOacPtm+ySr5RC70Q86eWh0MAitETp1V0RYgdTAoyzcTy2OohW2qc lRNk7gijaLtgc7oE5CLErPHqFdmWCWD4BlaPpqBdz/bj70iwXJwTwdebt2VsjNSGub3sht gzMg7jETT/Jx5v/RA6OmjHcXVnSRvXgI6fIvCVmHnCMqgt2FrTT87lpLs4f1f3ossOwT2S jxXcFvRTHZjC2/mgSU7BDSg+DkseIagq6LsVimDY+pYSrp+GkpYMz4+vdAThuPxI5uLlIg +dbJbTaJAXzOTPVSylHTUjnF1XQq+iBcknFGcmFksAwKVp8BmceXK4yB11iGng== 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 55F095A1F5 for ; Wed, 27 Mar 2024 20:35:41 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rpZ30-000485-PG; Wed, 27 Mar 2024 15:34:54 -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 1rpZ2v-00047p-NS for emacs-orgmode@gnu.org; Wed, 27 Mar 2024 15:34:50 -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 1rpZ2t-0005Bj-2O for emacs-orgmode@gnu.org; Wed, 27 Mar 2024 15:34:49 -0400 Received: from mailtransmit03.runbox ([10.9.9.163] 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 1rpZ2l-002Kix-F5 for emacs-orgmode@gnu.org; Wed, 27 Mar 2024 20:34:39 +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:In-reply-to: Date:Subject:Cc:To:From:References; bh=EZPVwfIDY8Jzv5mPJut9VBZ+JzMunJ4JEVsShbwLElw=; b=HhDDibjCGRsieaFHNnrznFLQp+ hJ8wr/bwuqEOdaXx+MF4NTenCkGjwRB+W9Rqkcz5kiMTapO2H/r1dFT4W+GahTBoMt8nTmvaMH2lQ HZUnJ+9SJsjHl0E27/N/mi5qzWR/+loq+38koKKupPMnwAPe12n1MqC1u7/EV17ZtitRwc4vXSBFL iIEvoHgljRGICztBEzjiP4InkpspXTV3VlaIKDp7WG4v5lZHL7oRQopLqcfkuZYlGuwe7NHR8da74 gvomEMEssrtZDF/FO2DtmsPmjk1EMI6tqIFd8SgrNrbgadTWMWbC1FVgrjj4b6gdbOM6T4iPVARC5 6DHqqMSQ==; Received: from [10.9.9.73] (helo=submission02.runbox) by mailtransmit03.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1rpZ2j-0001Zr-U2; Wed, 27 Mar 2024 20:34:39 +0100 Received: by submission02.runbox with esmtpsa [Authenticated ID (942723)] (TLS1.2:ECDHE_SECP256R1__RSA_SHA256__AES_256_GCM:256) (Exim 4.93) id 1rpZ2i-00DJyG-0Q; Wed, 27 Mar 2024 20:34:36 +0100 References: <868r2bw5qh.fsf@runbox.com> <886756d2-1428-4117-8ab4-3f4e6b01326b@gmail.com> <87msqof1kh.fsf@localhost> <2fc939a6-3211-4627-b4e9-274d7b6179c0@gmail.com> User-agent: mu4e 1.6.10; emacs 30.0.50 From: Michael To: Max Nikulin Cc: Timothy , Karthik Chikmagalur , emacs-orgmode@gnu.org Subject: Re: [PATCH] Run latex more than once for LaTeX src block evaluation Date: Wed, 27 Mar 2024 12:34:03 -0700 In-reply-to: <2fc939a6-3211-4627-b4e9-274d7b6179c0@gmail.com> Message-ID: <86msqjv588.fsf@runbox.com> MIME-Version: 1.0 Content-Type: text/plain; format=flowed 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-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-Queue-Id: 55F095A1F5 X-Spam-Score: -10.15 X-Migadu-Spam-Score: -10.15 X-Migadu-Scanner: mx11.migadu.com X-TUID: nLNOb1qws4r0 Max Nikulin writes: > On 24/03/2024 15:58, Ihor Radchenko wrote: >> Max Nikulin writes: >>> On 22/03/2024 05:55, Michael wrote: >>>> 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). >>> >>> I suspect it may make the LaTeX preview feature unacceptably >>> slow for >>> documents heavily loaded with math snippets. >> Then, we may instead use latexmk - it will run latex as many >> times >> as >> necessary. > > Sorry I have no experience with latexmk. At least a fallback > should be > available if this script is not installed. > > The LaTeX preview feature is close to dangerous per se. With > latexmk > the barrier may be even lower. Some users may have -shell-escape > enabled in latexmk configuration. I hope, it is not possible to > force > latexmk execute something weird by spitting a crafted message > into > logs. > > I have no idea how to enable preview for trusted files only > without > ruining usability. Should we perhaps have different variables for preview & Org source block evaluation? -- Michael