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 wLfLLzlxy2WsqQAAqHPOHw:P1 (envelope-from ) for ; Tue, 13 Feb 2024 14:40:09 +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 wLfLLzlxy2WsqQAAqHPOHw (envelope-from ) for ; Tue, 13 Feb 2024 14:40:09 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=SUtkDCFQ; 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=1707831609; 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=2qqJhZGRN7t+f1+7W1V8Z65lld+PyOqr/7fpXAX3Zkc=; b=igAhIM7LPY4289s8OvmkRt/4VR9nXokR0faSlvfOJhQbZvzAnAxwPt9+ae9BEHuQZrOjEp z1wc4I+QBV+8AFcBL+TGbJJAuE1NglZYeIpKLmQiELF4akAJ5QXGQFFJGi0hrMZa94SNgT NBpu05NqxgM0e766cci9N8e5HgDXAlqM1b+yI0t/APKqd68ek4ueYFKPXqFgntbIyenK4x J/5tSqEhiCc6DFFViWIlc9e6NkfxQCyvu6dzc2xtXvdCSEuZSwO2QVEhCd5PufMblxbUig X+5idXhXAgK9UxB2CK3XULq/u3cHi2g9LWDt4hLRa/bmpmI8YMzidrW2IPXdGQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=SUtkDCFQ; 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=1707831609; a=rsa-sha256; cv=none; b=QCQboTQcjEd7EDI9ZGJod5DtKccjAzceuYXmxOSxPWEe64ZwWlJ1lkwO8WVVPndqESpBoI xJ9jnYuDmGCKUosktrqs7DIT59ZFT5QyuvoDDjQJrelFjNJpNsXv85FErF06XB0J1gyApJ K7JAQYDwuwEoQgCx2dKjYIOV2Gh53Zq/W+YUbc1JFyALW99MQjSJjWcE7b5O2mQDV60m0h zazsXD5eaVbv9KtMb0jXK4RxJGuD+vzg00+9ad8NQQ5pVOuXMNkuwjv1uWVsU7uPikyr/Y m+PkKdFlMALqeAYV/r4yjUcChsljQII6mmDHF9ofOPUWZgNaWNe+DiGpWW9rOg== 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 AA9D85B428 for ; Tue, 13 Feb 2024 14:40:09 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rZt0K-0005MM-HC; Tue, 13 Feb 2024 08:39:20 -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 1rZt0E-0005M4-Hj for emacs-orgmode@gnu.org; Tue, 13 Feb 2024 08:39:16 -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 1rZt0C-00052F-Bm for emacs-orgmode@gnu.org; Tue, 13 Feb 2024 08:39:14 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id A46FD240028 for ; Tue, 13 Feb 2024 14:39:09 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1707831549; bh=2qqJhZGRN7t+f1+7W1V8Z65lld+PyOqr/7fpXAX3Zkc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: Content-Transfer-Encoding:From; b=SUtkDCFQN7in5aGHYwt4QG848bt0y1rEPKjDKv3FSlM5N+3wrePR2B8AYJTZh+I3t Kj/0HjveeVozC6W+zgLymau/Ojmj9AaK6DeLiYiEMhA3vwRMzteR6SLZUicuYBNW19 ChpAMEp7qRvxpDAVt/JFRg3Ubbg9bzI4FSFR63m2M6GEDvSiqdpoXYWrEptCBvdlHU OrjOF6bBwphmQ9QygYBT4M8M6AN4F2KXRGQGMUw1JHTSov4aQajw8ZUQYlEWA8TFLC xOx/lxyXEdO0p8CH6QqkgdNINS+C6Ypc7hONoalD+Cn3TjO0W2RSx/oiYuhcEbOtBr /kqzelO0KhCyA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4TZ2VN6Bkzz6tyG; Tue, 13 Feb 2024 14:39:08 +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: <87h6ie7otw.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> <87cyt4do4h.fsf@localhost> <87mss799lw.fsf@posteo.net> <87il2v9i4r.fsf@localhost> <87h6ie7otw.fsf@posteo.net> Date: Tue, 13 Feb 2024 13:42:43 +0000 Message-ID: <87v86slbu4.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: -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, 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: -5.20 X-Migadu-Queue-Id: AA9D85B428 X-Spam-Score: -5.20 X-Migadu-Scanner: mx11.migadu.com X-TUID: Bzx2S1pbonPJ Juan Manuel Mac=C3=ADas writes: >> Moreover, it would be nice to unify handling .png and imagemagick >> branches of the code. > > I agree. In any case, I still think that the coexistence of two methods > to convert to images, when one of the methods has a scheme so different > from the rest, becomes difficult: for the user as well as for > maintaining the code. > > The first solution that occurs to me (I'm afraid it's too radical) is to > leave only the :imagemagick method, and maintain the possibility of > using the other one through a variable. Something like > org-babel-latex-default-image-conversion-method or something similar. > But I suppose this could cause unwanted inconveniences. We should see > what more users think. I am not sure. Conceptually, .png method is more flexible than imagemagick - it uses `org-create-formula-image' that is handling (1) preamble; (2) conversion not only to png but to svg and other arbitrary formats. ob-latex is duplicating org-create-formula-image code, layering custom latex preamble and more commands on top. So, ideally, I'd prefer to obsolete the custom code in ob-latex and make use of `org-create-formula-image', possibly extending it to fit ob-latex needs. --=20 Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at