emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Fraga, Eric" <e.fraga@ucl.ac.uk>
To: Max Nikulin <manikulin@gmail.com>
Cc: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: MathML and ODT export: inline possible?
Date: Thu, 18 Apr 2024 15:51:44 +0000	[thread overview]
Message-ID: <87zftq4qk0.fsf@ucl.ac.uk> (raw)
In-Reply-To: <uvrcs7$86b$1@ciao.gmane.io> (Max Nikulin's message of "Thu, 18 Apr 2024 22:05:43 +0700")

Hi Max,

On Thursday, 18 Apr 2024 at 22:05, Max Nikulin wrote:
> I am still curious if pandoc can handle your math expressions.

The short answer: not quite but definitely much better than latexmlmath.

The longer answer: my equation has a number of terms with subscripts
where the subscripts themselves have subscripts.  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>

which has a more "LaTeX" protected feel.

The latter works but the former (pandoc) does show properly for most of
the terms but not all of them (showing a red upside down question mark
instead of the subscripted subscript).  Yet all these terms have the
same structure in MML.

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.

Thanks again for all the help today.  I may actually meet my deadline...

eric

PS. my remaining task, were I to use EXPORT ODT blocks, is figuring out
how to style (typeface, size, etc.) the equation properly, something
which the link approach does magically (well, seems like magic to me at
the moment ;-)).  But that can wait for after my deadline!

-- 
: Eric S Fraga, with org release_9.6.23-1320-g1be2f9 in Emacs 30.0.50

  reply	other threads:[~2024-04-18 15:52 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 [this message]
2024-04-19 16:19         ` Max Nikulin
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=87zftq4qk0.fsf@ucl.ac.uk \
    --to=e.fraga@ucl.ac.uk \
    --cc=emacs-orgmode@gnu.org \
    --cc=manikulin@gmail.com \
    /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).