From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/32852 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: Wikipedia refuse wikimedia file generated from docx with expression containing \text{\ } Date: Tue, 20 Jun 2023 18:10:57 -0700 Message-ID: <4ED29BFD-45D3-4898-A4AB-7BA5639FB599@gmail.com> References: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.600.7\)) Content-Type: multipart/alternative; boundary="Apple-Mail=_D97D3DAA-F0D5-4324-A774-E4D315FCB8E5" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9748"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDW7ZIEHTIIBBL44ZGSAMGQEZS23A5I-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Wed Jun 21 03:11:16 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-pl1-f188.google.com ([209.85.214.188]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1qBmNP-0002ND-Qk for gtp-pandoc-discuss@m.gmane-mx.org; Wed, 21 Jun 2023 03:11:16 +0200 Original-Received: by mail-pl1-f188.google.com with SMTP id d9443c01a7336-1b501bc95c0sf26440345ad.0 for ; Tue, 20 Jun 2023 18:11:15 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1687309874; cv=pass; d=google.com; s=arc-20160816; b=nJcigOn/7t/j3fypBaB/lOqv69D+91XwJna/nAiqgIFHUwgDhZYvhUgfIj1o2Qi6vX RvoMGKR64UjAan+hHzDl+AOjf3KH6v0+JBQ7ev+CERj6unEA/C95QLUYJjTZLv4VZf77 Rw8LfckQjIJu8pZz6/dRSV0Y+84tSpnRi0tK65a27EsjUw6xBBk4XLEp8dJd2i4I0Q/K +KxrE6SsbbpT876H+NWMzPPnXIKTdycASconi8gUhkjodH55oOdzzdcKu3kSxLuFHcXy aiRVJwkLqnAlbUGiHcYnSMcEu7JBXcnbMGIdEz2oP9sHmGRazjiYv2V1IcA/60pJFIAz EHbQ== 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:message-id:in-reply-to:to :references:date:subject:mime-version:from:sender:dkim-signature :dkim-signature; bh=/6EnP6K2/s0xcHiq0znA1s/naEGsjMzwBqOXyHDmrVw=; b=hCTWVci58H01/skiwTowho9FAoQfNCzarZyWU3qxy3Hy4yj9GhHYVPtsAhLF75qbro SBzXLp2pe3XCZJAydkVbeJSrxQvWyZv0k2FJMpkwmm1b+mklRuiab2/UHfWD6XmK0Nec fLG3hKJWXg1DmPs/7wKVIK8DLoJRrKM52M9QnHvkvq+dXp3gsziSkCOe9R6/wT3pNgiZ U47jxHX0hSYn58zgPoiTme0IVF3UJV7p8Iz9+1OMxN0dPrJ6x5MgayfoUF9jrCuoOPry jO6/R7ECm1Zq9EMGBY9dHPHJVcQl7O46er0HSkEq+BgEr75m6P1zq5T2YaMlPB4PiA0e WnOw== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=PVZJmsiB; spf=pass (google.com: domain of fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::102d as permitted sender) smtp.mailfrom=fiddlosopher-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=20221208; t=1687309874; x=1689901874; 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:message-id :in-reply-to:to:references:date:subject:mime-version:from:sender :from:to:cc:subject:date:message-id:reply-to; bh=/6EnP6K2/s0xcHiq0znA1s/naEGsjMzwBqOXyHDmrVw=; b=FVH/+8eJQTyEdGYFHs2NgzJukyPj8HbNrwZnkEKqK+APXv42GHswTKJgHBeFXMDOzn vyVL9pjd3s+oDGBiNplqQr+kUak9KZtBLK5pEtE6W1r2cYyHJStiNvQ/Tiv7oij8k92V 7xVgzdGAY1LM2v+ENtu6GQPANM0Au3DY8sOFuDLNgXfIT8lWiFdFU4CYI1ANcN9Upx6s yaXifiEl4Ck0z4jFy9siNj6sGlD+ClPfTIOwpd+aSp/5AlwetW8f/JHESCO8ol1YDTuz a8G0UrRrpKkHNpQPqAsHU+gsJ+r/e/41EbLt6AbNOJ8kdzU6kmLt0Apln0ZjDWG9B5PA DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1687309874; x=1689901874; 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:message-id :in-reply-to:to:references:date:subject:mime-version:from:from:to:cc :subject:date:message-id:reply-to; bh=/6EnP6K2/s0xcHiq0znA1s/naEGsjMzwBqOXyHDmrVw=; b=IV8t0jnlxk9r6GPGpq3tv8BZEaM9PlGH/p0WvwXuupsDKJIF42AkC6Ru80d/QLSkQp l7qxzuzmFPk+8mh5TxPPFqPR1zM2QxvJWZTxvVte34kYCh1dtVlObIBBFI7PseAKHwyJ jT3paCspodxUEYh/8foUnw1B+ZAg8t98IcQ0TFS9guZxZi5MGiGk5D7+qDE51I68Yw7B J+BrffD/B6UGSR0KvIArl/xQ8i/wi3MohkwI9E4IbJqJAdHxuCzY0reJhJ0MbzIkdDwb 3hXliX7C6d3eH1O2NTeZoQDr9s6jsF1mR4tFAisl79xqr6y4nJaaEkmzpctdIUErRIlY kQwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687309874; x=1689901874; 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:message-id :in-reply-to:to:references:date:subject:mime-version:from :x-beenthere:x-gm-message-state:sender:from:to:cc:subject:date :message-id:reply-to; bh=/6EnP6K2/s0xcHiq0znA1s/naEGsjMzwBqOXyHDmrVw=; b=RoFEctbRGk8TlFKK1JYHLo0sd7oQFqHqo0BUBqqFJuZ4dhA5It6tGKw8HsLxrVWgaM eTf1WQGLeBcc5A7lxYK9HiCTWa/V1DqYprOQF19QLcQ+w5fSC9oFoCH7WEkCde+mViUT TumKoI6vLQdv4ZcTRz037AN40k2q38FOs6Q5Exl2d7qPG4WQ3qe7GPROHXiDZGr/rDom wwMIDClhglJ0fkBLNEZSL3nCcaKb8+S/bONDP+9tcgUF7wMFjRAc0wzIFF+yXzdZeRqg 9/M8Kh Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AC+VfDzgv3Esz4egyLnGv+Y+Gw2o/DbxLZW7II4kF/U04Ip7irb0dAwf +3NLbvREAsi0+jFQlONV9qM= X-Google-Smtp-Source: ACHHUZ51L0Mid+vReiF+dT6g5739CVch9wnaCjZdXXenF/5P77VfbmNQDIskkeFmumu5CvnrchNbWQ== X-Received: by 2002:a17:903:32c4:b0:1b3:f91d:15b3 with SMTP id i4-20020a17090332c400b001b3f91d15b3mr12356451plr.22.1687309874401; Tue, 20 Jun 2023 18:11:14 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a17:902:d08a:b0:1b3:dba7:a0da with SMTP id v10-20020a170902d08a00b001b3dba7a0dals3108260plv.1.-pod-prod-01-us; Tue, 20 Jun 2023 18:11:10 -0700 (PDT) X-Received: by 2002:a17:902:c407:b0:1b0:49e1:6dc4 with SMTP id k7-20020a170902c40700b001b049e16dc4mr14950462plk.56.1687309870614; Tue, 20 Jun 2023 18:11:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687309870; cv=none; d=google.com; s=arc-20160816; b=QaVjZ5y4GgYOc0AabdsBLB5NRw7vhy4FHCPfePfeTiYtuVSSxaMW5n8dUIrw3/bF4v 29z9wA1EmuERe71V6wlrEn0gXKvpoG+DuRvAuZ33JlIgqWJwyv72thv1nsTUHXC0Bnrx qpwLpSnQmKdakOWOBE7/68xCrL/Gsgq/fdJVap2sCWhacYJvXO1HJO1iCwM2cI2AUaMu D0bKQjugcEQ7KCXg1/8tquYAk8h0/7AHhZQeUiVZxt6mHvIVNLLPoSFLi524ad/TRG3f s3Nco7LNTY5LYsw9taKsfGYroCahBYFZu5tsoG88r9kSiXgqi129KJocFaoZMT7PYP0H LfDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:in-reply-to:to:references:date:subject:mime-version:from :dkim-signature; bh=bFtkD9nRUJid2GPB4VaGNkIGLITNJUzGi3r1DqdZz+0=; b=QCPSK26A4NiRwyNy9arkj4sCB/QNpHBH9gPv6nhBwWuRlTEQ7VavKxVzATmBYxYxzv DKuz7P/CgJkway03RZpU1JB5rCUBH2Xrqh4CoVqfflbo+Dx9wx9SzIldwHivs06Fqw3m yqZrk/AnLOGRVjtA6lL3UEMG8cg+B5+BeUY7Ln+pOSyCR1nn1xpGu/MWtNFWJDAXKjFG yolEZPbLy3nr4HfNbL/+FIP6LD/MprTVzvAs5GLbEg0BBnkFnFn/Br7Rcplul08dQLtE KNOeFd+jRIP1GORqnDxr1BgTkmAlhMF7bfvtINzIrJ7J7pNbYwljNA6CPn3pmHFvymQi v03w== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=PVZJmsiB; spf=pass (google.com: domain of fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::102d as permitted sender) smtp.mailfrom=fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Original-Received: from mail-pj1-x102d.google.com (mail-pj1-x102d.google.com. [2607:f8b0:4864:20::102d]) by gmr-mx.google.com with ESMTPS id ks7-20020a170903084700b001ae20d30d75si201703plb.6.2023.06.20.18.11.10 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 20 Jun 2023 18:11:10 -0700 (PDT) Received-SPF: pass (google.com: domain of fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::102d as permitted sender) client-ip=2607:f8b0:4864:20::102d; Original-Received: by mail-pj1-x102d.google.com with SMTP id 98e67ed59e1d1-25e9e5f9e0cso3038296a91.0 for ; Tue, 20 Jun 2023 18:11:10 -0700 (PDT) X-Received: by 2002:a17:90a:ec14:b0:25b:e4dc:bd06 with SMTP id l20-20020a17090aec1400b0025be4dcbd06mr10539811pjy.18.1687309869840; Tue, 20 Jun 2023 18:11:09 -0700 (PDT) Original-Received: from smtpclient.apple ([2607:f140:4208:8000:c0c3:d9be:1085:b5b]) by smtp.gmail.com with ESMTPSA id cu4-20020a17090afa8400b00259980d373dsm7956346pjb.1.2023.06.20.18.11.08 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 20 Jun 2023 18:11:08 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.3731.600.7) X-Original-Sender: fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=PVZJmsiB; spf=pass (google.com: domain of fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::102d as permitted sender) smtp.mailfrom=fiddlosopher-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:32852 Archived-At: --Apple-Mail=_D97D3DAA-F0D5-4324-A774-E4D315FCB8E5 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" Are you using the latest pandoc release? Here's a recent commit in texmath that may affect this: commit 5b337e57b80831b624f52dd250ab5d612ee94b88 Author: John MacFarlane Date: Sat May 6 10:31:42 2023 -0700 Remove escaping of spaces inside \text{}. =20 It isn't needed, and it causes problems in MathJax rendering. > On Apr 11, 2023, at 11:12 PM, Bernard Schleich wrote: >=20 > I'm trying to convert a big mathematical article (32 pages) with a lot of= mathematical expressions from docx to wikimedia. >=20 > When, from Wikipedia Sandbox, I incorporate wikimedia file generated by p= andoc, the following line are refused by Wikipedia >=20 > > {| class=3D"wikitable" > |- > ! 1) > ! S_{m} =3D \int_{0}^{a}{\varepsilon^{m}\text{\ }= \psi(\varepsilon)}\text{\ }\text{d}\varepsilon > |} >=20 > after replacing \text{\ } by \ or ~, the formula is accepted ! >=20 > This error occurs also when text is containing space as in following exem= ple >=20 > {| class=3D"wikitable" > |- > ! 9) > ! \varphi(\sigma_{1})_{2}\delta_{1} =3D \{\begin{= matrix} > \frac{4\sigma_{1}}{a^{2}}\delta_{1} & \text{f=C3=BCr\ }2\sigma_{1} < a \\ > \frac{4(a - \sigma_{1})}{a^{2}}\delta_{1} & \text{f=C3=BCr\ }2\sigma_{1} = > a \\ > \end{matrix} > |} >=20 > After having replacing \text{f=C3=BCr\ } by \text{f=C3=BCr}~, the formula= is accepted ! >=20 > I know that error is detected in Wikipedia, but I ask my question to Pand= oc because Wikipedia is first to use wikimedia !=20 >=20 > Is that a bug ? >=20 > Is there a parameter that I can use and that avoid to write \ in \text{.= ..} Latex expression ? >=20 > Thanks for any help ! >=20 >=20 > --=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= email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org . > To view this discussion on the web visit https://groups.google.com/d/msgi= d/pandoc-discuss/c31fe4f2-7137-448c-a1e0-ee77fa4c2ab9n%40googlegroups.com <= https://groups.google.com/d/msgid/pandoc-discuss/c31fe4f2-7137-448c-a1e0-ee= 77fa4c2ab9n%40googlegroups.com?utm_medium=3Demail&utm_source=3Dfooter>. > --=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/4ED29BFD-45D3-4898-A4AB-7BA5639FB599%40gmail.com. --Apple-Mail=_D97D3DAA-F0D5-4324-A774-E4D315FCB8E5 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset="UTF-8" Are you using the latest pandoc r= elease?

