leftaroundabout / Symbolic-math-HaTeX

Convenient Haskell syntax for writing in LaTeX math expressions

Home Page:http://hackage.haskell.org/package/TeX-my-math

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This is an attempt to get convenient math syntax in HaTeX.

The idea is to combine these features:

  • Full access to the math-typesetting power of LaTeX. It should be possible to express any formula that might be found in a typical mathematics or physics journal article. This should also include expression which are not quite well-defined from a programming point of view, but are clear to the intended audience.
  • Idiomatic Haskell syntax. Who wants to bother with unreadable expressions involving either hundreds of double-backslashes or extra syntax overhead in wrapping them explicitly into HaTeX? Ideally, one would write expressions as if only meaning Haskell to calculate them, but get the result back as a full pretty-printing LaTeX math string. And the actual calculated result as well, if possible!

See EXAMPLES.md for how this works in practice, or example/Simple.hs for how the library can be used for writing mathematical documents. Rendered, that looks like this:

| TeX-my-math source for example document | xelatex-rendered example document |

About

Convenient Haskell syntax for writing in LaTeX math expressions

http://hackage.haskell.org/package/TeX-my-math

License:GNU General Public License v3.0


Languages

Language:Haskell 98.6%Language:Shell 1.4%