public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* Wikipedia refuse wikimedia file generated from docx with <math> expression containing \text{\ }
@ 2023-04-12  6:12 Bernard Schleich
       [not found] ` <c31fe4f2-7137-448c-a1e0-ee77fa4c2ab9n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Bernard Schleich @ 2023-04-12  6:12 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 1672 bytes --]

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

When, from Wikipedia Sandbox, I incorporate wikimedia file generated by 
pandoc, the following line are refused by Wikipedia

[image: image_2023-04-12_081228333.png]
{| class="wikitable"
|-
! 1)
! <math display="block">S_{m} = \int_{0}^{a}{\varepsilon^{m}\text{\ 
}\psi(\varepsilon)}\text{\ }\text{d}\varepsilon</math>
|}

after replacing \text{\ } by \  or ~, the formula is accepted !

This error occurs also when text is containing space as in following exemple

{| class="wikitable"
|-
! 9)
! <math display="block">\varphi(\sigma_{1})_{2}\delta_{1} = \{\begin{matrix}
\frac{4\sigma_{1}}{a^{2}}\delta_{1} & \text{für\ }2\sigma_{1} < a \\
\frac{4(a - \sigma_{1})}{a^{2}}\delta_{1} & \text{für\ }2\sigma_{1} > a \\
\end{matrix}</math>
|}

After having replacing \text{für\ } by \text{für}~, the formula is accepted 
!

I know that error is detected in Wikipedia, but I ask my question to Pandoc 
because Wikipedia is first to use wikimedia ! 

*Is that a bug ?*

Is there a parameter that I can 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 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/c31fe4f2-7137-448c-a1e0-ee77fa4c2ab9n%40googlegroups.com.

[-- Attachment #1.2: Type: text/html, Size: 3001 bytes --]

[-- Attachment #2: image_2023-04-12_081228333.png --]
[-- Type: image/png, Size: 43595 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Wikipedia refuse wikimedia file generated from docx with <math> expression containing \text{\ }
       [not found] ` <c31fe4f2-7137-448c-a1e0-ee77fa4c2ab9n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2023-06-21  1:10   ` John MacFarlane
  0 siblings, 0 replies; 2+ messages in thread
From: John MacFarlane @ 2023-06-21  1:10 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

[-- Attachment #1: Type: text/plain, Size: 2881 bytes --]

Are you using the latest pandoc release?

Here's a recent commit in texmath that may affect this:

commit 5b337e57b80831b624f52dd250ab5d612ee94b88
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 rendering.



> On Apr 11, 2023, at 11:12 PM, Bernard Schleich <bernard.schleich-Re5JQEeQqe8@public.gmane.orgm> wrote:
> 
> I'm trying to convert a big mathematical article (32 pages) with a lot of mathematical expressions from docx to wikimedia.
> 
> When, from Wikipedia Sandbox, I incorporate wikimedia file generated by pandoc, the following line are refused by Wikipedia
> 
> <image_2023-04-12_081228333.png>
> {| class="wikitable"
> |-
> ! 1)
> ! <math display="block">S_{m} = \int_{0}^{a}{\varepsilon^{m}\text{\ }\psi(\varepsilon)}\text{\ }\text{d}\varepsilon</math>
> |}
> 
> after replacing \text{\ } by \  or ~, the formula is accepted !
> 
> This error occurs also when text is containing space as in following exemple
> 
> {| class="wikitable"
> |-
> ! 9)
> ! <math display="block">\varphi(\sigma_{1})_{2}\delta_{1} = \{\begin{matrix}
> \frac{4\sigma_{1}}{a^{2}}\delta_{1} & \text{für\ }2\sigma_{1} < a \\
> \frac{4(a - \sigma_{1})}{a^{2}}\delta_{1} & \text{für\ }2\sigma_{1} > a \\
> \end{matrix}</math>
> |}
> 
> After having replacing \text{für\ } by \text{für}~, the formula is accepted !
> 
> I know that error is detected in Wikipedia, but I ask my question to Pandoc because Wikipedia is first to use wikimedia ! 
> 
> Is that a bug ?
> 
> Is there a parameter that I can 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 email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>.
> To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/c31fe4f2-7137-448c-a1e0-ee77fa4c2ab9n%40googlegroups.com <https://groups.google.com/d/msgid/pandoc-discuss/c31fe4f2-7137-448c-a1e0-ee77fa4c2ab9n%40googlegroups.com?utm_medium=email&utm_source=footer>.
> <image_2023-04-12_081228333.png>

-- 
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/4ED29BFD-45D3-4898-A4AB-7BA5639FB599%40gmail.com.

[-- Attachment #2: Type: text/html, Size: 9536 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-06-21  1:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-12  6:12 Wikipedia refuse wikimedia file generated from docx with <math> expression containing \text{\ } Bernard Schleich
     [not found] ` <c31fe4f2-7137-448c-a1e0-ee77fa4c2ab9n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2023-06-21  1:10   ` John MacFarlane

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).