emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Fraga, Eric" <e.fraga@ucl.ac.uk>
To: Leo Butler <Leo.Butler@umanitoba.ca>
Cc: Org Mode List <emacs-orgmode@gnu.org>
Subject: Re: MathML and ODT export: inline possible?
Date: Thu, 18 Apr 2024 16:01:54 +0000	[thread overview]
Message-ID: <87le5a4q32.fsf@ucl.ac.uk> (raw)
In-Reply-To: <875xweof4n.fsf@t14.reltub.ca> (Leo Butler's message of "Thu, 18 Apr 2024 15:38:18 +0000")

On Thursday, 18 Apr 2024 at 15:38, Leo Butler wrote:
> Eric,
> I think there is a bug in the way the exporter handles odt fragments.
>
> Explanation: Maxima can print output in mathml. 

Oh, this is actually excellent news!  I use maxima all the time...

> But when I export to odt, something weird happens: contents.xml
> contains the fragment of mathml, but it is not displayed in
> libreoffice. 

Yes, I found this.  I had to wrap the <math> block within the following
ODT to get anything to display:

--8<---------------cut here---------------start------------->8---
<text:p text:style-name="Text_20_body">
<draw:frame draw:style-name="OrgCaptionedFormula" text:anchor-type="paragraph" draw:name="Frame1">
<draw:object>

MathML goes here

</draw:object>
</draw:frame>
</text:p>
--8<---------------cut here---------------end--------------->8---

although the styling is weird currently.  I've not yet played with the
style name etc. but I needed all three aspects: paragraph, frame, and
object to get the equation to appear.

> On the other hand, the snippet in the third sub-section, that is saved
> to file,

Yes, the exporter seems to wrap the MML with the types of lines I've
shown above.

I will play with maxima (tomorrow, I think).

Thank you,
eric

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

      reply	other threads:[~2024-04-18 16:04 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
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 [this message]

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=87le5a4q32.fsf@ucl.ac.uk \
    --to=e.fraga@ucl.ac.uk \
    --cc=Leo.Butler@umanitoba.ca \
    --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).