emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Max Nikulin <manikulin@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: MathML and ODT export: inline possible?
Date: Fri, 19 Apr 2024 23:19:34 +0700	[thread overview]
Message-ID: <uvu5io$mlt$1@ciao.gmane.io> (raw)
In-Reply-To: <87zftq4qk0.fsf@ucl.ac.uk>

On 18/04/2024 22:51, Fraga, Eric wrote:
> In LaTeX, something like $a_{b_c}$.  Pandoc generates
> 
> <msub> a <msub> b c </msub></msub>
> 
> (where the a, b, and c are <mi>...</mi>) whereas, by hand, I use
> 
> <msub> a <mrow><msub> b c </msub></mrow></msub>

MathJax may be your friend. LaTeXML and katex do not add <mrow> as well.

Actually I asked to confirm that your troubles are not with proper 
escaping of input to a converter.

I have not used katex before, I just noticed it in
Martin Edström. Re: Warn about shell-expansion in the docstring of 
org-latex-to-html-convert-command. Wed, 21 Feb 2024 15:57:47 +0100.
https://list.orgmode.org/CADojovJHoC5ZZATF1y7Uw2dEqNdhMDp5Ka8mgzujHUfkgTeE4Q@mail.gmail.com

During my quick try of LaTeXML I learned that "--preload=siunitx.sty" 
should not be used with fresh TeXLive despite it is recommended in the 
`org-latex-to-html-convert-command' docstring.

> Pandoc also wraps the inner contents of the <math>...</math> block in
> <semantics>.  I do not know what that does as I've only just started
> learning mathml.

I have seen <semantics> as well, but I did not go deeper. I recall the 
following in the context of screen readers:

T.V Raman. Re: Org mode export accessibility. Sat, 09 Jul 2022 06:20:27 
-0700.
https:list.orgmode.org/p91czeeo21w.fsf@google.com

> MathJax is a wonderful thing and the LaTeX expression embedded in the
> HTML is the best one can do -- MathML loses semantics -- which is why I
> always recommend preserving the LaTeX when going to HTML.







  reply	other threads:[~2024-04-19 16:20 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-18 12:14 MathML and ODT export: inline possible? Fraga, Eric
2024-04-18 14:44 ` Max Nikulin
2024-04-18 15:03   ` Fraga, Eric
2024-04-18 15:05     ` Max Nikulin
2024-04-18 15:51       ` Fraga, Eric
2024-04-19 16:19         ` Max Nikulin [this message]
2024-04-22  9:05           ` Fraga, Eric
2024-04-22 10:57             ` Max Nikulin
2024-04-18 15:38 ` Leo Butler
2024-04-18 16:01   ` Fraga, Eric

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='uvu5io$mlt$1@ciao.gmane.io' \
    --to=manikulin@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).