W3C home > Mailing lists > Public > www-math@w3.org > October 2001

Re: MathML -> (La)TeX

From: William Arthur Naylor <bill@scl.csd.uwo.ca>
Date: Wed, 24 Oct 2001 11:23:36 -0400 (EDT)
To: "Vasil I. Yaroshevich" <shade33@mail.ru>
cc: www-math@w3c.org, www-math@w3.org
Message-ID: <Pine.LNX.4.21.0110241116270.832-100000@millennium.scl.csd.uwo.ca>
On Wed, 24 Oct 2001, Vasil I. Yaroshevich wrote:

> Hi!
> 
> Whether anyone know about tools for convertation from MathML to
> (La)TeX? There are written in the Specification about such tools, but
> whether anyone know about concrete tools?
> 

There are functions in Maple, Import (in the MathML package) and
latex. Import takes a content MathML string and returns the Maple object,
latex takes a Maple object and returns a latex form. Thus we may go:

latex(MathML:-Import( mathml string ))

to obtain the latex.

for example:
> latex(MathML:-Import("<math><apply><power/><ci>x</ci><cn>2</cn></apply></math>"));
{x}^{2}

I hope this helps,

Bill.

P.S. the MathML package also has functions for conversion from Maple
representation to MathML.

-- 
Received on Wednesday, 24 October 2001 11:23:39 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 20 February 2010 06:12:50 GMT