<p dir="ltr">It's possible to use latex render sites [1], then shrink link by tiny URL [2]. Then paste like usual image.</p>
<p dir="ltr">[1] <a href="http://www.codecogs.com/latex/eqneditor.php">http://www.codecogs.com/latex/eqneditor.php</a><br>
[2] <a href="http://tinyurl.com">http://tinyurl.com</a></p>
<p dir="ltr">--<br>
Alexander</p>
<div class="gmail_quote">On Jan 7, 2014 2:20 AM, "Mateusz Kowalczyk" <<a href="mailto:fuuzetsu@fuuzetsu.co.uk">fuuzetsu@fuuzetsu.co.uk</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On 06/01/14 18:49, Peter Caspers wrote:<br>
> Hi,<br>
><br>
> I am still very new to Haskell, trying to start my very first project.<br>
> For its documentation I want to use Haddock and suitable comments in<br>
> the source code.<br>
><br>
> I notice that (e.g. different from doxygen) there is no direct way of<br>
> writing formulas, say in TeX style. Looking into some projects on<br>
> Hackage, formulas there<br>
> seem to be written in "pseudo-code" more or less like TeX but not<br>
> following any strict standard. As far as I can see.<br>
<br>
That's right, there's no direct way to embed maths in Haddock. It has<br>
been a somewhat requested feature for Haddock over summer when I did<br>
work on it but it didn't make it in.<br>
<br>
> What would be your recommendations concerning this ? Is there some<br>
> guideline on how to include formulas ? I understand that there is<br>
> "literal programming"<br>
> where you can e.g. write a TeX article with embedded code blocks that<br>
> can be extracted for the compiler. However, I do not want to follow<br>
> this path, also the<br>
> result is a bit different from what is produced in the "traditional"<br>
> approach, isn't it.<br>
<br>
If you want manually-written LaTeX, this is probably the only way at the<br>
moment. If all you want is some LaTeX snippets (maths), your best bet is<br>
to probably write those separately, make images out of them and then<br>
embed them into your documentation. There's currently no way for Haddock<br>
to do this for you. We do however have a LaTeX back-end so it's not like<br>
it's impossible to generate but it'd require some work that has not yet<br>
been put in.<br>
<br>
> Thanks a lot<br>
> Peter<br>
> _______________________________________________<br>
> Haskell-Cafe mailing list<br>
> <a href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a><br>
> <a href="http://www.haskell.org/mailman/listinfo/haskell-cafe" target="_blank">http://www.haskell.org/mailman/listinfo/haskell-cafe</a><br>
><br>
<br>
<br>
--<br>
Mateusz K.<br>
_______________________________________________<br>
Haskell-Cafe mailing list<br>
<a href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/haskell-cafe" target="_blank">http://www.haskell.org/mailman/listinfo/haskell-cafe</a><br>
</blockquote></div>