From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.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 MNAbNA1gBWb7kQAAqHPOHw:P1 (envelope-from ) for ; Thu, 28 Mar 2024 13:18:22 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id MNAbNA1gBWb7kQAAqHPOHw (envelope-from ) for ; Thu, 28 Mar 2024 13:18:21 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="TIlQM/QH"; 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=1711628301; 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=Erg2HgmvwV2BlzKK5OaNqx9R3Sewrt1rGcXymSQEHAE=; b=K5d394Io9o03+JDXUUU63Nk8SPit9uvpJXsooP1YJvz4PeArfmNd3LpioAga4hmgD/vOeQ 24jZaIS6nVeVMY/BfkAXNMBwf7FeySpfKxitzeZEBoqyCfyHIa7e+hRH+ekFVsIH5bOg+F wPsMnlCw88m30Jx4r9dVEVC7xEXMYV+ls4ie3U0ZAivdWv3DIDLRwtpp68d5H0OgsPAlq5 KeDh0kSlpASq8CB7kCmzBoZxAEaoFa2N3Vx+1bmfIbm3JYlBO/fXbG9Udq7zyf9Y+DkFqV fINJOvEwo6erpYQYsQo+OPWtv+FbwBkprTDjbk2FJ02nkMgh0V1r7OKGWvzI5g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="TIlQM/QH"; 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=1711628301; a=rsa-sha256; cv=none; b=lkP5fEQ/N8PwGWZPTqoOhU4SZO/lCRj7iB2ZNlcosRiWkEqxS02ExVgLeAmtaIsPM5cdfx Y0lbILueEh6RUJ7MnCfT6eSeU3azijKAgcZHPFVn9iqvcwnTsoIhg6ywQDFyEfUTL1vmSk nUlB3CfpY12g5oBh8a2M+R7nJie9T/SISbPvdqcLo+QfzibhCJsGjhUncqBUCRXVv58JG4 B4OmxEd4XzT2md3f++C7G/PtKugqyMetlMdgVE7o5yM88VH7C3TSLi80GDatpKiKArK7Cm AoEPi167hYojrBgxEgyllagC98MvcPVSOt3QR8k+8hv02Av2L1UsLERYMSwzPQ== 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 9BCFA6A8E7 for ; Thu, 28 Mar 2024 13:18:21 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rpogz-0000Zp-6A; Thu, 28 Mar 2024 08:17:13 -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 1rpogt-0000VR-Be for emacs-orgmode@gnu.org; Thu, 28 Mar 2024 08:17:09 -0400 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rpogq-00034C-Ll for emacs-orgmode@gnu.org; Thu, 28 Mar 2024 08:17:07 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 56C98240029 for ; Thu, 28 Mar 2024 13:17:02 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1711628222; bh=4+ZPrVPLK3jLexZ5DqZSqwP0Jz+zQY+nn0B/IK4os10=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=TIlQM/QHaA4t2uZGRg7NwghRJvma5MARs0ab8+I5s2VKXeZq5KtCgxsi/RTNolIqD 5ki2h9DwRitGiMLYp7CNeJ+tFAcbcGZ4h3rUGHQ8812p+guFHqX/9jFeTFkGzOXq9Q Cyl98EpAD0F3p7gHn/4L68i9fLKAo8oxTRNq9QIUSuZjSvySK9HdHfGLiVzTGH9i2b ZqOE5DszMgxTDkrr2YO/VEHselMnviZxyEsi+92vARaMj8dy43I3TzCFW9A1FI3FgP +3AwR3o6VNmN1KB/jPhzm/Vlf3IEy7kN57uDUKz7wFXnJzuRubz/nbgEWWCdqXub0f mzfth5BYaIRcA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4V52bK2wzBz6tvr; Thu, 28 Mar 2024 13:17:00 +0100 (CET) From: Ihor Radchenko To: mherstine@pobox.com Cc: Max Nikulin , Timothy , Karthik Chikmagalur , emacs-orgmode@gnu.org Subject: Re: [PATCH] Run latex more than once for LaTeX src block evaluation In-Reply-To: <86msqjv588.fsf@runbox.com> References: <868r2bw5qh.fsf@runbox.com> <886756d2-1428-4117-8ab4-3f4e6b01326b@gmail.com> <87msqof1kh.fsf@localhost> <2fc939a6-3211-4627-b4e9-274d7b6179c0@gmail.com> <86msqjv588.fsf@runbox.com> Date: Thu, 28 Mar 2024 12:17:08 +0000 Message-ID: <87cyretut7.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.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_H3=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." 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: 9BCFA6A8E7 X-Spam-Score: -8.09 X-Migadu-Spam-Score: -8.09 X-Migadu-Scanner: mx11.migadu.com X-TUID: 07nCYVzSU3Wn Michael writes: > Should we perhaps have different variables for preview & Org > source block evaluation? Likely yes. In fact, ob-latex is making use of `org-preview-latex-process-alist' only in a single cond branch in `org-babel-execute:latex' - when we have :file foo.png However, that branch assumes that `org-preview-latex-default-process' is 'dvipng (the default value). If one changes it to, say dvisvgm, the generated image will not be a .png image: (setq org-preview-latex-default-process 'dvisvgm) #+begin_src latex :results file link :file test.png x^2 #+end_src #+RESULTS: [[attachment:test.png]] ^ This is actually an svg image, renamed to "test.png". So, it makes sense for `org-babel-execute:latex' to override `org-preview-latex-default-process' temporarily, to something actually generating .png file. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at