From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id QBcdLGuUx2VrWgEAe85BDQ:P1 (envelope-from ) for ; Sat, 10 Feb 2024 16:21:15 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id QBcdLGuUx2VrWgEAe85BDQ (envelope-from ) for ; Sat, 10 Feb 2024 16:21:15 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=Opmq5+jQ; dmarc=pass (policy=none) header.from=posteo.net; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1707578475; a=rsa-sha256; cv=none; b=HPD8kvnviwg1ez+PVRVKGfjOuKw+UFqerKvw69MUFbFVJYm/0wx9CsYSkjAc3CVknOg0zf WgXPA9fwHEZi1DRbHzqVxRFSdkCxCPi5/DAP0boKy9PBlLqhv40DQF3YXy8L2hy4Y6M2Vg VTvSKqNv+iBb7iOgcebVLviZAmDT/Ay/nNq/obyfhbh+Q5H/0i6l5T/WqCjShc4st9MADw rYWiLW/6X9MpJC5Nv6APJczRTkdFdH4JMvbBDWvwUwR11bPYRSc7YtsQqecEev+nqi9ryX 4PlRd+JF+IEyTrWrmPEgpBBl3CfFn2PULXeWK+m3ytHE3hzZnE+m7lMgrTazOg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=Opmq5+jQ; dmarc=pass (policy=none) header.from=posteo.net; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1707578475; 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=eNtX6sXSFp4aNyAQQOGozOiz/L3sWhx1h5gXL6js8nc=; b=J7mPqdJ68krTe3oQ5V0v6TfLfe44lRHC15vY6VgeUD0XC9zQ3OFcS1NylA9XuPKppr/GdJ ZCeD+VNvpb0+dsy/i1/e9iTzDe16TPj45e+W/xmZngT5+1nfmZIjDDpbdijgvIyE+IGXJz 2FA8YqnbtG1WE/ixCPLX82JK+Zd9uKS17jJh+I5SpopkZCBP83v7P0AfIvgsaZRFJqtX6b Y7F1FrMU20/lM1qqs49jA1ucnRc8rBshkV44b/ZPNq/iWEG00J7bx5/hCGtd1aQ1bA514x swH2+SYa2wBR+4591+Vb6byS4OElZCSCaxObHfs/n7lJGlWHGP6OlLUSpawEwg== 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 983F3BA9A for ; Sat, 10 Feb 2024 16:21:15 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rYp9S-00030r-8p; Sat, 10 Feb 2024 10:20:22 -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 1rYp9Q-00030h-Kn for emacs-orgmode@gnu.org; Sat, 10 Feb 2024 10:20:20 -0500 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 1rYp9O-00005F-6E for emacs-orgmode@gnu.org; Sat, 10 Feb 2024 10:20:20 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id DA9EE240028 for ; Sat, 10 Feb 2024 16:20:14 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1707578414; bh=EzajPLRZeHg4auEwnPcnqaYrLFR56cJDRYeI/7b8YdQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: Content-Transfer-Encoding:From; b=Opmq5+jQhBTQwunnYbuwQFx61B5uf16b30GoKmuGamgUvUuzkRzI2fQVhw2eF558D TPPvTPp4CrXuJ+CK2s2KJiSUkAB8f+qhQRsABv6w/qBArrJVLrMnJGjSXTAwW/VMa+ aHgQqFhlc+tkd4llQjOW/uNd6drRd5L30hfVuGQjHIjlpkclP8gOsJtyvw0pupidGQ hKjth9vSdUaDH4E027vLTeIfJCBmR/IqCbeO8WqO+WCLXpMV9umduSAwOnZyYVA2I0 4eOo+dYrHIXpekzKnCzoMoEOWXBHIEbtQhpRFlPQd3SztIUJznvX8S97HTom0hdbcD cjVlDWJ4yLhUQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4TXDtQ2xJDz6trs; Sat, 10 Feb 2024 16:20:14 +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: <87wmrcpepp.fsf@localhost> (Ihor Radchenko's message of "Sat, 10 Feb 2024 14:37:54 +0000") References: <87zfw9yt9m.fsf@posteo.net> <87wmrcpepp.fsf@localhost> Date: Sat, 10 Feb 2024 15:20:11 +0000 Message-ID: <875xyw9wic.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.65; envelope-from=maciaschain@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_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-Scanner: mx10.migadu.com X-Spam-Score: -7.41 X-Migadu-Queue-Id: 983F3BA9A X-Migadu-Spam-Score: -7.41 X-TUID: 9vtNTSzTfg1A Ihor Radchenko writes: > Juan Manuel Mac=C3=ADas writes: > >> The attached patch adds two new header args to the LaTeX block: >> >> - `:pdf-process' allows modifying the value of `org-latex-pdf-process' >> locally to the block. This can be useful for evaluating a given block >> with another LaTeX compiler, or even using some custom script. >> Example: >> ... >> - `:full-to-pdf' makes the block like a standalone LaTeX document, which >> should contain everything needed to be compiled, from \documentclass{} >> to \end{document}. Example: > > Thanks! > 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 prov= ided. 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. 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." 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