Re: [Haskell-cafe] Haskell to math
Henning Thielemann writes: Peter Verswyvelen wrote: Now what I would like to do, is to create a mathematical expression in Haskell (using e.g. an expression tree), which can be evaluated in Haskell, and be converted to something pretty-math-printable (MathML, PS, PDF, LaTex, whatever). There is the LaTeX preprocessor lhs2TeX which can typeset Haskell expressions in LaTeX's math mode. However I find the conversion not very well designed (e.g. the handling of parentheses). There was a program TeX Haskell mode by Manuel Chakravarty, also lambdaTeX, etc., but if I understand well, this IS NOT what Peter V. wants. He wants a specific pretty-printer *in Haskell*. This was most probably a subject of many students' exercices... Jerzy Karczmarczuk ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Haskell to math
On Fri, 26 Oct 2007, Peter Verswyvelen wrote: Some packages like Open Office and Microsoft Word contain a math expression writer. The same can be done with Maple, etc. Standard formats such as MathML, LaTex etc exist. Now what I would like to do, is to create a mathematical expression in Haskell (using e.g. an expression tree), which can be evaluated in Haskell, and be converted to something pretty-math-printable (MathML, PS, PDF, LaTex, whatever). There is the LaTeX preprocessor lhs2TeX which can typeset Haskell expressions in LaTeX's math mode. However I find the conversion not very well designed (e.g. the handling of parentheses). ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
[Haskell-cafe] Haskell to math
Some packages like Open Office and Microsoft Word contain a math expression writer. The same can be done with Maple, etc. Standard formats such as MathML, LaTex etc exist. Now what I would like to do, is to create a mathematical expression in Haskell (using e.g. an expression tree), which can be evaluated in Haskell, and be converted to something pretty-math-printable (MathML, PS, PDF, LaTex, whatever). Does something like this already exist? Thanks a lot, Peter ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] Haskell to math
Jerzy K wrote wants. He wants a specific pretty-printer *in Haskell*. This was most probably a subject of many students' exercices... Yes Jerzy, exactly. I wrote some Haskell code to create plots of binary relations and functions on the Cartesian plane, using GTK2HS (Cairo). I have to pretty print the math formulas used in these plots. Now I'm retyping the math formulas in Word, but being a really lazy programmer, I want to automate this task. So I wanted to write some code that renders math formulas (maybe using GTK, or to MathML; I must admit I don't know LaTex at all, sorry...), but since this feels like a lot of work to get right, I was wandering if it existed allready. Okay, I could have skipped all the above and just use Maple or whatever other tool, but I'm trying to use Haskell whenever possible, because I'm kind of addicated to it. Also I still feel a bit stuck in newbie land (although I think I'm approaching escape velocity ;-), so I grab every opportunity to practice in Haskell... Thanks, Peter ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe