From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.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 oHn4Lg320WUs8wAAe85BDQ:P1 (envelope-from ) for ; Sun, 18 Feb 2024 13:20:30 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id oHn4Lg320WUs8wAAe85BDQ (envelope-from ) for ; Sun, 18 Feb 2024 13:20:29 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=I69JvmxB; 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=1708258829; 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=Oy9JMnfkMKOtBXPXTyTHtmhm0d/1eiNXOrb9hcymQvk=; b=deoMPQozM6M314mqWRYGnj4GGxA7Teik0WYj4SwD1dN8Kf6rH2CIA+7xBuqZmJZs02PP5B RohslhcPyYwfkc9MdFw1rFD+SXHEU+xNFE9b+S/iVqO8T/S0D/U7rY6jvVJYIkHxKaHcg8 wJe13WjJ3U1yBvZU61GRLCgZ2Mkk3OWVhAj0BoOeZa2Pmvqf0CFfNTPTNfyd4fgCyUqnFi X53e+Et48a1/aCZgQOlUrqanpJ6SFj6yfz+3KxBsuwlvM2E1FA99aXvnbF2WB3BphgtSPx Ex5IlA6tUBSOtRnsTvXzAJ2nm8A8UOg/hlqIa5HElEbNRAH7x+fDfXOub3fzSw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=I69JvmxB; 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=1708258829; a=rsa-sha256; cv=none; b=R/7Nxuay/YGIf7QR6/Kx8P2ODSmOrVbm61FNX0MfEG1KOf3kvvHU7clD3vkhSHydIUr3TA fi1XxhzP6Sf27xhymNQH2mdei1ruByygJz6pFOZQRLSFkZT3WmCW58BOWgMZ00xpsKVFJN iSBJLp3c3GwOtzIppwrMY8Vh5OcmcQnqJlOZFxHXCKIweJozU4T3fgiRj/z+zR0bs1AdeM cSfyEcxEJjjBSfWMknyy0I/uDgF5E1X51xXhP+UR1VaHAtrOu9PQ+ZCe8Dd6iXlm6U2YYE NwiMGI4IstMfSF/oDegBfISZAE8LInHRzhzeiTJI/NsST1xySpDU9lxBA5CsAw== 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 6AFE23D9D6 for ; Sun, 18 Feb 2024 13:20:29 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rbg9C-0002hv-M8; Sun, 18 Feb 2024 07:19:54 -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 1rbg99-0002fm-Vr for emacs-orgmode@gnu.org; Sun, 18 Feb 2024 07:19:52 -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 1rbg96-0002gc-A1 for emacs-orgmode@gnu.org; Sun, 18 Feb 2024 07:19:50 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 66A35240028 for ; Sun, 18 Feb 2024 13:19:46 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1708258786; bh=Oy9JMnfkMKOtBXPXTyTHtmhm0d/1eiNXOrb9hcymQvk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: Content-Transfer-Encoding:From; b=I69JvmxB9aNADA+KxHq/BBxOykdvN6rtCgAnUZXDBo2KjwAallYpkgMTrXjhjYPOZ B3mQG85DBYiiUMJ6p373Gq8yCOyQr9Bl0qzASwV9oOliKMYWx0NT4f3bou8mebnIb1 xG7yDlHJ+91cfXivDoAGhFdu5lgljXgaGJTDXvlyO5xApbTH1MDgHkByfmQqV0iKxO +M759suMmEPbWoBftg/G8pwjyNnEay7LVvvsoNu+ach6hIU0W+pKIUliHzi5BPOezs 3qs4CD2kWxiEW+h7z8oza9gjHVolI0s5Mr/dJPLLKLs0dux7ZaDoWa7LWfXDX0FuNK 8kWfJuIOArMeA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Td4VT1npFz9rxN; Sun, 18 Feb 2024 13:19:45 +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: <87zfw45cx9.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> <87v86slbu4.fsf@localhost> <87zfw45cx9.fsf@posteo.net> Date: Sun, 18 Feb 2024 14:20:00 +0000 Message-ID: <87il2lsvlb.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.01, RCVD_IN_MSPIKE_WL=-0.01, 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-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -6.82 X-Spam-Score: -6.82 X-Migadu-Queue-Id: 6AFE23D9D6 X-Migadu-Scanner: mx11.migadu.com X-TUID: eXrvDSS6CGUm Juan Manuel Mac=C3=ADas writes: > It is true that the "org-create-formula-image" method is much more > complete. But, IMHO, I think it's a method focused on the buffer (rather > than the block) or previewing LaTeX code in the buffer. What do you mean? `org-create-formula-image' is passed a string of LaTeX code. Note that `org-create-formula-image' is also used in HTML export. > ... In the case of > the LaTeX block, I think the :imagemagick method is simpler. It depends > on two simple processes: imagemagick and org-latex-pdf-process and > parameters such as the width or height of the generated image, the > density in dpi, etc. can be easily applied, via arguments. ob-latex does not have to expose all the possible toggles `org-latex-pdf-process' has. > ... In the case > of the other method, in addition to the value of > org-preview-latex-default-process, there is that of > org-format-latex-options. There are, in short, many parameters that are > perfect for a file or an Emacs session but for a simple block I find > overhelming. We can fix the parameters we do not want to expose. > In any case, if the org-create-formula-image method is going to stay, I > think it is fine as it is (except for extending the allowed file formats > to more extensions, and not only .png). I also believe that the :process > argument is sufficient for the user to control the value of > org-latex-pdf-process or org-preview-latex-default-process, as > appropriate. My concern about your patch is that it creates even more divergence between different branches of code in `org-babel-execute:latex'. With the new proposed features only available to some code branches, `org-babel-execute:latex' will just become more messy and harder to maintain. I'd prefer to refactor `org-babel-execute:latex' first, before adding new header arguments. --=20 Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at