From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id wNo0IdJYlF9DDgAA0tVLHw (envelope-from ) for ; Sat, 24 Oct 2020 16:39:46 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id 4O8XHdJYlF9sKQAAbx9fmQ (envelope-from ) for ; Sat, 24 Oct 2020 16:39:46 +0000 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 37F519402A2 for ; Sat, 24 Oct 2020 16:39:46 +0000 (UTC) Received: from localhost ([::1]:41378 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kWMa1-0000lQ-80 for larch@yhetil.org; Sat, 24 Oct 2020 12:39:45 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56414) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kWMZd-0000kf-05 for emacs-orgmode@gnu.org; Sat, 24 Oct 2020 12:39:21 -0400 Received: from mail-pf1-x42b.google.com ([2607:f8b0:4864:20::42b]:39070) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kWMZb-00034c-27; Sat, 24 Oct 2020 12:39:20 -0400 Received: by mail-pf1-x42b.google.com with SMTP id e15so3633713pfh.6; Sat, 24 Oct 2020 09:39:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=Xf7F5woPqZvLTyO5N4LDu2m/QtxGXpnqDwADWOnXulE=; b=SNAw9Ofoh8P6NszcU9rvkzS7zZN8yNOAtdg8+Vid7o+iNsNdUOfdro2SieVups+eCd WBAJUslDCYP1YHxcCYdpSkfRCERvXObac0wyBXNL7F5sqghbNKOf+Pm2wplS9daedaP3 ebw//3Q+vrcpoA0+2n4FtbpVoOocFyNMkOL9MWpkcAf9iYNTxi/gvk8XtJRQ9aaS3xI3 iOURKhuBSq0J/EDESuGmaDO5CWG8mkFQh7mJ7pnDgYZw3quTl5fF73FLrdB9bYtJpvJm jeMrJnXiVX7WuHkVZZzRzMwBhL2XbNwj36PtWJGTwgoJsNG/qT32NfWADC6MO4Kb9XVH 9twQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:cc:subject:in-reply-to:references :date:message-id:mime-version; bh=Xf7F5woPqZvLTyO5N4LDu2m/QtxGXpnqDwADWOnXulE=; b=epUbrNijbkJKa3dqbtbw+Pmf6kPf/gTjzKLjiYxABY/HyHQjeJduLemad6nz7EuFq5 6WgooBJdrEAl8EiCzFAh2q/T3McE+9TEKGnD665wufYTUuIemLPE3iFr12U0wM8/9uky e/r110jhDV6cpnVt9TdKEIIfar9gei5R7dyFz0eWacXI6fzd28cspmoTH8+g4LdvtvRL jFOiZPbHyoZBFakD11LmBBWlKCPPsE5VJsFrm49IVGsWvHbXFSsV9778TxBEDuopYP+M ta6PhSd0Ft4Ed611DidD8tnVjOiaMrfQYlL9peAYPIPasZuuzeBrasthuqnBoBWLgI0b j22g== X-Gm-Message-State: AOAM532eiiC+IBS5SNUPhICzbyK8YdespZGeEj30zG9XPMbC3L5uXDEF fI3jmMykeqM2y3qlnH1+ImOOCWPiX91/lg== X-Google-Smtp-Source: ABdhPJzHZYHBOQyPi5Z9RRjf83Qs5BhzrPsm+VxCov6vfQGo0naA7NF605bayNe5IxI6ABbnf83r6Q== X-Received: by 2002:a63:af08:: with SMTP id w8mr1315016pge.419.1603557556237; Sat, 24 Oct 2020 09:39:16 -0700 (PDT) Received: from ryzen3950 (c-73-71-89-135.hsd1.ca.comcast.net. [73.71.89.135]) by smtp.gmail.com with ESMTPSA id y5sm6345217pge.62.2020.10.24.09.39.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 24 Oct 2020 09:39:15 -0700 (PDT) From: Matt Huszagh To: Bastien Subject: Re: [PATCH] babel latex headers and image generation commands In-Reply-To: <87tuujhklv.fsf@bzg.fr> References: <874kw6ztr9.fsf@gmail.com> <871rrayrsc.fsf@gmail.com> <87y2thylcb.fsf@gmail.com> <87r1z29abl.fsf@gnu.org> <87y2lynft3.fsf@gmail.com> <87zh685bl4.fsf@gmail.com> <87d034qacb.fsf@gmail.com> <874kobmnrc.fsf@gnu.org> <87sgbqzqgr.fsf@gmail.com> <87tuujhklv.fsf@bzg.fr> Date: Sat, 24 Oct 2020 09:39:13 -0700 Message-ID: <878sbvbmtq.fsf@gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=2607:f8b0:4864:20::42b; envelope-from=huszaghmatt@gmail.com; helo=mail-pf1-x42b.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: , "emacs-orgmode@gnu.org" Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=gmail.com header.s=20161025 header.b=SNAw9Ofo; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Spam-Score: 0.09 X-TUID: u6s2mgddzHFX --=-=-= Content-Type: text/plain Bastien writes: > sorry for the delayed answer. No worries! > Can you provide a patch against etc/ORG-NEWS announce this? Attached. Let me know what you think. Matt --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-etc-ORG-NEWS-Describe-new-behavior-of-babel-LaTeX-SV.patch >From 51fb3ef9843ae45884803142f150c5d2f4f4d4c9 Mon Sep 17 00:00:00 2001 From: Matt Huszagh Date: Sat, 24 Oct 2020 09:36:56 -0700 Subject: [PATCH] etc/ORG-NEWS: Describe new behavior of babel LaTeX SVG images --- etc/ORG-NEWS | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/etc/ORG-NEWS b/etc/ORG-NEWS index 7f935bf52..b9b0c1271 100644 --- a/etc/ORG-NEWS +++ b/etc/ORG-NEWS @@ -35,6 +35,28 @@ omit a file description was to omit the header argument entirely, which made it difficult/impossible to provide a default value for =file-desc=. +*** New behavior for babel LaTeX SVG image files + +Org babel now uses a two-stage process for converting latex source +blocks to SVG image files (when the extension of the output file is +~.svg~). The first stage in the process converts the latex block into +a PDF file, which is then converted into an SVG file in the second +stage. The TeX->PDF part uses the existing infrastructure for +~org-babel-latex-tex-to-pdf~. The PDF->SVG part uses a command +specified in a new customization, +~org-babel-latex-pdf-svg-process~. By default, this uses inkscape for +conversion, but since it is fully customizable, any other command can +be used in its place. For instance, dvisvgm might be used here. This +two-part processing replaces the previous use of htlatex to process +LaTeX directly to SVG (htlatex is still used for HTML conversion). + +Conversion to SVG exposes a number of additional customizations that +give the user full control over the contents of the latex source +block. ~org-babel-latex-preamble~, ~org-babel-latex-begin-env~ and +~org-babel-latex-end-env~ are new customization options added to allow +the user to specify the preamble and code that preceedes and proceeds +the contents of the source block. + ** New features *** =ob-python= improvements to =:return= header argument -- 2.28.0 --=-=-=--