From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 876iIIT4219EKAAA0tVLHw (envelope-from ) for ; Fri, 18 Dec 2020 00:32:04 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id 4BgsHIT421+YLgAAB5/wlQ (envelope-from ) for ; Fri, 18 Dec 2020 00:32:04 +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 17A94940356 for ; Fri, 18 Dec 2020 00:32:04 +0000 (UTC) Received: from localhost ([::1]:48370 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kq3gf-00026n-RB for larch@yhetil.org; Thu, 17 Dec 2020 19:32:01 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:48726) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kq3f8-00022r-8c for emacs-orgmode@gnu.org; Thu, 17 Dec 2020 19:30:27 -0500 Received: from mout.gmx.net ([212.227.15.19]:48517) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kq3f3-0000hp-6B for emacs-orgmode@gnu.org; Thu, 17 Dec 2020 19:30:26 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1608251416; bh=rKohefcHEvZfPcofHXeXa3/bX7H8Mm5cnaAd6zfALCI=; h=X-UI-Sender-Class:References:From:To:Cc:Subject:Reply-To: In-reply-to:Date; b=kV/TKDpL93LZTtgew1CMyQ6bmTIzLDLCAKuqBaHl927um2g57pRECobMaP5oaKhUY WZIc5woCZ53vXPRQ5b/5QrF+LT04PYqk3emUyI2/tjd1c+pjgt/YAPeVMlD+nX/uVu pIzpn7ePR2+CmSs5aIkMYVMqC0Jz2MK8zZZS0AMY= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from dell-desktop ([173.48.184.153]) by mail.gmx.com (mrgmx005 [212.227.17.184]) with ESMTPSA (Nemesis) id 1N4QwW-1k8NTF48ak-011TcN; Fri, 18 Dec 2020 01:30:16 +0100 Received: by dell-desktop (Postfix, from userid 1000) id DC08E28005D; Thu, 17 Dec 2020 19:30:13 -0500 (EST) References: <87im9akfpo.fsf@gmail.com> User-agent: mu4e 1.4.13; emacs 26.3 From: Thibault Marin To: Jeremie Juste , 10cadr Subject: Re: LaTeX fragments not being generated due to extra * in tikz env In-reply-to: <87im9akfpo.fsf@gmail.com> Date: Thu, 17 Dec 2020 19:30:13 -0500 Message-ID: <87h7ok3qi2.fsf@dell-desktop.WORKGROUP> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Provags-ID: V03:K1:KKVyvC8R3S8eKVSfFqoyeA8SsRnChVsF6yWGUP/cIPBPbFFYiOF on4MMzPLYlL00E3rE5HEuesWfwqPmx3VT1Vyw20fcKgRYihbYjuBSscY4R+K0s5nMgm8dz2 c6h4sobmLIXiEefBCu5zIIK+Akw5j32L3prAEWxC+kk1ktdgWHmvw4snE9TFGioY4wpB25/ 40N2+u2eQjEN+oYpYRPaQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:FKJ7WKLk2dQ=:S/NFU0ahhI0fJyLWfc0Mku 0pnKntgLpsh85jFDMkYteMMnaoW2Pf6+9Fc/EBcmcIMfBiaM4GE0GzjKtVvaY95GJS0+X2WcD hSboPToH3K4UJXSpAQ2ozuiB+EtkDcFHHfVWjR3KoZPNOtzxa8tsw3DZj+FKZ55m+Vi6owLCn vlT5Ac7iS/j5weiDbCxSrr9R0xQNuQS3TMcZPA9ZCDhYgSnFJwlOfhfaeUP9SO67H3qQuB+KK Z9AHZVzn7I4m9jf75rTyH83M20nDxLFmg24EX4u7nCo40vHg+AsGRIQMElV+orDI/QvnP6p7Q E4/b37CTsUML1iyyDL+6YvZlCtKVlFBbORu50i9N1F/WvaffVNPVkv8KZKRePS3iu0ZHOF+Oo EK/kX02oKehbD5SGRGKmA8ISpA++csoOinPoSBA9oQsWvRc1hl/Vqf078b8bdIb3CVXDsTlpr ZgmONaS9JQtT5IZjDLom/HT5QYkxLm5u9ZIRENOUc1o3ff3Vrta4kVzhhhCafmFmMiR0FD6k2 KwcaJPNnbYbGw/Pjbvw1SG+TdfCk8DgheFW7cxOn+zUMbff6k/mD363oLMQAS3WA8IAYZoFcH KN/2x/JFLrOg8e8i6Xys0spzQhR4uTTOcYnM4934K0wD0nI8HLtsnkqitMMqRcEt2kLEJ2dKW IlwW3PutPkVTwsTcRCxL4Z3p3ATfMHxamMdp2T0uZRhJOuQn8eN5u/GhKc/yQ1gw8Quce2nKH hYCxI/b97lNb+0FWwgnf2dAyg0rVRBwT1DECROCq9eotVKRBf5Eo4y3JyJquJRQnhnS3FbUSp EtblR+EYmo3lfk4F8mrqYPJpKOsVfc72vgZiFZZDcVLVPe32uxObvCK7M2E1+09mCnPKMHyD/ mR1m/hqLurXOlVJBpbxw== Received-SPF: pass client-ip=212.227.15.19; envelope-from=thibault.marin@gmx.com; helo=mout.gmx.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, 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: , Reply-To: thibault.marin@gmx.com 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-Spam-Score: 0.08 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmx.net header.s=badeba3b8450 header.b=kV/TKDpL; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=gmx.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-Migadu-Queue-Id: 17A94940356 X-Spam-Score: 0.08 X-Migadu-Scanner: scn0.migadu.com X-TUID: tYfpoOQYsMiU --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi, I introduced the change that broke the behavior. The attached patch seems to fix the issue for me, does it look reasonable? Thanks, thibault On 2020-12-09T13:16:19-0500, Jeremie Juste wrote: Hello, Thanks for reporting. Indeed this is an issue that hasn't been fixed yet. This is the case for most latex environments My solution is here https://www.mail-archive.com/emacs-orgmode@gnu.org/msg129974.html but consider also the idea behind the star https://www.mail-archive.com/emacs-orgmode@gnu.org/msg129976.html I will try to submit a patch soon. Best regards, Jeremie On Tuesday, 8 Dec 2020 at 20:57, 10cadr wrote: > I was trying out the new option tex:dvipng. The HTML result was a imag= e > with the tikz code. > > Turns out, debugging and telling the fragment processor not to delete = the > files, what org generates for the tikz fragment is: > > \begin{tikzpicture*} > > Removing the astherisk would make it work without any workarounds. > > How I got around this was > > #+LATEX_HEADER: \usepackage{environ,amsmath,multicol} > #+LATEX_HEADER: > \NewEnviron{tikzpicture*}[1][]{\begin{tikzpicture}[#1]\BODY\end{tikzpi= cture}} > > Possibly fixing this issue, will make cross formats much easier. -- Jeremie Juste --=-=-= Content-Type: text/x-diff Content-Disposition: attachment; filename=0001-Fix-non-math-environment-export.patch Content-Transfer-Encoding: quoted-printable =46rom f5122a85b0170f17be103400b5f910030df806c4 Mon Sep 17 00:00:00 2001 From: thibault Date: Thu, 10 Dec 2020 13:26:08 -0500 Subject: [PATCH] Fix non-math environment export * ox-html.el (org-html-latex-environment): Prevent addition of * to non-math environments. Added * is used for math environments to replace latex equation numbering by org labels for html linking. =2D-- lisp/ox-html.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lisp/ox-html.el b/lisp/ox-html.el index d2f24f5c6..40024c70b 100644 =2D-- a/lisp/ox-html.el +++ b/lisp/ox-html.el @@ -2933,7 +2933,9 @@ CONTENTS is nil. INFO is a plist holding contextual= information." ((assq processing-type org-preview-latex-process-alist) (let ((formula-link (org-html-format-latex - (org-html--unlabel-latex-environment latex-frag) + (if (eq nil (org-html--math-environment-p latex-environment)) + latex-frag + (org-html--unlabel-latex-environment latex-frag)) processing-type info))) (when (and formula-link (string-match "file:\\([^]]*\\)" formula-= link)) (let ((source (org-export-file-uri (match-string 1 formula-link= )))) =2D- 2.29.2 --=-=-=--