From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/32078 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Claudio Di Vita Newsgroups: gmane.text.pandoc Subject: Re: Inaccurate parsing with tex_math_dollars Date: Tue, 24 Jan 2023 14:19:46 +0100 Message-ID: References: <4AB3C54A-0054-4E50-9DD7-FBA2D4DA281A@gmail.com> <877cxcky9v.fsf@zeitkraut.de> <1a7053ea-0a6d-94af-2a67-d209420b9039@gmail.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000004309b505f3025fdc" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5220"; mail-complaints-to="usenet@ciao.gmane.io" Cc: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To: Duncan Murdoch Original-X-From: pandoc-discuss+bncBDOYFIOXRYHRB7VVX6PAMGQEYAF5H3Q-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue Jan 24 14:20:01 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-io1-f62.google.com ([209.85.166.62]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1pKJDV-00012x-QW for gtp-pandoc-discuss@m.gmane-mx.org; Tue, 24 Jan 2023 14:20:01 +0100 Original-Received: by mail-io1-f62.google.com with SMTP id 4-20020a6b1404000000b00704700d919csf8742737iou.11 for ; Tue, 24 Jan 2023 05:20:01 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1674566400; cv=pass; d=google.com; s=arc-20160816; b=cjifhiGr8Fvtyfq8h5ZWcledx1xk9nBUpRajgGLUkZAqYS+l0Q8bucHA6qyOjEGehD i4DB1e6GbbKD2ql5utUUGUkbOfAJ17Qb+52V2tKx/cvnsAPNImSNSS94B7/T9NbFnWGI ZeL2KZaWT2Csur2cvzN0nX/oCOqv8orjt2Zo1PmI5oyiAx91DhguxhX8LLizkD/rRjRj bBeuEDn1C4dhtp4nMZUAWbCjqAk0nXOg6DN4nmL8KJw/6o8rS6Vd+GOh+oLyZTtDb+6s b4jxkpt8A7hCTyj8pzPZqt9yv7NdUunbgBVr1zaizJJCZ7NrVMtrYIxXP/+861GhQ7T5 lzSQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:cc:to:subject:message-id :date:from:in-reply-to:references:mime-version:sender:dkim-signature :dkim-signature; bh=1KCst+gPlrFF3sDD+BiLQ+JX5Q4pVaPlbqPm305yvBE=; b=jIx0Iiu/7ctAcZ5H+gsIuyXbLjHRX4+twO9qlulAnc0tvCFamCo7mtDrschWa/MvqN DSC53Of+pOmG5biJYp/zUZPKCyfwI6bIxjK1DC2yg198/FUWENW41HG0b1a+s7Bi12dO avZCWN3HZ+yQwRaVIVMznqCO36nVpgjQHL5oW2KWVDirsIOEsLv9+TOs2lCDBmTrSBwj hhz2GZsf3CxooG7rxSDoeYkQXdc9szzzjF/C0Zu/PLeFRCjSe0AKWwt/O8emyAhhJHC/ plceVwlZl8FMBzDOUQSI7vB2oeG05j2Y/X1qwXarlXqH0F34HI64jFyRaVwoO1zvPVd1 96Rw== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=jCxwhHbU; spf=pass (google.com: domain of claudio.divita-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::1136 as permitted sender) smtp.mailfrom=claudio.divita-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version:sender :from:to:cc:subject:date:message-id:reply-to; bh=1KCst+gPlrFF3sDD+BiLQ+JX5Q4pVaPlbqPm305yvBE=; b=igG2PSLXdXR5d2npcAn1kEg1/wHHiQ1dM6daqTImUOcz+kQlwH+s17Lg4ygykz1nMl 3E3XtJA/6XQ1/5HiynbXWKkeOHvynGeYgVBbxcblaqDinlu/ozTayMEJsBcEQwELVOji xPRZwTbqoCD0QXI5VXl49vh7yLRE3BDpGqpVj8TG+kj7NwZKByTZWyge3z4KKSyr6MIY h4niiwryjvm+rqUSXbbQxSPX3gpsHKfqetE8+Wtn1Cn1+XV0ElBTjURa3yb08qglgOF4 9s7k+ZQAgjb2lZWLYGSB78BjDnzmLLwKOydAlfQdwVGj+wrpu/206PC4iVZD1kk3n8gf tbwA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version:from:to:cc :subject:date:message-id:reply-to; bh=1KCst+gPlrFF3sDD+BiLQ+JX5Q4pVaPlbqPm305yvBE=; b=QRMeYNfCE33dNsJovMtChZx4LfMzY8q9ID0cxq+Fax2ATDg86/MChI0gbOjjnYnFY7 sG+ZkyT5bqEFG+ZvODTGMOlVWG9RNZTQ825Tteg98j9qUKWZ/NSxqZITyxYXWtkFSq92 KvqCYNfuXHSPKLJC3AK66KmtUWddfxFKyek6pNHtBfMVHLea1ny8TMlMluPACr4bTImo 0CqYyPDZ9txK0/wog3FM6AQ3amfZVUHSv5TQBDSX7HgA34MHUem2szVIcAL3EZRenZIk fs6NvevQqfnjA8GO902S6kAQJK7XJtzAJ5QD4ZBCt9M0rl70np4c5iJREV7RxIthKJ1z o1RA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:sender:from:to:cc:subject:date:message-id :reply-to; bh=1KCst+gPlrFF3sDD+BiLQ+JX5Q4pVaPlbqPm305yvBE=; b=ttySsbEthOEiKm19DGTP9gSHxzV2HKCbxrg3S51oReAaFKgLGsqoc1vqYGu4ETqzOg QgtEoYMU7rjKG9BCv9yW2wG3WW5pRwHPSAJUyiFe7c/I0ys3CBl6aI09Id0Vg9HfsmH9 Nbd8RGOqSSiZ8SC+xPElQXV3SjGf/S2RusW6NvOuaCJieDvkO3dier/TJDLi3VUG8Qha wGtV6T0OZxiYnUvFAhwSJrmRmmOYmESDp2isRl7Js4HdhV/4SkeLnkGwtKwE9dKguGXe 9lYPGulaibHwUeZUxSaQcpFKuzNUJdflYp7zeP5w6y3 Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AFqh2kq30eoeCge6od8qLJgWZfU1ebkw6zTG8AcXR8uWnVWEPrsJxVgr MnMoKYt3F5PYlOZXJIf4vSI= X-Google-Smtp-Source: AMrXdXvcPTwjoDPwwvIEq6xpPZxM86b57R3+igu80nrdV9NsqYc2Ir4i3YF9Erb4891J8/pF5twD0Q== X-Received: by 2002:a05:6638:438f:b0:3a4:e4ea:3320 with SMTP id bo15-20020a056638438f00b003a4e4ea3320mr3081747jab.232.1674566400607; Tue, 24 Jan 2023 05:20:00 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a5e:8e09:0:b0:6a8:19bf:4f91 with SMTP id a9-20020a5e8e09000000b006a819bf4f91ls3122905ion.10.-pod-prod-gmail; Tue, 24 Jan 2023 05:19:57 -0800 (PST) X-Received: by 2002:a5e:c804:0:b0:707:a501:e788 with SMTP id y4-20020a5ec804000000b00707a501e788mr10546955iol.7.1674566397857; Tue, 24 Jan 2023 05:19:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674566397; cv=none; d=google.com; s=arc-20160816; b=DF8hUnxGxzJm5/8XdEXGpEnUtx37dFbO1x75h9MdiwOMWrYCGfQLAQdK7rve3U6anG kOasOv3lKGhdPdkb2E6rn33huq/ix4wRThm8XGcR/0TaCT6OplY70ggvXT0Wl90ptmrP bjrnfljLf+OYWBC6W2ygjDMw0gvBQT+0iL6jlzYma/Q2gk3U+o6vBAOwgfbfLapB3rxt emofxmuLxoNeDASatjinui+hZCJ+wNxgop6ufarHYmFrVgBfuyZbeHm18Kscg0mxpuia Prs8eAVh/CaBbepvH/IPAyIHjB8J58+2IppvJ0rqfn95BELIyGwG+UBu5u7RTiTZgR7g wsdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:dkim-signature; bh=wlCS6mW/M8JOFBeCXm1oSGulo6kuU7a0IYbEbcsjOC4=; b=vcb/emkpHzAP3berpbMLGDsOUX7DE2t7IfKEH5jX+rexoGa7iyyNv9Xe7eg19L3i3a VFqosnYfIhxR8qXB8HBJuPDNDbF/C/2Mb24OyKug1Z8KHACsX6+5sIuqId7Jp/SDXvub UbDjGBEqXVPeEZRz+20dqLoBfd4Xn+7Evec3O4DxfBBLu14U3SSe8/ROwFd9LSqw3nUJ CuD7vgnuAmIbl3a5iIvNIPITWDWUbdm4lfKKcUycHRlIkBl/eZ6FFxltJRRgaz0R6TNW E8X9++/i7oc2j5RH8NTHlyDT0/viUoNSvx1NCJsKRZd+M+mn9wwmCr4NSKitFBEqgIIv Zqtw== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=jCxwhHbU; spf=pass (google.com: domain of claudio.divita-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::1136 as permitted sender) smtp.mailfrom=claudio.divita-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Original-Received: from mail-yw1-x1136.google.com (mail-yw1-x1136.google.com. [2607:f8b0:4864:20::1136]) by gmr-mx.google.com with ESMTPS id i194-20020a6b3bcb000000b006e2d7e57bbfsi116612ioa.1.2023.01.24.05.19.57 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 24 Jan 2023 05:19:57 -0800 (PST) Received-SPF: pass (google.com: domain of claudio.divita-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::1136 as permitted sender) client-ip=2607:f8b0:4864:20::1136; Original-Received: by mail-yw1-x1136.google.com with SMTP id 00721157ae682-4ff07dae50dso172125517b3.2 for ; Tue, 24 Jan 2023 05:19:57 -0800 (PST) X-Received: by 2002:a05:690c:78f:b0:4f7:faf6:6c3 with SMTP id bw15-20020a05690c078f00b004f7faf606c3mr2704957ywb.406.1674566397264; Tue, 24 Jan 2023 05:19:57 -0800 (PST) In-Reply-To: <1a7053ea-0a6d-94af-2a67-d209420b9039-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> X-Original-Sender: claudio.divita-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=jCxwhHbU; spf=pass (google.com: domain of claudio.divita-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::1136 as permitted sender) smtp.mailfrom=claudio.divita-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.io gmane.text.pandoc:32078 Archived-At: --0000000000004309b505f3025fdc Content-Type: text/plain; charset="UTF-8" I did it, but I have the impression that within a Lua filter the pandoc.read method ignore it Il Mar 24 Gen 2023, 14:04 Duncan Murdoch ha scritto: > If you run "pandoc --list-extensions", you'll see that tex_math_dollars > defaults to being included. You need to explicitly exclude it, as > Albert did. > > Duncan Murdoch > > On 24/01/2023 7:09 a.m., Claudio Di Vita wrote: > > I have a more complicated scenario, with multiple dollar signs and file > > inclusion (using pandoc.read) that ends up in Math. > > > > When reading the files I pass the PANDOC_READER_OPTIONS, with does not > > include tex_math_dollars within the extensions...but the Math is there > > anyway > > > > Il Mar 24 Gen 2023, 11:44 Albert Krewinkel > > ha scritto: > > > > > > Claudio Di Vita > > writes: > > > > > That's true: not math, but LaTeX math. > > > > > > Can the parsing of LaTeX math be disabled ? Even if I disable > > > the tex_math_dollars, it seems that pandoc tries to parse LaTeX > math > > > (I see it from the native output). > > > > Here's what I see: > > > > % echo '$hello$' | pandoc -f markdown -t native > > [ Para [ Math InlineMath "hello" ] ] > > > > % echo '$hello$' | pandoc -f markdown-tex_math_dollars -t native > > [ Para [ Str "$hello$" ] ] > > > > Seems to work? > > > > -- > > Albert Krewinkel > > GPG: 8eed e3e2 e8c5 6f18 81fe e836 388d c0b2 1f63 1124 > > > > -- > > You received this message because you are subscribed to a topic in > > the Google Groups "pandoc-discuss" group. > > To unsubscribe from this topic, visit > > > https://groups.google.com/d/topic/pandoc-discuss/V5fTt9aN_AI/unsubscribe < > https://groups.google.com/d/topic/pandoc-discuss/V5fTt9aN_AI/unsubscribe>. > > To unsubscribe from this group and all its topics, send an email to > > pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > > . > > To view this discussion on the web visit > > > https://groups.google.com/d/msgid/pandoc-discuss/877cxcky9v.fsf%40zeitkraut.de > < > https://groups.google.com/d/msgid/pandoc-discuss/877cxcky9v.fsf%40zeitkraut.de > >. > > > > -- > > You received this message because you are subscribed to the Google > > Groups "pandoc-discuss" group. > > To unsubscribe from this group and stop receiving emails from it, send > > an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > > . > > To view this discussion on the web visit > > > https://groups.google.com/d/msgid/pandoc-discuss/CAMBF16tbV8W-h_AkmLGyKzbcufgapHL77qP1%3D93dWiddrQXkcg%40mail.gmail.com > < > https://groups.google.com/d/msgid/pandoc-discuss/CAMBF16tbV8W-h_AkmLGyKzbcufgapHL77qP1%3D93dWiddrQXkcg%40mail.gmail.com?utm_medium=email&utm_source=footer > >. > > -- You received this message because you are subscribed to the Google Groups "pandoc-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/CAMBF16vEmvbXS3%2B0tXCB51SmPe%3D0tsQ%2BV%2BZoQ0DvqhpRwTp4uw%40mail.gmail.com. --0000000000004309b505f3025fdc Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I did it, but I have the impression that within a Lua fil= ter the pandoc.read method ignore it

If you run &quo= t;pandoc --list-extensions", you'll see that tex_math_dollars
defaults to being included.=C2=A0 You need to explicitly exclude it, as Albert did.

Duncan Murdoch

On 24/01/2023 7:09 a.m., Claudio Di Vita wrote:
> I have a more complicated scenario, with multiple dollar signs and fil= e
> inclusion (using pandoc.read) that ends up in Math.
>
> When reading the files I pass the PANDOC_READER_OPTIONS, with does not=
> include tex_math_dollars within the extensions...but the Math is there=
> anyway
>
> Il Mar 24 Gen 2023, 11:44 Albert Krewinkel <
albert+pandoc= @zeitkraut.de
> <mailto:albert%2Bpandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org>> ha scr= itto:
>
>
>=C2=A0 =C2=A0 =C2=A0Claudio Di Vita <claudio.divita-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org<= /a>
>=C2=A0 =C2=A0 =C2=A0<mailto:
claudio.divita-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>&g= t; writes:
>
>=C2=A0 =C2=A0 =C2=A0 > That's true: not math, but LaTeX math. >=C2=A0 =C2=A0 =C2=A0 >
>=C2=A0 =C2=A0 =C2=A0 > Can the parsing of LaTeX math be disabled ? E= ven if I disable
>=C2=A0 =C2=A0 =C2=A0 > the=C2=A0tex_math_dollars, it seems that pand= oc tries to parse LaTeX math
>=C2=A0 =C2=A0 =C2=A0 > (I see it from the native output).
>
>=C2=A0 =C2=A0 =C2=A0Here's what I see:
>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 % echo '$hello$' | pandoc -f= markdown -t native
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 [ Para [ Math InlineMath "hello= " ] ]
>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 % echo '$hello$' | pandoc -f= markdown-tex_math_dollars -t native
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 [ Para [ Str "$hello$" ] ]=
>
>=C2=A0 =C2=A0 =C2=A0Seems to work?
>
>=C2=A0 =C2=A0 =C2=A0--
>=C2=A0 =C2=A0 =C2=A0Albert Krewinkel
>=C2=A0 =C2=A0 =C2=A0GPG: 8eed e3e2 e8c5 6f18 81fe=C2=A0 e836 388d c0b2 = 1f63 1124
>
>=C2=A0 =C2=A0 =C2=A0--
>=C2=A0 =C2=A0 =C2=A0You received this message because you are subscribe= d to a topic in
>=C2=A0 =C2=A0 =C2=A0the Google Groups "pandoc-discuss" group.=
>=C2=A0 =C2=A0 =C2=A0To unsubscribe from this topic, visit
>=C2=A0 =C2=A0 =C2=A0https://groups.google.com/d/topic/pandoc-discuss/V5fTt9aN_AI/unsubsc= ribe <http= s://groups.google.com/d/topic/pandoc-discuss/V5fTt9aN_AI/unsubscribe>= ;.
>=C2=A0 =C2=A0 =C2=A0To unsubscribe from this group and all its topics, = send an email to
>=C2=A0 =C2=A0 =C2=A0pandoc-discuss+unsubscri= be-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
>=C2=A0 =C2=A0 =C2=A0<mailto:pandoc-disc= uss%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>.
>=C2=A0 =C2=A0 =C2=A0To view this discussion on the web visit
>=C2=A0 =C2=A0 =C2=A0https://groups.google.com/d/msgid/pandoc-discuss/877cxcky9v.fs= f%40zeitkraut.de <https://groups.google.com/d/msgid/pandoc-discuss/877cxcky9v.f= sf%40zeitkraut.de>.
>
> --
> You received this message because you are subscribed to the Google > Groups "pandoc-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send=
> an email to pandoc-discuss+unsubscribe@goog= legroups.com
> <mailto:pandoc-discuss+unsubscribe@googl= egroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/pandoc= -discuss/CAMBF16tbV8W-h_AkmLGyKzbcufgapHL77qP1%3D93dWiddrQXkcg%40mail.gmail= .com <https://groups.google.com/d/msgid/pandoc-discuss/CAMBF16tbV8W-h= _AkmLGyKzbcufgapHL77qP1%3D93dWiddrQXkcg%40mail.gmail.com?utm_medium=3Demail= &utm_source=3Dfooter>.

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https:/= /groups.google.com/d/msgid/pandoc-discuss/CAMBF16vEmvbXS3%2B0tXCB51SmPe%3D0= tsQ%2BV%2BZoQ0DvqhpRwTp4uw%40mail.gmail.com.
--0000000000004309b505f3025fdc--