emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* TeX to MathML & org-odt ?
@ 2011-03-28 10:39 Jambunathan K
  2011-03-28 17:18 ` Suvayu Ali
  0 siblings, 1 reply; 3+ messages in thread
From: Jambunathan K @ 2011-03-28 10:39 UTC (permalink / raw)
  To: emacs-orgmode


Any opinions on TeX to MathML converters (specifically those that are
amenable to be integrated within Orgmode/Emacs ).

I am asking this query mainly in the context of new org-odt exporter.

Most of the MathML software that I came across seems to be geared more
towards graphical rendering of a MathML text (in context of web or
standalone math apps).

What would be the recommended converter based on personal experience?

Jambunathan K.

-- 

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

* Re: TeX to MathML & org-odt ?
  2011-03-28 10:39 TeX to MathML & org-odt ? Jambunathan K
@ 2011-03-28 17:18 ` Suvayu Ali
  2011-03-29 14:15   ` Jambunathan K
  0 siblings, 1 reply; 3+ messages in thread
From: Suvayu Ali @ 2011-03-28 17:18 UTC (permalink / raw)
  To: emacs-orgmode

On Mon, 28 Mar 2011 16:09:00 +0530
Jambunathan K <kjambunathan@gmail.com> wrote:

> Any opinions on TeX to MathML converters (specifically those that are
> amenable to be integrated within Orgmode/Emacs ).

I am not sure whether this is what you are asking about but just in case
you are. I use ooolatex plugin with OOo (maybe we should start calling
it Libreoffice from now :) ).  It lets me specify custom latex headers
to choose packages and renders equations as scalable images. The
rendered images can then be re-edited by selecting them again. And as
far as I recall it stays editable across OOo installations as long as
the ooolatex plugin and latex are installed.

Since it uses latex, I am guessing on paper this could be made to work
with emacs? Hope this is what you wanted to know.

-- 
Suvayu

Open source is the future. It sets us free.

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

* Re: TeX to MathML & org-odt ?
  2011-03-28 17:18 ` Suvayu Ali
@ 2011-03-29 14:15   ` Jambunathan K
  0 siblings, 0 replies; 3+ messages in thread
From: Jambunathan K @ 2011-03-29 14:15 UTC (permalink / raw)
  To: Suvayu Ali; +Cc: emacs-orgmode

Suvayu Ali <fatkasuvayu+linux@gmail.com> writes:

> On Mon, 28 Mar 2011 16:09:00 +0530
> Jambunathan K <kjambunathan@gmail.com> wrote:
>
>> Any opinions on TeX to MathML converters (specifically those that are
>> amenable to be integrated within Orgmode/Emacs ).
>
> I am not sure whether this is what you are asking about but just in
> case you are.

I am not looking for anything specific just brainstorming. 

I was thinking of transforming LaTeX equations in to MathML and have the
resulting markup embedded within odt doucment.

With existing HTML exporter, there are limitation in embedding equations
as png images. With MathJax I don't see the MathML markup right within
the resulting HTML file [1].

MathToWeb [2] comes close to what I have in mind. It's also GPLed to
boot. For the sake of record,

The following input file (say eqn.txt)

--8<---------------cut here---------------start------------->8---
   \begin{equation}
     e = \frac{1}{2}mv^2
   \end{equation}
--8<---------------cut here---------------end--------------->8---

when passed throught mathtoweb as below


--8<---------------cut here---------------start------------->8---
java -jar mathtoweb.jar eqn.txt -unicode
--8<---------------cut here---------------end--------------->8---

produces

--8<---------------cut here---------------start------------->8---
<!-- begin MathToWeb -->
<!-- (your LaTeX) \begin{equation}
     e = \frac{1}{2}mv^2
   \end{equation} -->
<table class="equation" style="width: 100%; margin-top: 1.0%; margin-right: 0.0%; margin-bottom: 1.0%; margin-left: 0.0%;">
<tr>
<td style="text-align: left">

<math xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
	<mspace width="1.00em" />
	<mi>e</mi>
	<mo>=</mo>
	<mfrac linethickness="1">
		<mn>1</mn>
		<mn>2</mn>
	</mfrac>
	<mi>m</mi>
	<msup>
		<mi>v</mi>
		<mn>2</mn>
	</msup>
</mrow>
</math>

</td>
<td style="text-align: right; vertical-align: center"><a id=""><span style="color: #FFFFFF">()</span></a></td>
</tr>
</table>
<!-- end MathToWeb -->
--8<---------------cut here---------------end--------------->8---


The above output (between <math ../>) could be embedded in a odt
document (after stripping the HTML markups with equivalent odt elements)
[3]

> I use ooolatex plugin with OOo (maybe we should start calling
> it Libreoffice from now :) ).  It lets me specify custom latex headers
> to choose packages and renders equations as scalable images. The
> rendered images can then be re-edited by selecting them again. And as
> far as I recall it stays editable across OOo installations as long as
> the ooolatex plugin and latex are installed.
>
> Since it uses latex, I am guessing on paper this could be made to work
> with emacs? Hope this is what you wanted to know.

Footnotes: 
[1]  Follow the embedded in Nick's earlier post.
http://lists.gnu.org/archive/html/emacs-orgmode/2011-03/msg00534.html
http://free.linux.hp.com/~nick/euler/euler-mj.html

[2]  http://www.mathtoweb.com/cgi-bin/mathtoweb_home.pl

[3] odt exporter can embed the XML content of the equation while relying
on the viewer to "update/infer" the frame parameters of the resulting
equation.

-- 
Jambunathan K.

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

end of thread, other threads:[~2011-03-29 14:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-28 10:39 TeX to MathML & org-odt ? Jambunathan K
2011-03-28 17:18 ` Suvayu Ali
2011-03-29 14:15   ` Jambunathan K

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