From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 0AgyCZF8zWHoVAEAgWs5BA (envelope-from ) for ; Thu, 30 Dec 2021 10:32:01 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id YNPjAZF8zWE53QAAG6o9tA (envelope-from ) for ; Thu, 30 Dec 2021 10:32:01 +0100 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 9A476E841 for ; Thu, 30 Dec 2021 10:32:00 +0100 (CET) Received: from localhost ([::1]:56860 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n2rmx-0008Gz-R7 for larch@yhetil.org; Thu, 30 Dec 2021 04:31:59 -0500 Received: from eggs.gnu.org ([209.51.188.92]:44572) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n2rlW-0008Gc-6Z for emacs-orgmode@gnu.org; Thu, 30 Dec 2021 04:30:30 -0500 Received: from [2607:f8b0:4864:20::536] (port=40870 helo=mail-pg1-x536.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n2rlU-0000A6-9t for emacs-orgmode@gnu.org; Thu, 30 Dec 2021 04:30:29 -0500 Received: by mail-pg1-x536.google.com with SMTP id l10so21014098pgm.7 for ; Thu, 30 Dec 2021 01:30:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:references:user-agent:in-reply-to :message-id:mime-version; bh=7ljfDjg33k8IkJmZJZiMjjUnV8tBs/5CifmpFEVywUM=; b=fF8BgIPzSfnw+z2HzGOv+XmFRo+gNbmNZj13mYOfirigasVV01m3Ze1d6fsGeDTKzc wlXjUzQBDPfjZPZzFCBroORJB9avWdxVT3ORo+c9Dx/gfYVMwftIEvpTzpAU8gJ8iGQR ppr4Exi83pzC6yoigmYKNrkM9QnKEi1L5yRyKQP1R6icD7rtcLF/89t1A4BmU0reSgvD qHdzAzNRwC+8VRbj/m0ULZ5FxE8izaZXKrhmDjs9fNMMF1T0UARtcOf1GUmEp3ng4UXR Dc3n74fGameClCVPC9srgddjPFxICz+SzZ3gUmaGem7LBroivepoP+IKfvVYoowwsCFp g2SQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:references:user-agent :in-reply-to:message-id:mime-version; bh=7ljfDjg33k8IkJmZJZiMjjUnV8tBs/5CifmpFEVywUM=; b=hxUZgG1ZY3d92qXCmQSPTQXSzGNzUgD9vznhIDMKIam5poHfCBUgA1b10OPIe3TpWV sldJiwFZzc4hGoV6/ZGUBXd6H3hKMlODCi+ewt8h9G3Wf8kw8vwhee9W5dwdY4g7ew/7 t/TnwQsLxJ0Byw3h4VJ18FiZZ5ChlAy518yNRa5y3bSHML/WgQ7mb1k1dF/nfUBaZI/y 7lqB9MURy/KZmJn1/JxzsqQE/gaPv6LoPiagqTxfSvmRCc+VPIB+7M9z+Khc+FXMo9UG R6+j4XI5tbn7hWkb9c49wsgj3FQidHlXTUxhEVRwGabb/vCJ5ee2v8ol4a85aMrOAFUK OH4g== X-Gm-Message-State: AOAM5317xZ/xCFGNxIOsc4JcOjZYIX2qtZbmuogY0cbdcMhanhQx5SIb LyfHwm2TgJWW92XkGonVZRk= X-Google-Smtp-Source: ABdhPJyUct/ShJP6j0YqlqtLWUjhLe+Gbq0stafXD/XhDPTP66DeQQ2CdG/dyaIm4DVyDk7+PObjoQ== X-Received: by 2002:a05:6a00:134d:b0:4bb:91ca:2770 with SMTP id k13-20020a056a00134d00b004bb91ca2770mr28064322pfu.41.1640856626874; Thu, 30 Dec 2021 01:30:26 -0800 (PST) Received: from localhost (61-245-128-160.3df580.per.nbn.aussiebb.net. [61.245.128.160]) by smtp.gmail.com with ESMTPSA id y3sm7986747pgl.83.2021.12.30.01.30.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Dec 2021 01:30:26 -0800 (PST) From: Timothy To: Zhuohua Li Subject: Re: Bug: `org-babel-latex-preamble' should not hardcode `pgfsysdriver' [9.4.4 (release_9.4.4 @ /home/n/.emacs.d/elpa/28.0/develop/org-mode/lisp/)] Date: Thu, 30 Dec 2021 17:24:44 +0800 References: User-agent: mu4e 1.6.10; emacs 28.0.90 In-reply-to: Message-ID: <87pmpeqw28.fsf@gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::536 (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::536; envelope-from=tecosaur@gmail.com; helo=mail-pg1-x536.google.com X-Spam_score_int: 6 X-Spam_score: 0.6 X-Spam_bar: / X-Spam_report: (0.6 / 5.0 requ) DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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: , Cc: emacs-orgmode@gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1640856720; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=7ljfDjg33k8IkJmZJZiMjjUnV8tBs/5CifmpFEVywUM=; b=Kb89EnQPUVqk2G1tAkvdcGDGJME17pXJfe0siHtewnJSA2BhFoEqXYddiRc2TOEJgGS+OV bcTf6Ob1cRaZUHb7WHFImIRbVca14cnvBlcRmOfusLEfs2kuQ1dnxa5mNrbsKTEYjcN3n6 F2wbi+Xg77LIPH7IZ5cS18YV8dhwflE3+1Niomvd6iTwIVjSWsSqYsW1Dg7AXC945+npoE GZhe0iggd664zDJ9Ed+RZelHTrPeyoIVHVmKHDcsZFUxGLRRBNBF86af7Az+moRAdJ+tDH yOP+2g5nDAolV0GGos3Q+Sz9VXjxNqoKFRxsqLXTu8dErJhmHWyxKboD5rcOpg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1640856720; a=rsa-sha256; cv=none; b=s1H+O9UU3P3RSlxOZ9rBqWHA91hH23O2XRgWwEvjsHFGrfvSB+e5HAZJDCqZ+TGEFpbpPb Gnbn9EBUlMLqCpZlUEtd1QSaup/f3Olqly6yLomKLMr8bC/0KTxF8GPse7HeIRhPtVeZ/p r3OWYNWUXMGestw/YmT7Ka3ou+7nZTdSemQCeH6MrEJUh6rWyJZt3nLL/ZRGCX2TO6gZPT duOG3yyl2qmliuX399G0fg6Gmi+U0wtdRhvzuiiYZkUT6+UZKUTuuv8DF2nX9yjpDSrkZw jewP6JFxysEFXsfzu0abOrjFDf5WlN73Sr9b/jiBu95xpA2nc/qBV4pgfQdVYA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=fF8BgIPz; dmarc=pass (policy=none) header.from=gmail.com; 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" X-Migadu-Spam-Score: -3.27 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=fF8BgIPz; dmarc=pass (policy=none) header.from=gmail.com; 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" X-Migadu-Queue-Id: 9A476E841 X-Spam-Score: -3.27 X-Migadu-Scanner: scn1.migadu.com X-TUID: Q8ISwoH5QpVx --=-=-= Content-Type: multipart/alternative; boundary="==-=-=" --==-=-= Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Zhuohua, Thanks for the bug report, and sorry it=E2=80=99s taken so long for someone= to look at it (the maintainers have had a busy year). I=E2=80=99ve just had a look, and indeed see `\\def\\pgfsysdriver{pgfsys-te= x4ht.def}' hardcoded at `ob-latex.el:185'. However, this is inside a `(string=3D "html" extension)' check, so tex4ht seem like the right driver to use here. There = is also a TODO just before it though, =E2=94=8C=E2=94=80=E2=94=80=E2=94=80=E2=94=80 =E2=94=82 ;; TODO: this is a very different way of generating the =E2=94=82 ;; frame latex document than in the pdf case. Ideally, both =E2=94=82 ;; would be unified. This would prevent bugs creeping in =E2=94=82 ;; such as the one fixed on Aug 16 2014 whereby :headers was =E2=94=82 ;; not included in the SVG/HTML case. =E2=94=94=E2=94=80=E2=94=80=E2=94=80=E2=94=80 I think a patch which implements this could also allow you to change this hardcoded string, and would be most welcome if someone were to give it a sh= ot. All the best, Timothy --==-=-= Content-Type: text/html; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable

Hi Zhuohua,

Thanks for the bug report, and sorry it=E2=80=99s taken so long for someone= to look at it (the maintainers have had a busy year).

I=E2=80=99ve just had a look, and indeed see \\def\\pgfsysdriver{pgfsys-tex4ht.def} hardcoded at ob-latex.el:185. How= ever, this is inside a (string=3D "html" extension) check, so tex4ht seem like the right driver to use here. = There is also a TODO just before it though,

	  ;; TODO: this is a very different way of generating the
	  ;; frame latex document than in the pdf case.  Ideally, both
	  ;; would be unified.  This would prevent bugs creeping in
	  ;; such as the one fixed on Aug 16 2014 whereby :headers was
	  ;; not included in the SVG/HTML case.

I think a patch which implements this could also allow you to change this hardcoded string, and would be most welcome if someone were to give it a sh= ot.

All the best,
Timothy

From: Zhuohua = Li
Subject: Bug: `org-babel-latex-preamble' should not hardcode `pgfsysdri= ver' [9.4.4 (release_9.4.4 @ /home/n/.emacs.d/elpa/28.0/develop/org-mode/li= sp/)]
To: emacs-orgmode@gnu.org
Date: Mon, 06 Sep 2021 15:02:58 +0800


Remember to cover the basics, that is, what you = expected to happen and
what in fact did happen.  You don't know ho= w to make a good report?  See

     https://orgmode.org/manu= al/Feedback.html#Feedback

Your bug report will be posted to th= e Org mailing list.
---------------------------------------------------= ---------------------

Hi, I tried to export LaTex code = blocks into SVG images using the development version org-mode (d70f280678) but faile= d with "PDF produced with errors".

I fo= und that in file = `lisp/ob-latex.el', variable `org-babel-latex-preamble' hardcodes the follo= wing:

\\def\\pgfsysdriver{pgfsys-tex4ht.def}

<= span class=3D"gmail-ui gmail-blue gmail-sha gmail-label">This only compiles= if you use `htlatex', however, the default LaTex compiler is `pdflatex`.
<= br/>
I deleted this line and everything works fine. I think this should be = a bug so I report it here. Hope it can be fixed.

Thank you very = much!

Zhuohua


Emacs  : GNU Emacs 28.= 0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.29, cairo version 1.1= 6.0)
 of 2021-08-28
Package: Org mode version 9.4.4 (release_9= .4.4 @ /home/n/.emacs.d/elpa/28.0/develop/org-mode/lisp/)
--==-=-=-- --=-=-=--