From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jambunathan K Subject: Re: TeX to MathML & org-odt ? Date: Tue, 29 Mar 2011 19:45:08 +0530 Message-ID: <81bp0u3teb.fsf@gmail.com> References: <81k4fj1qd7.fsf@gmail.com> <20110328101825.647f33d3@bhishma.homelinux.net> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from [140.186.70.92] (port=40439 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q4Zhb-00089i-Nl for emacs-orgmode@gnu.org; Tue, 29 Mar 2011 10:15:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q4ZhZ-0006Am-Lw for emacs-orgmode@gnu.org; Tue, 29 Mar 2011 10:15:23 -0400 Received: from mail-iy0-f169.google.com ([209.85.210.169]:48601) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q4ZhZ-0006Af-If for emacs-orgmode@gnu.org; Tue, 29 Mar 2011 10:15:21 -0400 Received: by iyf13 with SMTP id 13so305379iyf.0 for ; Tue, 29 Mar 2011 07:15:20 -0700 (PDT) In-Reply-To: <20110328101825.647f33d3@bhishma.homelinux.net> (Suvayu Ali's message of "Mon, 28 Mar 2011 10:18:25 -0700") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Suvayu Ali Cc: emacs-orgmode@gnu.org Suvayu Ali writes: > On Mon, 28 Mar 2011 16:09:00 +0530 > Jambunathan K 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---
e = 1 2 m v 2 ()
--8<---------------cut here---------------end--------------->8--- The above output (between ) 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.