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 eNE6Kwjlx2U2NQAAqHPOHw:P1 (envelope-from ) for ; Sat, 10 Feb 2024 22:05:12 +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 eNE6Kwjlx2U2NQAAqHPOHw (envelope-from ) for ; Sat, 10 Feb 2024 22:05:12 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=MmcF26Ew; 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=1707599112; 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=IuWK0Wp1o3EuWUflmwSSIM8OfyOyF5TJbrWCriX+o/s=; b=uivywBEFQzd1N6Ysif4FZ9l5j+GroTSHNuPsol3SQrqVgpiGfWjlNUZfwl7gGOLLZJHgIA d8I9+COtWJGuDXrOYnHFASolSc2XAKm+WYKEZF6ala5MkZBXCtUzALzXR6lQ8lsiEMTfi1 0eiyNG14fpgZGsczh0JGA4s2Kfqcm3/OFyoXMed8LhxOGgZ1GdBGe9NeJ8N6XGGgFGN/1h nzly35pVuc0dTi0PsbrGjm4ytvX53WX+QmfrKEou5YwlkSAPCwlrsGRR2OwMOVG0Wvnr78 FgySgLlxxpc13xcKL1VwM/d375JcFFzr0XPKNgrNlLkPSTfoOI2PhEumscw5FA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=MmcF26Ew; 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=1707599112; a=rsa-sha256; cv=none; b=WZibxzDjS3kEpizds3xHC3HlCpzYiNNiiNkKMrplHBfMLJ+X8O3S0ICNbOaVFCWXahMS7b eMaZ8BVERppRurje53eb50y3QirSERP3J9EpJI9EbHjeJX5jnSFfp3K4Bl0L43RyjiqL+i ty+NJTtpzOLUZsP368nwFwg6UjVEnBz/rU4LZ2D1Zc/auG8olQLl2/cyH+61j5yVekrPj4 1ZPC2qUBgZNA35k0vt+Ia8wP9bvhB9oChi5GFerduC7IBDzWSntoCwsaSDb8+buw9jIHy5 CUl4b/huYAt8lCCEipcBtp+XE2TG4HwI+FHkkHpYe4msbz/rMWO87hEXg1HqJg== 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 0AE3C3D90F for ; Sat, 10 Feb 2024 22:05:12 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rYuWO-00024J-U1; Sat, 10 Feb 2024 16:04:25 -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 1rYuWL-000242-65 for emacs-orgmode@gnu.org; Sat, 10 Feb 2024 16:04:22 -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 1rYuW9-00069e-4D for emacs-orgmode@gnu.org; Sat, 10 Feb 2024 16:04:20 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 954A7240027 for ; Sat, 10 Feb 2024 22:04:05 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1707599045; bh=B8UXlGAVztk3rZMMcIktPkT7d4SLIZcJJiXyznl9aCg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: Content-Transfer-Encoding:From; b=MmcF26EwHoW5Yji/PH5N2gastUust2VnaVqiO+J+GiDDNKU18wacMdIcxhgMMqGPb hm3P0liHpLSH7NmsHu+RzB/EneXNFVEbTD0zbNu5ga0o3JgpO8LTc64GVfz4mAQYpU 16tD/d0DbE5FH+eytD1foAQ76fn2xyqNA+vBhOd9qncgY3d5cfLpftOgYdwqKFk2PX Aq2VqQbU6N9Ap8j5B3k45tV49d5DZRqhr8EFon25ohchTXW76q7mHu8h7X2/zrqS6f ITom1XswLFxLHIaEr6JRpPPexXR5zhiotakWPFUocusGbwtCOZZEzalQRWjVVXO2Qu hODSMUNlnJhjA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4TXNW91ncMz6tvJ; Sat, 10 Feb 2024 22:04:05 +0100 (CET) From: Ihor Radchenko To: Juan Manuel =?utf-8?Q?Mac=C3=ADas?= Cc: orgmode Subject: Re: [patch] Add two new header args to LaTeX block In-Reply-To: <87r0hk863m.fsf@posteo.net> References: <87zfw9yt9m.fsf@posteo.net> <87wmrcpepp.fsf@localhost> <875xyw9wic.fsf@posteo.net> <87le7se0qu.fsf@localhost> <87wmrc8b3e.fsf@posteo.net> <87r0hk863m.fsf@posteo.net> Date: Sat, 10 Feb 2024 21:07:42 +0000 Message-ID: <87cyt4do4h.fsf@localhost> 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=yantar92@posteo.net; helo=mout01.posteo.de 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, 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: -8.75 X-Migadu-Queue-Id: 0AE3C3D90F X-Spam-Score: -8.75 X-Migadu-Scanner: mx11.migadu.com X-TUID: kOPXgdIJa4wI Juan Manuel Mac=C3=ADas writes: > I am attaching a new patch with this idea incorporated. I have also > changed the name from full-to-pdf to standalone. > > + (process (cdr (assq :process params))) > + (org-preview-latex-default-process (if (and process > + (string-suffix-p ".png" out-file) > + (not imagemagick)) Considering that 'imagemagick is one of the variants in `org-preview-latex-process-alist', it might be reasonable to allow :process imagemagick =3D=3D :imagemagick yes Also, it feels incomplete to be able to define latex command for :file foo.pdf, but be limited to a pre-defined list of symbols for :file .png. --=20 Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at