emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Jambunathan K <kjambunathan@gmail.com>
To: emacs-orgmode@gnu.org
Subject: [odt][ANN]  Embed links to mathml files as ODF formula
Date: Thu, 08 Sep 2011 21:08:09 +0530	[thread overview]
Message-ID: <814o0n3uzi.fsf@gmail.com> (raw)

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

I am pleased to announce (preliminary) support for embedding mathml
files as ODF formulae in odt documents.

Specfically if one provides a link to mathml files as shown below


then the contents of the mathml file is embedded in the exported ODT
document as a ODF formula.

I intend to support link to *.odf files as well. (But this is not
available yet).

Moot point: I am still uncertain how the mathml equations specified in
Org format. For example, does the current approach of using file links
of the form *.mathml (or *.odf) extension sound OK? Should I use a new
mathml:// link type?

Please see the attached Org file for a quick demonstration of what the
current set of changes mean.

1. Update work area
2. Copy mathml.org, formula1.mathml, formula2.mathml to the same
3. Use C-c C-e O to export.

Currently the equations are embedded as unnumbered, display/paragraph

IMPORTANT: I am following this mail with a patch to org.el which will
add support for LaTeX-to-MathML conversion using an external

[-- Attachment #2: mathml.org --]
[-- Type: text/plain, Size: 695 bytes --]

#+TITLE:     mathml.org
#+AUTHOR:    Jambunathan K
#+EMAIL:     kjambunathan@gmail.com
#+OPTIONS:   H:3 num:t toc:t \n:nil @:t ::t |:t ^:t -:t f:t *:t <:t
#+OPTIONS:   TeX:t LaTeX:t skip:nil d:nil todo:t pri:nil tags:not-in-toc


* Unnumbered Display Equation (Non-captioned)

* Un-numbered Display Equation (Captioned)
#+CAPTION: Kinetic Energy

* COMMENT LaTeX Fragment

#+CAPTION: Kinetic Energy 

  e = \frac{1}{2}mv^2

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #3: formula1.mathml --]
[-- Type: text/xml, Size: 293 bytes --]

<?xml version="1.0" encoding="UTF-8"?>

<math xmlns="http://www.w3.org/1998/Math/MathML">
   <mi mathvariant="normal">=</mi>
  <annotation encoding="StarMath 5.0">x = sqrt b</annotation>

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #4: formula2.mathml --]
[-- Type: text/xml, Size: 414 bytes --]

<?xml version="1.0" encoding="UTF-8"?>

<math xmlns="http://www.w3.org/1998/Math/MathML">
    <mi mathvariant="normal">=</mi>
    <mi mathvariant="italic">mv</mi>
  <annotation encoding="StarMath 5.0">e=1 over 2 mv^2

[-- Attachment #5: mathml.odt --]
[-- Type: application/vnd.oasis.opendocument.text, Size: 9453 bytes --]

[-- Attachment #6: Type: text/plain, Size: 5 bytes --]


             reply	other threads:[~2011-09-08 15:38 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-08 15:38 Jambunathan K [this message]
2011-09-08 19:57 ` [PATCH] org.el: Add support for LaTeX to MathML conversion Jambunathan K
2011-09-17 19:35   ` Jambunathan K

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:

  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=814o0n3uzi.fsf@gmail.com \
    --to=kjambunathan@gmail.com \
    --cc=emacs-orgmode@gnu.org \


* 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


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).