<div dir="ltr">Hello haskellers.<div><br></div><div>Good news for the users of haskintex. This release opens new possibilities and solves some frustrations we had in the past.</div><div><br></div><div>For those who don't know what haskintex is, here is an overview. Haskintex is a program that reads a LaTeX file and evaluates Haskell expressions contained in some specific commands and environments. For example, if you save the file "foo.htex" with:</div>
<div><br></div><div>-- foo.htex</div><div><div>\documentclass{article}</div><div>\begin{document}</div><div>I have \evalhaskell{2+3} fingers in my right hand.</div><div>\end{document}</div></div><div>--</div><div><br></div>
<div>...and run "haskintex foo", you will get the following output:</div><div><br></div><div><div>\documentclass{article}</div><div>\begin{document}</div><div>I have \verb`5` fingers in my right hand.</div><div>
\end{document}</div></div><div><br></div><div>Just as you expected. If you want to know more details, visit the haskintex site at:</div><div><br></div><div><a href="http://daniel-diaz.github.io/projects/haskintex/">http://daniel-diaz.github.io/projects/haskintex</a><br>
</div><div><br></div><div>What is new in this release?</div><div><br></div><div>We have added two new features:</div><div><br></div><div>* \iohatex{t}, where t :: IO LaTeX.</div><div><br></div><div>It works exactly as the \hatex command does, but it expects an input of type IO LaTeX. This means you can perform IO computations now!</div>
<div><br></div><div>* \begin{haskellpragmas}...\end{haskellpragmas}</div><div><br></div><div>This will allow to include pragmas in the temporal Haskell module.</div><div><br></div><div>In addition to these two features, a new flag can be passed to the program: -debug. It writes down in a file the representation of the input that haskintex uses internally. It can be useful in those cases that you are not getting the output you expect.</div>
<div><br></div><div>And that's it for now. The code didn't grow much (and I want it to stay small) but I think possibilities have grown substantially. If you want to give it try, run "cabal update" followed by "cabal install haskintex".</div>
<div><br></div><div>Good luck,</div><div>Daniel Díaz.</div></div>