kosmikus / lhs2tex

Preprocessor for typesetting Haskell sources with LaTeX
Other
99 stars 28 forks source link

Allow the use of diagrams qua BlogLiteratelyD #35

Open idontgetoutmuch opened 10 years ago

idontgetoutmuch commented 10 years ago

Using BlogLiteratelyD, one can embed a diagram created with the Haskell diagrams package (http://hackage.haskell.org/package/BlogLiterately-diagrams). Give we can \eval fragments of Haskell, it may not be too hard to generate diagrams as BlogLiteratelyD does, store them in a diagrams subdirectory and automatically include them e.g.

\begin{figure}[h]
    \centering
    \includegraphics[width=0.8\textwidth]{diagrams/noisyObs.png}
    \caption{Noisy Observations (Driving with Sine)}
    \label{fig:noisy_observations}
\end{figure}

Currently I have a separate executable which includes the .lhs file. Clearly this is an overhead and the diagrams could get out of sync with the text.