emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* exporting to mediawiki syntax math is not converted
@ 2022-06-20 16:00 Uwe Brauer
  2022-06-21  3:18 ` Ihor Radchenko
  0 siblings, 1 reply; 5+ messages in thread
From: Uwe Brauer @ 2022-06-20 16:00 UTC (permalink / raw)
  To: emacs-orgmode



Hi 

The following line


torus $\mathbb T^3$ in the Sobolev spaces $H^m(\mathbb T^3)$. 

Is translated to 

torus \(\mathbb T^3\) in the Sobolev spaces \(H^m(\mathbb T^3)\)

Instead of 

torus <math>\mathbb T^3</math> in the Sobolev spaces <math>H^m(\mathbb T^3)</math>

Is this a missing feature, or do I miss something here?


Thanks

Uwe Brauer 


-- 
I strongly condemn Putin's war of aggression against the Ukraine.
I support to deliver weapons to Ukraine's military. 
I support the ban of Russia from SWIFT.
I support the EU membership of the Ukraine. 



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

* Re: exporting to mediawiki syntax math is not converted
  2022-06-20 16:00 exporting to mediawiki syntax math is not converted Uwe Brauer
@ 2022-06-21  3:18 ` Ihor Radchenko
  2022-06-21  4:30   ` Uwe Brauer
  0 siblings, 1 reply; 5+ messages in thread
From: Ihor Radchenko @ 2022-06-21  3:18 UTC (permalink / raw)
  To: Uwe Brauer; +Cc: emacs-orgmode

Uwe Brauer <oub@mat.ucm.es> writes:

> The following line
>
>
> torus $\mathbb T^3$ in the Sobolev spaces $H^m(\mathbb T^3)$. 
>
> Is translated to 
>
> torus \(\mathbb T^3\) in the Sobolev spaces \(H^m(\mathbb T^3)\)
>
> Instead of 
>
> torus <math>\mathbb T^3</math> in the Sobolev spaces <math>H^m(\mathbb T^3)</math>
>
> Is this a missing feature, or do I miss something here?

See org-html-with-latex. We use mathjax syntax for LaTeX export by
default

Best,
Ihor


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

* Re: exporting to mediawiki syntax math is not converted
  2022-06-21  3:18 ` Ihor Radchenko
@ 2022-06-21  4:30   ` Uwe Brauer
  2022-06-21  4:42     ` Ihor Radchenko
  0 siblings, 1 reply; 5+ messages in thread
From: Uwe Brauer @ 2022-06-21  4:30 UTC (permalink / raw)
  To: emacs-orgmode

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

>>> "IR" == Ihor Radchenko <yantar92@gmail.com> writes:

> Uwe Brauer <oub@mat.ucm.es> writes:
>> The following line
>> 
>> 
>> torus $\mathbb T^3$ in the Sobolev spaces $H^m(\mathbb T^3)$. 
>> 
>> Is translated to 
>> 
>> torus \(\mathbb T^3\) in the Sobolev spaces \(H^m(\mathbb T^3)\)
>> 
>> Instead of 
>> 
>> torus <math>\mathbb T^3</math> in the Sobolev spaces <math>H^m(\mathbb T^3)</math>
>> 
>> Is this a missing feature, or do I miss something here?

> See org-html-with-latex. We use mathjax syntax for LaTeX export by
> default

I see, but that means, the exported wiki cannot be used say for
wikipedia since it uses mediawiki syntax for math.

Does anybody knows about a 3rd party package providing support for mediawiki?

I realized that pandoc supports mediawiki, but I don't need a new file I
just want to save into a buffer. I have to think about it.



[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 5673 bytes --]

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

* Re: exporting to mediawiki syntax math is not converted
  2022-06-21  4:30   ` Uwe Brauer
@ 2022-06-21  4:42     ` Ihor Radchenko
  2022-06-21  4:59       ` Uwe Brauer
  0 siblings, 1 reply; 5+ messages in thread
From: Ihor Radchenko @ 2022-06-21  4:42 UTC (permalink / raw)
  To: Uwe Brauer; +Cc: emacs-orgmode

Uwe Brauer <oub@mat.ucm.es> writes:

>> See org-html-with-latex. We use mathjax syntax for LaTeX export by
>> default
>
> I see, but that means, the exported wiki cannot be used say for
> wikipedia since it uses mediawiki syntax for math.
>
> Does anybody knows about a 3rd party package providing support for mediawiki?

You just need a custom export filter for latex fragments in
org-export-filter-latex-fragment-functions.

Or, if you think that mediawiki math export is common enough, we may
implement mediawiki support as an additional option in
org-html-with-latex. But we will need other people to voice their
support.

Best,
Ihor



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

* Re: exporting to mediawiki syntax math is not converted
  2022-06-21  4:42     ` Ihor Radchenko
@ 2022-06-21  4:59       ` Uwe Brauer
  0 siblings, 0 replies; 5+ messages in thread
From: Uwe Brauer @ 2022-06-21  4:59 UTC (permalink / raw)
  To: emacs-orgmode

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

>>> "IR" == Ihor Radchenko <yantar92@gmail.com> writes:

> Uwe Brauer <oub@mat.ucm.es> writes:
>>> See org-html-with-latex. We use mathjax syntax for LaTeX export by
>>> default
>> 
>> I see, but that means, the exported wiki cannot be used say for
>> wikipedia since it uses mediawiki syntax for math.
>> 
>> Does anybody knows about a 3rd party package providing support for mediawiki?

> You just need a custom export filter for latex fragments in
> org-export-filter-latex-fragment-functions.

> Or, if you think that mediawiki math export is common enough, we may
> implement mediawiki support as an additional option in
> org-html-with-latex. But we will need other people to voice their
> support.

Fair enough. Meanwhile I got ox-pandoc to work (although I still use
pandoc 1.9 and it requires 2.X) and indeed it has an export option for
mediawiki and the math is correctly converted.

So for me that is fine, but maybe others, who can't use pandoc might
want mediawiki support?


[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 5673 bytes --]

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

end of thread, other threads:[~2022-06-21  5:02 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-06-20 16:00 exporting to mediawiki syntax math is not converted Uwe Brauer
2022-06-21  3:18 ` Ihor Radchenko
2022-06-21  4:30   ` Uwe Brauer
2022-06-21  4:42     ` Ihor Radchenko
2022-06-21  4:59       ` Uwe Brauer

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).