From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id gJ4jNgq3x2WnOAEAqHPOHw:P1 (envelope-from ) for ; Sat, 10 Feb 2024 18:48:59 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id gJ4jNgq3x2WnOAEAqHPOHw (envelope-from ) for ; Sat, 10 Feb 2024 18:48:58 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=RtMpN7Qs; 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=1707587338; 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=SVdkbyWgDWb+1byZi2uhKocpDUWsrQzGNWcGiulXv7U=; b=H47QXc/XJOnW9w2mzvHq0ieyDMYqzcQ8rtw9wvQqhn6UUIasNp1zHGVxwRM2vK1XxqPPUg 3pZdyIkLHyNoQ1iAW4s4FBsI5uQ1TAY3/w8TxBjrGJrTp3VkxSn7qRJS7dIQ/w7EeRZe33 LsFfoHU1Fnl3REfQEEUSXB7z1VldUlnDsRRYaOOokojhUE/I0jmgyqzg718cwHLdM1HoA/ I1nI9sdSz6nQaJgoRPUPErm8eGdig0a9B0sD+Ef4jrx+ap5qma/Kqs4v29UgApGeHQ5A+X 1+lSP2+RfDM8uM4z0kEQEluO9gU9Ax6hurAK6hK6SpU/GsHccn7jvX8Dteh6dw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=RtMpN7Qs; 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=1707587338; a=rsa-sha256; cv=none; b=sGwEArVOBfD/PRvmPv/h8U0jLuFewWHUUk19vV8BxGRiYtn73TkWlH3w56Cee7whCXUgXZ YHY54dT03+zoHyo+Ya6Ax+6nHNUXcnL8fcQPgAQ+/UX+u59/9d3Ye4wFryXssarRwG9ukK 2wb1u/laqVN0uRa8/zSWRrLt40iz2toGaTE06R2yL4PdMLAPGPz6DRRn255P6xhzlQiKIx OyXF4NSmW7qXE/fV35LrJj36G9FAbCuubligxu+6cYkVFNKZ+5xKSGruzUYLMnUdZY360a Iw2jVZ6SyV/H/Xb3fQazxDvdFesPKzMOrdNSOQd8Xw+lPe7hcCGtMpk2z3NiNg== 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 9059D554ED for ; Sat, 10 Feb 2024 18:48:58 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rYrSb-0001WN-B5; Sat, 10 Feb 2024 12:48:18 -0500 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 1rYrSX-0001Uh-Ij for emacs-orgmode@gnu.org; Sat, 10 Feb 2024 12:48:15 -0500 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 ) id 1rYrSV-0008Lz-9H for emacs-orgmode@gnu.org; Sat, 10 Feb 2024 12:48:13 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 2B382240101 for ; Sat, 10 Feb 2024 18:48:09 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1707587289; bh=SVdkbyWgDWb+1byZi2uhKocpDUWsrQzGNWcGiulXv7U=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: Content-Transfer-Encoding:From; b=RtMpN7Qs3MZZLeQPcxN4bRXEyob3vbDk044Ir0NK0HA+0uSU61bJ00hLIugv3F/4M iflwqGAxDMVMxEi5lRcSkIHgl3YnMqchLIPmw/LOLVQbPIgK2j4ez56OBu51LCcaB5 RNRttI+gmMq3mTPpz67ePIkDWMA2ppdWFyQOuvMLx+04dMZSqdO+qJXDf0Adg8csQN fiHs+w/nuEi+5MLsvNeRrcTufg6PQs/UrJJjNiMprPcU/Ry1pfA8X+a9xjndshqBVU t/NxpHn2YBKTcOA0ld69ktE6bxaz6HTFIJ85ZfNZDe0tmLDvmW0ODtP1IUX7kYKWk/ JNTLzcUJne9gQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4TXJ9450qvz9rxF; Sat, 10 Feb 2024 18:48:08 +0100 (CET) From: =?utf-8?Q?Juan_Manuel_Mac=C3=ADas?= To: Ihor Radchenko Cc: orgmode Subject: Re: [patch] Add two new header args to LaTeX block In-Reply-To: <87le7se0qu.fsf@localhost> (Ihor Radchenko's message of "Sat, 10 Feb 2024 16:35:05 +0000") References: <87zfw9yt9m.fsf@posteo.net> <87wmrcpepp.fsf@localhost> <875xyw9wic.fsf@posteo.net> <87le7se0qu.fsf@localhost> Date: Sat, 10 Feb 2024 17:48:05 +0000 Message-ID: <87wmrc8b3e.fsf@posteo.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.67.36.66; envelope-from=maciaschain@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, T_SCC_BODY_TEXT_LINE=-0.01 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-Spam-Score: -7.63 X-Migadu-Scanner: mx13.migadu.com X-Spam-Score: -7.63 X-Migadu-Queue-Id: 9059D554ED X-TUID: 1HqE8e5Ze0bT Ihor Radchenko writes: > Juan Manuel Mac=C3=ADas writes: > >>> May you please explain in more detail how these new header arguments fit >>> into other available LaTeX code block parameters? In particular, when >>> exporting to .png/.svg/.html or when :imagemagick header argument is pr= ovided. >> >> Sure! `:pdf-process' simply applies a local value to >> org-latex-pdf-process. It does not affect the export to png in its >> version without imagemagick process, since this option depends on >> org-create-formula-image, which in turn depends on >> org-preview-latex-default-process. It also does not affect the export to >> html, which depends on org-babel-latex-htlatex. It should work in all >> other cases, including imagemagick, which ultimately depend on >> org-latex-pdf-process. > > Would it make sense to make :pdf-process work for png previews as well? It would be ideal. The expected value for org-latex-pdf-process is a command or a list of commands, but org-preview-latex-default-process expects a plist of various processes and parameters. Maybe with some conditional? If only the png extension is provided (without the :imagemagick argument), then the expected value is for org-preview-latex-default-process. In all other cases, the value is for org-latex-pdf-process. The argument could then be called simply :process. E.g.: Assuming the user has somewhere (add-to-list org-preview-latex-process-alist my-process): :results file :file foo.png :process 'my-process [or :process '(a plist)] In other cases, like this: :imagemagick yes :results file :file foo.png :process '("lualatex -interact= ion nonstopmode -output-directory %o %f") wdyt? >> As for `:full-to-pdf' (I don't know if standalone-to-pdf would be a >> better name), the expected result is a pdf file. Therefore it is >> incompatible with exporting to png, svg or conversion with imagemagick. >> For it to work, it is enough to provide these 2 args: ":file foo.pdf >> :full-to-pdf yes." > > Maybe just :standalone? Yes, I totally agree. Best regards, Juan Manuel=20 --=20 Juan Manuel Mac=C3=ADas -- Composici=C3=B3n tipogr=C3=A1fica, tratamiento d= e datos, dise=C3=B1o editorial y ortotipograf=C3=ADa