[Haskell-cafe] ANN: HaTeX 3.6. Now with Babel, TikZ and more!
Daniel Díaz Casanueva
dhelta.diaz at gmail.com
Tue Jun 25 19:37:22 CEST 2013
It is time for a new release of HaTeX, the Haskell LaTeX library.
== What is HaTeX? ==
HaTeX contains numerous types and functions that will assist you in the
process of creating a LaTeX document within Haskell. You can also include
your manually created LaTeX code in HaTeX, so you can choose the more
convenient tool you want to use for each case.
== What's new in this release? ==
A lot of changes have been made since the last release! The most important
changes are explained in the blog post I just wrote:
However, the new feature I am more excited with is the TikZ script
generator. Using a very intuitive interface, you will be able to generate
high quality graphics for LaTeX documents. It is still far from be
complete, but next releases will fill the gaps that you may find right now.
Just to give you a taste, consider the following code:
myFigure :: Figure
myFigure = Scale 2 $ Figures
[ RectangleFilled (0,0) 1 1
, Colored Green $ RectangleFilled (-1,1) 1 1
, Colored Red $ RectangleFilled ( 0,2) 1 1
, Colored Blue $ RectangleFilled ( 1,1) 1 1
With this simple construction you already have the following picture ready
to be inserted in your LaTeX file output.
In the examples directory contained in the source distribution there is
also an example (tikz.hs) that includes the plotting of a Haskell function
(sine). However, the interface it uses may be less comfortable than the one
shown in the example above.
If you are a HaTeX user, don't miss this update, because it also contains
some very important bug fixes.
Any feedback gladly accepted.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Haskell-Cafe