From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/32076 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 13:09:33 +0100 Message-ID: References: <4AB3C54A-0054-4E50-9DD7-FBA2D4DA281A@gmail.com> <877cxcky9v.fsf@zeitkraut.de> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000357bbf05f30164f0" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7709"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDOYFIOXRYHRBCUVX6PAMGQE5IR5FYA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue Jan 24 13:09:51 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-il1-f186.google.com ([209.85.166.186]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1pKI7a-0001rr-DM for gtp-pandoc-discuss@m.gmane-mx.org; Tue, 24 Jan 2023 13:09:50 +0100 Original-Received: by mail-il1-f186.google.com with SMTP id h24-20020a056e021d9800b0030be8a5dd68sf10260711ila.13 for ; Tue, 24 Jan 2023 04:09:50 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1674562189; cv=pass; d=google.com; s=arc-20160816; b=e7snZ3gE/vwavT0VMVe4x3sv1upF99eCSQB7TLTqzNgX4qS+Ba5jJw1S83Z941vIXs jJ6eFCHDXfwkpyUhYej12X9q1dremZfsv/afYByUb+pHUZYwKOn41BsXUb5eDuBQHUJR wHZWGEIDRepmRl9fJdzJV9jZQIhqSTYaAdPGHrsG3ipCwXPyYEbB25I2H6E5WcgYDfBL TBKiMMeNCQAKl+3BJlVoYqM2/r8w6lejPIvgooGjbMmXGGOigiiv9URrLTXQIjpXTP46 rB1o+VJ6PWseDr+hE1lPcRPeM7aGG04VXtCa73UArwep97nosiS1Y5v0Vj8mxY4esbA0 C6AA== 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:to:subject:message-id:date :from:in-reply-to:references:mime-version:sender:dkim-signature :dkim-signature; bh=Hbl6ufaiVEKu745d3j0NzGIAT/WvW8H2Z6xroip6olY=; b=tbyMK2GZ+5RSLedeEfcdyZgVI1GPPTLtuCOCga/C+gKwBS9SlrHelQPyoqq4TWcWxy 7NoZwqV+vUmRYnBmnmC1ulzk6e70bGfj63xlD79I6C/XLRGTfvDqHZR0pZe8pT55J8n0 GBW3TCeNQ6oQz0NzMNoRH3AyXD/rUL5ooUIXJcYqg7lirrv+ZsrV5TPDjq3xf8545wXH mtrbyzHXspES2qq4RNzxJD9e/HVBufF0fA9RPmCkj2QGIAqmhXzWFr1qWi+JTsPhhred 8jlud1rH8dfznLbyJaqsOkhju3o2HWJaWdmTGa1nstLYx9ynVzGOZcmjU6Gc22i+Y2mD GLEA== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="I/F4GGnF"; spf=pass (google.com: domain of claudio.divita-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::b32 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:to:subject :message-id:date:from:in-reply-to:references:mime-version:sender :from:to:cc:subject:date:message-id:reply-to; bh=Hbl6ufaiVEKu745d3j0NzGIAT/WvW8H2Z6xroip6olY=; b=JHc8Wa/HuAZi/oDhZXeCyL0GKfjUA5Hudk5slyvXxPf3+SCzjx8/agRwctkUp9HX2A hNaI8hgyvXwmrtg3fnVRh7keZN7yJ8pdlsd15NKnZY3mouApWzH+zAocuSw9XvshrihW +r7Rb0l/jb2DSlwdEv2YYHyaHJcpcy7e0q3BopsrXTYPKk91mGQBlsSWSHCGcETO9r6O nbmUy1qQMQ7lNBcXv0gbptdW7Ve4gCVomxTrzTi+Z+CDm6YBZZgSISDNaNwGxDL83n97 WHalEDojVa7hUhGNI0fB/DtdQ/kn6L7Ad1Cj+oKoIHPWLK9CKQ0sGolZ8roxrCL7F1ZK xuxw== 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:to:subject :message-id:date:from:in-reply-to:references:mime-version:from:to:cc :subject:date:message-id:reply-to; bh=Hbl6ufaiVEKu745d3j0NzGIAT/WvW8H2Z6xroip6olY=; b=krppRjessNYDmLxjW1k4eDLtwzEvmqSYd+lrZ83cnq8Bz4ZQ9J23zZP0kEIaORu1Io qQX4e7g0v30CF7KgXlUdruPCzy9FpSRMPLOocdqY+9WHCQKH/bIl8BfXhh6TZL6/q1ka +SbxQSPJK6QpRNr//pUfztBerbUrvLuZhgixXVTLa0E/wUwO6UEqdRj273lXWLZWaeQM K159PXJIh4jboHYTLI3bgKA6mPjS/FbA0DK6SiSIG564LKncKAMIKnF8adN3nWm978zo p5JPtzZNDQr7cAejy5K8W3VCnBiOknGExVDXjBUuH6WAY7NYRHn1VvDeELfmK56ZOH1e BVBg== 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: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=Hbl6ufaiVEKu745d3j0NzGIAT/WvW8H2Z6xroip6olY=; b=f+bQpDU9gC1ZeM85/iNkqS9i1BfXZXJQIpAYgsK6hIPQyXAflZ7QHL+FPT5QrEXoKT vhhHsAFjmI3s8Bgw2wlyNJ3rOOe+HRGZl9xWijLSH9fQaNl87GORbQKagbszqIadtQ1i R9Ldr1Su1GMMRoc6QTKb7lT7pOryRCbwxC5IpYdveAQulH8nqSLLO0QS+91CevkQq7WW gmQf8EvrCTnOmx1J1N8+Vwbuk6SLveh5QisCYYsryQJB/rVnZIcom0r/ImmM5SOwsF2K UBnRslkafBkUCrSe6cw+aNBagYx+aVO+PQYiNGLIQBopcV Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AFqh2kp2A13Tx6mMDQYh16vLOygrl6A2cKrFEL1lvEob6NKV8SjV6UxE n9TUw9mNUWx1DmlVEonb33s= X-Google-Smtp-Source: AMrXdXv81IauY/I4nROuuJnNe58qs4mLHCki66eQvfqNAUx9trq5gWG+Y8ZfnTELYF/FZW1TVj+wkw== X-Received: by 2002:a02:cf9e:0:b0:3a5:73ac:b6c1 with SMTP id w30-20020a02cf9e000000b003a573acb6c1mr2821890jar.40.1674562189182; Tue, 24 Jan 2023 04:09:49 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a6b:3fc1:0:b0:6bc:c32c:3809 with SMTP id m184-20020a6b3fc1000000b006bcc32c3809ls3092179ioa.8.-pod-prod-gmail; Tue, 24 Jan 2023 04:09:46 -0800 (PST) X-Received: by 2002:a05:6602:1310:b0:6bc:d712:c30f with SMTP id h16-20020a056602131000b006bcd712c30fmr21298568iov.6.1674562186063; Tue, 24 Jan 2023 04:09:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674562186; cv=none; d=google.com; s=arc-20160816; b=DDTTjW7n65DAWqf+3ATL1dNFx26nf3UtottCGYR/fOTQ+JCEqugEGTRr3QZ9oiyV0l VXKqUgV4p2/o7Nr3KOoo4mvDnhU4uR987vyXeVVct6tkZcCRhb+4rvdL2xWm16SYErjl hrCuYFUufDum9iQFHiJjqu7ZmkeWEinrnLbcpmi6S065bxVSfr2cEajnJCLksEMbaCxi aPU2T2jo45hIMNl8LdR4LUIZ0ZHIrSGrtb3HmDNQqcqU05RhfSz8pEZ39y16+dzRuFnI vQoJAMxnFoXxvGK0tL4hkce6Rk3Bajy+EGwSxs/SMNuYj5LvuKPysmuEU6MGDuX35JVV emgA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=YZ63ww8xtYYrjHwVSG4nzw/W+ItVdbPDxPYOAwmhh+s=; b=ZwgazNwZGsRO3lT8GhZeCEIZGGENgs4O8nq6kIBs23FqSBLvCkrd7mGMkpNDjLnQfB 7QOCqRrZzXEQfBZ/mKv416NJqE9doZWKI67GgQ9SIOCY2S24lIsDcPRT+sGgQueiK0rj EVJcj4ehBk7CYKYDGMKmCjygV30nAG1oMSkBqzFw3sOV4+Hjsx/33CJ9X0DC/ObjQy7/ WkGHi5XwZucuDmCs86O1CGli/ypvR5DciGjvBaTLIa2CN89LTIdZNyl34bciVqkWKFZJ AHfa7HjkIrGKeV80rXJsYXaG7DpdTTsfQj015bOLjNntLkZIBz0UBMsozx62arwZU7ZM srsQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="I/F4GGnF"; spf=pass (google.com: domain of claudio.divita-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::b32 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-yb1-xb32.google.com (mail-yb1-xb32.google.com. [2607:f8b0:4864:20::b32]) by gmr-mx.google.com with ESMTPS id w11-20020a056638024b00b003a84517979dsi106259jaq.3.2023.01.24.04.09.46 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 24 Jan 2023 04:09:46 -0800 (PST) Received-SPF: pass (google.com: domain of claudio.divita-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::b32 as permitted sender) client-ip=2607:f8b0:4864:20::b32; Original-Received: by mail-yb1-xb32.google.com with SMTP id h5so1620385ybj.8 for ; Tue, 24 Jan 2023 04:09:46 -0800 (PST) X-Received: by 2002:a25:3215:0:b0:80b:768f:7a00 with SMTP id y21-20020a253215000000b0080b768f7a00mr118171yby.390.1674562185295; Tue, 24 Jan 2023 04:09:45 -0800 (PST) In-Reply-To: <877cxcky9v.fsf-9EawChwDxG8hFhg+JK9F0w@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="I/F4GGnF"; spf=pass (google.com: domain of claudio.divita-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::b32 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:32076 Archived-At: --000000000000357bbf05f30164f0 Content-Type: text/plain; charset="UTF-8" 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. > To unsubscribe from this group and all its topics, 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/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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@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. --000000000000357bbf05f30164f0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I have a more complicated scenario, with multiple do= llar signs and file inclusion (using pandoc.read) that ends up in Math.

When reading the files I pa= ss 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-9EawChwDxG8hFhg+JK9F0w@public.gmane.org> ha scritto:

Claudio Di Vita <claudio.divita-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:

> That's true: not math, but LaTeX math.
>
> Can the parsing of LaTeX math be disabled ? Even if I disable
> the=C2=A0tex_math_dollars, it seems that pandoc tries to parse LaTeX m= ath
> (I see it from the native output).

Here's what I see:

=C2=A0 =C2=A0 % echo '$hello$' | pandoc -f markdown -t native
=C2=A0 =C2=A0 [ Para [ Math InlineMath "hello" ] ]

=C2=A0 =C2=A0 % echo '$hello$' | pandoc -f markdown-tex_math_dollar= s -t native
=C2=A0 =C2=A0 [ Para [ Str "$hello$" ] ]

Seems to work?

--
Albert Krewinkel
GPG: 8eed e3e2 e8c5 6f18 81fe=C2=A0 e836 388d c0b2 1f63 1124

--
You received this message because you are subscribed to a topic in the Goog= le Groups "pandoc-discuss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/pandoc-discuss/V5fTt= 9aN_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-disc= uss/877cxcky9v.fsf%40zeitkraut.de.

--
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://group= s.google.com/d/msgid/pandoc-discuss/CAMBF16tbV8W-h_AkmLGyKzbcufgapHL77qP1%3= D93dWiddrQXkcg%40mail.gmail.com.
--000000000000357bbf05f30164f0--