Re: Converting a string formula to TeX
- From: Robert Dodier <robert.dodier@xxxxxxxxx>
- Date: Tue, 5 Feb 2008 20:37:10 -0800 (PST)
humberto.bortolo...@xxxxxxxxx wrote:
I would like to know if there is a java library (free or not) that
converts a string formula to TeX code. For instance, "(a + b)/2" is
converted to "\frac{a + b}{2}".
One route could be to parse the string into MathML, or some
other tree structure, and then generate the TeX from that.
Something that's is pretty far out there, but which might be helpful
if you end up writing your own code & you need some inspiration,
is the TeX output system of the symbolic computation program,
Maxima. Input strings are parsed into Lisp S-expressions
(comparable to MathML representation) and then TeX is generated
by walking the parsed expression and generating TeX output for
each bit according to properties assigned to each atom.
If you find that someone has invented a TeX output
system for Java, I'd be interested to hear about it.
FWIW
Robert Dodier
.
- References:
- Converting a string formula to TeX
- From: humberto . bortolossi
- Converting a string formula to TeX
- Prev by Date: Re: File browser
- Next by Date: Re: File browser
- Previous by thread: Re: Converting a string formula to TeX
- Next by thread: Re: Converting a string formula to TeX
- Index(es):
Relevant Pages
|