[HaTeX] ANN: HaTeX 3.6. Now with Babel, TikZ and more!

Daniel Díaz Casanueva dhelta.diaz at gmail.com
Tue Jun 25 18:37:22 BST 2013


Hello everyone!

It is time for a new release of HaTeX, the Haskell LaTeX library.

http://hackage.haskell.org/package/HaTeX-3.6

== 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:

http://deltadiaz.blogspot.com.es/2013/06/hatex-36-texy-class-babel-fontenc-tikz.html

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.

http://daniel-diaz.github.com/projects/hatex/tikzsimple.png

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.

Good luck,
Daniel Díaz.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://projects.haskell.org/pipermail/hatex/attachments/20130625/9467cbae/attachment.htm>


More information about the HaTeX mailing list