From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/32077 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Duncan Murdoch Newsgroups: gmane.text.pandoc Subject: Re: Inaccurate parsing with tex_math_dollars Date: Tue, 24 Jan 2023 08:04:09 -0500 Message-ID: <1a7053ea-0a6d-94af-2a67-d209420b9039@gmail.com> 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: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4686"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org, Claudio Di Vita Original-X-From: pandoc-discuss+bncBCZ4LFFHXQDRBTNOX6PAMGQEHJE55OY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue Jan 24 14:04:16 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oi1-f189.google.com ([209.85.167.189]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1pKIyG-0000xE-Ap for gtp-pandoc-discuss@m.gmane-mx.org; Tue, 24 Jan 2023 14:04:16 +0100 Original-Received: by mail-oi1-f189.google.com with SMTP id x25-20020a05680801d900b0036eb6961c2esf3662739oic.8 for ; Tue, 24 Jan 2023 05:04:16 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1674565455; cv=pass; d=google.com; s=arc-20160816; b=A91oiw3KVcBtvUHaJcZFAggr88kgTyFjO2rvNi7z12D1xwcbbIvCmz5Yv8kX6BnTYT faK0ePWLG7kWKC+odwyMe5BuZh0hubuJREWYRBuTTIlfK7ClsfI+6ptiJjdfBejMSItf iQBrpRnDqdA+I3qvRAEMPUDaM5HLzIafaOjlrFAxCxVAtLYwtMrzL/Cr4DSNXaMDkJlX fItHTq2CI5/rq/CDBBeH2ZjegQ5EN9015VeGZ5q2lNaTw/sK31zRpDtrEjZABRUF9eq6 AtdF9rzcSSd1q0WANwFqGeo6C1koSz5B6t43dW/1cyBbKHS7/oJ9MRgPoRGLWv2VaWSo lsLg== 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:content-transfer-encoding :in-reply-to:from:references:to:content-language:subject:user-agent :mime-version:date:message-id:sender:dkim-signature:dkim-signature; bh=Fn9vX41J5XKxBakuXYyqI0DmvNjC/5Gc7soxaTY9eLs=; b=iy4R2/XJW9bAIgifRPkMsznxUK2fKoOjNmpl7UwOGcM087BwiUefKERG6Edmwo472x 9mIgnHJ8auElm0F5SpTqy9Zopv0AIAfG+t3BOrOZJU6CFYWQixO+jvR/k/LY2YbR6eye juvBL0hLyI1+p9Wk91tdiPoszaHjiadALRjLjvK0Khi7BcO3v3UipiUnADqAb1BKrmH7 nBeYKzG7eM78kbJGyp2ML9uJwBM+aMBe6Rh987OnKsJf3LK6E0A4T/gXJwHZaF/N6ptB 7vbHL24QyIGo4pLyFwbPCT3JYjZ9Qt8YxcQ8eUZeCnQG2Ms+vvzzdrxPZQWJ3f8ckyJt ns+w== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=OE+k32TB; spf=pass (google.com: domain of murdoch.duncan-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::1135 as permitted sender) smtp.mailfrom=murdoch.duncan-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 :content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :sender:from:to:cc:subject:date:message-id:reply-to; bh=Fn9vX41J5XKxBakuXYyqI0DmvNjC/5Gc7soxaTY9eLs=; b=C48qcz47FG6rfvdcSmS5rhrmBoXufuDsj0RR4bOvpL3QVYvh8wW2agJ7gsEtBic+kl 0xiLsx1+Pe9ID0NeslzDDSbUUTCuWef6OGgZN3ukyL1slRx3OfyZ0xNXoMMBuYY2+cgQ nE0IaFHhOQZTBfvkah6p8HmLFhzwyj1QaV78lgf7NlHlnRJNQSHBn3hLiuRaLQH8AsWi WIhk/+UjC7LaJirFx94aFRh9Iw95EtAP+ZNu6AgyRZkF5XXljEKAqpF3fUx9dIsyOX3m /KpeQ0KtXh1EunA3y/UAEYDUHpGoikmmlP5P5 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 :content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=Fn9vX41J5XKxBakuXYyqI0DmvNjC/5Gc7soxaTY9eLs=; b=kJXzDRYdxBPKlRh9XoudirCtLcSK/O/lI63JIIfSlT8y8N3H8q3Ebw1Vq4fEIQxfCl FabX7Pde0mzfSIkftkTUzpl1UWvWrVeu6LoREVrV0O6j4reoC9udvI06LYZ6RQUUVL3B 50/BRKFp8+0x6NG4cFxQUKl2tNQpiRBszNI7L7pI1GF/4liARxqtI/7NnsZD3gXpANuy ov77KB4EtvjxHv6OkU/TQLYAlLom3ZlVRlfJc25EqAcv/r5v/NRYQ13FSmY0h5MVYtRX rtsjm9W5BW274PJ5zDFSx4B5OCj/Ehw6kM/XAe1XdN63Y+psMKD 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 :content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:sender:from:to:cc:subject:date:message-id :reply-to; bh=Fn9vX41J5XKxBakuXYyqI0DmvNjC/5Gc7soxaTY9eLs=; b=lN8BdvQD1GQQlp8IQ1mSQ4ukMSu/bMKNuZkn4Modw8EIa5z1N2Ur5pSq8n0qThmaXZ 9ejn5wGXQSwOdhA4uR85bXtSTQJN5h6qCrSzgVNU3pM9f3IECPATPscYtRgD5fD0Twyu uBokr53Iipw65ARX72z0r6hMBmqyD+x3ipTu8rXB/0hQQ0mVP5x+Z/UOmoqMFwLsgzxn t56Cd2ADRty7Uo4SSkkNGEcpRkfaa4LwIlGvvQBdaae4OrMZC+IaVER9cj/M Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AFqh2kotD5eFU0xFbandojq0121ay2tMJ8QRBRNPVzXUMP0ZT+ZwbDf4 fIGLi2wZ7hcrCdgG8x2R1kE= X-Google-Smtp-Source: AMrXdXvMcJXBNW5QKC8YDwgYpcaPxoAIAapWX4xs59POhNXNaF+CnCl58qAfVSlWSNloUfrWzR61FA== X-Received: by 2002:a05:6830:1f36:b0:686:3ccb:f05b with SMTP id e22-20020a0568301f3600b006863ccbf05bmr1998449oth.24.1674565455176; Tue, 24 Jan 2023 05:04:15 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6830:13d3:b0:66c:e766:8d07 with SMTP id e19-20020a05683013d300b0066ce7668d07ls2955013otq.10.-pod-prod-gmail; Tue, 24 Jan 2023 05:04:12 -0800 (PST) X-Received: by 2002:a9d:74c9:0:b0:684:ca02:2500 with SMTP id a9-20020a9d74c9000000b00684ca022500mr11956815otl.25.1674565452476; Tue, 24 Jan 2023 05:04:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674565452; cv=none; d=google.com; s=arc-20160816; b=divgNfPRpdzRGvvEAqi/KxobirKByjtAr+5eu3Hlf8PuN7t2SDNIP5VYbfUhvtUKX0 IVQXnsoSOdqqh5PhkXyTt/4Y21dUfInGEpQJlRm42Z7qj05FXPLLl1KMdSFd2m/QNnlF nB4L4fzokDH6DIVoQ0KO3g8kLatFrLHh7MQO3AivMZb8E0jUqZsy3QOxejj8bzSxmhw9 eSTCuuwZ0zR/Tc9xr9VV5yqVp2cGvfw4NfsZr/ioLEFPJlvpD2b5/gqAO3TITQ1lTW2B Y2EHwJsFK+wipWw/Ca1bo4hHsjpNeUaQ0CZiwEYzzNHyTiDJKtsEFYp8aqo+52T3MNPR IdcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :dkim-signature; bh=z1HJ+Gm/4qTmcpisafWpCBJuOBu3UwF3g3MR+8jnDVY=; b=ZJy0CIBuyj/DfU36QR9R4MpwFdstLKqdeQ/dW9/iRa8RX73A6l9ihuRysfZhm8W/JS jL838TXJJZ6yU1PmR9Xxxr5OT/78Wj1gwfF7jJiUqkQmYXVu8phkzSBSUv2yMPBp2p6R 4cefXEBO3C3D7o1Osg+YxzxBNLm7RTGaqw8ttfaL9b0gkXkq9+aYhY85YZojMSpfaerm gsmXLf4NCj0wg/jRWg/QMWgPaq4OzSaA/QlhNtuFS4lO8NewWME5rbOa6UHQiHgvXqHA WEkRtW1GKKx7qqnwrsJlpcPkH6Z4WCxWMfx3BGOP5KUIKB4cOdOoT0XvZeJlHlXjHeSC RSMw== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=OE+k32TB; spf=pass (google.com: domain of murdoch.duncan-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::1135 as permitted sender) smtp.mailfrom=murdoch.duncan-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Original-Received: from mail-yw1-x1135.google.com (mail-yw1-x1135.google.com. [2607:f8b0:4864:20::1135]) by gmr-mx.google.com with ESMTPS id v19-20020a05620a441300b0070650f71b4asi197503qkp.1.2023.01.24.05.04.12 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 24 Jan 2023 05:04:12 -0800 (PST) Received-SPF: pass (google.com: domain of murdoch.duncan-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::1135 as permitted sender) client-ip=2607:f8b0:4864:20::1135; Original-Received: by mail-yw1-x1135.google.com with SMTP id 00721157ae682-501c3a414acso152052537b3.7 for ; Tue, 24 Jan 2023 05:04:12 -0800 (PST) X-Received: by 2002:a81:5503:0:b0:502:3893:d165 with SMTP id j3-20020a815503000000b005023893d165mr9221400ywb.19.1674565451731; Tue, 24 Jan 2023 05:04:11 -0800 (PST) Original-Received: from [192.168.0.100] (135-23-172-182.cpe.pppoe.ca. [135.23.172.182]) by smtp.gmail.com with ESMTPSA id h15-20020a05620a13ef00b006cec8001bf4sm1407864qkl.26.2023.01.24.05.04.10 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 24 Jan 2023 05:04:11 -0800 (PST) Content-Language: en-US In-Reply-To: X-Original-Sender: murdoch.duncan-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=OE+k32TB; spf=pass (google.com: domain of murdoch.duncan-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::1135 as permitted sender) smtp.mailfrom=murdoch.duncan-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:32077 Archived-At: If you run "pandoc --list-extensions", you'll see that tex_math_dollars=20 defaults to being included. You need to explicitly exclude it, as=20 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= =20 > inclusion (using pandoc.read) that ends up in Math. >=20 > When reading the files I pass the PANDOC_READER_OPTIONS, with does not=20 > include tex_math_dollars within the extensions...but the Math is there=20 > anyway >=20 > Il Mar 24 Gen 2023, 11:44 Albert Krewinkel > ha scritto: >=20 >=20 > Claudio Di Vita > writes: >=20 > > 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 LaT= eX math > > (I see it from the native output). >=20 > Here's what I see: >=20 > =C2=A0 =C2=A0 % echo '$hello$' | pandoc -f markdown -t native > =C2=A0 =C2=A0 [ Para [ Math InlineMath "hello" ] ] >=20 > =C2=A0 =C2=A0 % echo '$hello$' | pandoc -f markdown-tex_math_dollars= -t native > =C2=A0 =C2=A0 [ Para [ Str "$hello$" ] ] >=20 > Seems to work? >=20 > --=20 > Albert Krewinkel > GPG: 8eed e3e2 e8c5 6f18 81fe=C2=A0 e836 388d c0b2 1f63 1124 >=20 > --=20 > 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/unsubscr= ibe . > 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%40zei= tkraut.de . >=20 > --=20 > You received this message because you are subscribed to the Google=20 > Groups "pandoc-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send=20 > an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org=20 > . > To view this discussion on the web visit=20 > https://groups.google.com/d/msgid/pandoc-discuss/CAMBF16tbV8W-h_AkmLGyKzb= cufgapHL77qP1%3D93dWiddrQXkcg%40mail.gmail.com . --=20 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 e= mail 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/1a7053ea-0a6d-94af-2a67-d209420b9039%40gmail.com.