Here's a recent commit in texmath that may affec= t this:

commit 5b337e= 57b80831b624f52dd250ab5d612ee94b88

Author: John MacFarlane <jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org>

Date:   Sat May 6 10:31:42 2023 -0700


    Remove escaping of spaces inside \text{}.

    

    It isn't needed, and it causes problems in MathJax renderi= ng.




On Apr 11, 2023, at 11:12 PM, Bernard Schleich <bernard.s= chleich-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:

<= div>I'm trying to convert a big mathematical article (32 pages) with a lot = of mathematical expressions from docx to wikimedia.

<= /div>
When, from Wikipedia Sandbox, I incorporate wikimedia file genera= ted by pandoc, the following line are refused by Wikipedia

<image_20= 23-04-12_081228333.png>
= {| class=3D"wikitable"
|-
! 1)
! <math display=3D"block">S_{= m} =3D \int_{0}^{a}{\varepsilon^{m}\text{\ }\psi(\varepsilon)}\text{\ }\tex= t{d}\varepsilon</math>
|}


after replacing \text{\ } by \ <= /font> or ~, the formula is accepted !

<= div>This error occurs also when text is containing space as in following ex= emple

{| class=3D"wikit= able"
|-
! 9)
! <math display=3D"block">\varphi(\sigma_{1})_= {2}\delta_{1} =3D \{\begin{matrix}
\frac{4\sigma_{1}}{a^{2}}\delta_{1} &= amp; \text{f=C3=BCr\ }2\sigma_{1} < a \\
\frac{4(a - \sigma_{1})}{a^{= 2}}\delta_{1} & \text{f=C3=BC= r\ }2\sigma_{1} > a \\
\end{matrix}</math>
|}
<= br>

After having replacing \text{f=C3=BCr\ } by \text{f=C3=BC= r}~, the formula is accepted !

I kno= w that error is detected in Wikipedia, but I ask my question to Pandoc beca= use Wikipedia is first to use wikimedia ! 

Is that a bug ?

Is there a parameter that I c= an use and that avoid to write in \text{...} Latex expression ?

Thanks for any help !


--
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 pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.c= om/d/msgid/pandoc-discuss/c31fe4f2-7137-448c-a1e0-ee77fa4c2ab9n%40googlegro= ups.com.
<image_2023-04-12_= 081228333.png>

--
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/p= andoc-discuss/4ED29BFD-45D3-4898-A4AB-7BA5639FB599%40gmail.com.
--Apple-Mail=_D97D3DAA-F0D5-4324-A774-E4D315FCB8E5--