From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 oCLyJya8AmaoUgAA62LTzQ:P1 (envelope-from ) for ; Tue, 26 Mar 2024 13:14:30 +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 oCLyJya8AmaoUgAA62LTzQ (envelope-from ) for ; Tue, 26 Mar 2024 13:14:30 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=Xb+1vfhj; 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=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1711455270; 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=+3hXJGyci2/sHH3pDWC/ASHd8hT5wpsuvCW5zZyFrzE=; b=sRaKFRgLaCHOZWRbMAtWGANamX67KspjgPO9kXs6ANrlMWU4JHwdXTGvsgiLueXjyGWEtU oV6oWv7lCtfCmGpSF17sTC4R0ooHdPAmGLx999J2f/iH1hsoNN3ktwbvDwhtVuxSw2LD7Z zebn059y0EaiYL9+qjOkj1joVF91vBM7rflSegcRiHVbR/3q4sqM0jywqtXf+CcXZCE1s1 zTxfPQQiHfGW9e3w0xn5KQ0JvcdmZVOqxQdwTKCPtPnWN1KlFwOfIRnmLtURd9AnYE7A3L GEV59hvQe9SOPQJ6itoMJAxEZRluSohcIPcIkS+9jKX6u26tw0e2D2DFQwibQA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=Xb+1vfhj; 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=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1711455270; a=rsa-sha256; cv=none; b=HWplRQIIyTXUiybiWzmrugK1qyA5nvyl0zlcZk6IIM7OJRPXLAaWYVLxXdb3ceSIGvEPSx wS+pjMrlzpDZF4+rjYaD4nAoKS4F1dXHU+Bxh//boJqckDtUIm+b2Zf6h58cjHKtaaKQc5 8tuzXcSu5AerSI7zHfCfOlg+tArSbAXm6m0r2VDRJqd2N+wcWJbMde4/11hinlX3QIDovk Ch0eDmD1VUqqIfVP9SGGmiH/P05+RNNzTRCKDhGxYu4iGdRRMD9ItkoSH1KbRa44F6vwKL 81qnAjVYpHwHS2B7SvJGqRjNmQDshd502ZBLslP/xNxV2/knSLB//OLyHkb+Qg== 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 7CA9B5DA78 for ; Tue, 26 Mar 2024 13:14:30 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rp5gV-0004uq-Ln; Tue, 26 Mar 2024 08:13:43 -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 1rp5gU-0004ua-ES for emacs-orgmode@gnu.org; Tue, 26 Mar 2024 08:13:42 -0400 Received: from mail-lj1-x22d.google.com ([2a00:1450:4864:20::22d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rp5gR-0003jp-S1 for emacs-orgmode@gnu.org; Tue, 26 Mar 2024 08:13:42 -0400 Received: by mail-lj1-x22d.google.com with SMTP id 38308e7fff4ca-2d476d7972aso87257691fa.1 for ; Tue, 26 Mar 2024 05:13:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1711455217; x=1712060017; darn=gnu.org; h=content-transfer-encoding:in-reply-to:mail-followup-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:sender:from:to:cc:subject:date:message-id:reply-to; bh=+3hXJGyci2/sHH3pDWC/ASHd8hT5wpsuvCW5zZyFrzE=; b=Xb+1vfhj2u765EoldFs15lCEktmBlM0mgsSoea6zqjZ5nq4BSzfT0VymvIEVIe2OHo CZJpAGUn5o4o++PtPswAnblhmIyczWdS4d1rDig/fo0SQHUz9XI49ay8PbgbO5t/CzLg HNTkltgFy1xhPczFA3q+pv7fRZUIjm+MgGXD23kkPGejjtS+ZPDJai1O6nNGKh5Jc7Fs flTSpvhk34bUrSJauBGqTNF7hV5xtU4QQANoRcuQkBvNU3e27en88nuzaIv5pxFTvOlj 9he149EMaXAqwQ878ETvGqizl9SKzveXmDriDy+s7rjdTBZBDQXUZoEeTeQqIVgihiXl m4nw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711455217; x=1712060017; h=content-transfer-encoding:in-reply-to:mail-followup-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:sender:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=+3hXJGyci2/sHH3pDWC/ASHd8hT5wpsuvCW5zZyFrzE=; b=fubbCTu1INpWQC6UKVcTFJ2gWEFHN1VdZYuahwAitXUfERQJuQ4h5KTer3nC91F03N giyCYKp3/p2aM+B5SwpPjc0TeJ8iOnzn0xKzNGqIvDCf0U0YzzJZ42Tx17dI+nzeGB/D r9bt+rTkiN1U+IqTKq0/thMhrn15jOlDaUdIkUSS1lHQVvBc7ABM12eu+V2cGriDESHM Q8TQVMWM5jpKtPkU0Wj9IW/72X0wU7+b0yim1jBgia1A2akg20SLXcR8QVZ8da7kSWnS N+Od6vpZ19mkFsUmECkY6VOYhn9FU1Ac3usEJW9p/mTHhayiwFwhMrrh6z0FIu8S2TRJ bnJA== X-Forwarded-Encrypted: i=1; AJvYcCVwq+utmsAbUIbQHfe+unMMNPwUWZa/VdkCIpvRu6ltKMECO7TBHh8J52aKFQpAZIHZjqu/1Q0MBbPjqHIqDTTk6Huh5Bk= X-Gm-Message-State: AOJu0Yxf5iMIHn1OsuSI9ohOtV0MpK8QvWR+aVOHmALvP4KhR5PhKPGb xP+AOtB7guk1qU2dwVUJ05MH7F0k6lu9pIviTEjc1yL4qq9D8AiP X-Google-Smtp-Source: AGHT+IFXm1zYHeQG46vIqwe0zR8HPsYfHdyqRLD9lLMMLvovMaGqkzHHrRB24AbmzNnL2EGOfUeegQ== X-Received: by 2002:a2e:8507:0:b0:2d4:a8cf:e798 with SMTP id j7-20020a2e8507000000b002d4a8cfe798mr6516706lji.14.1711455216783; Tue, 26 Mar 2024 05:13:36 -0700 (PDT) Received: from [192.168.0.101] (nat-0-0.nsk.sibset.net. [5.44.169.188]) by smtp.googlemail.com with ESMTPSA id e3-20020a05651c038300b002d6b7b63a7asm1609173ljp.18.2024.03.26.05.13.36 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 26 Mar 2024 05:13:36 -0700 (PDT) Message-ID: <2fc939a6-3211-4627-b4e9-274d7b6179c0@gmail.com> Date: Tue, 26 Mar 2024 19:13:35 +0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] Run latex more than once for LaTeX src block evaluation To: Timothy , Karthik Chikmagalur Cc: mherstine@pobox.com, emacs-orgmode@gnu.org References: <868r2bw5qh.fsf@runbox.com> <886756d2-1428-4117-8ab4-3f4e6b01326b@gmail.com> <87msqof1kh.fsf@localhost> Content-Language: en-US, ru-RU From: Max Nikulin Mail-Followup-To: Timothy , Karthik Chikmagalur , mherstine@pobox.com, emacs-orgmode@gnu.org In-Reply-To: <87msqof1kh.fsf@localhost> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=2a00:1450:4864:20::22d; envelope-from=manikulin@gmail.com; helo=mail-lj1-x22d.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-Migadu-Queue-Id: 7CA9B5DA78 X-Spam-Score: -5.00 X-Migadu-Spam-Score: -5.00 X-Migadu-Scanner: mx11.migadu.com X-TUID: OOeCwP+97zRP 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.