I would like to draw a few graphical models in latex. Is there a package that does that well?
I found the following package:
http://www.mpi-inf.mpg.de/~dietz/probabilistic-models-tikz.zip
but the .tex file does not compile for me, it gives me errors such as:
! Package PGF Math Error: The function `add' already exists.
See the PGF Math package documentation for explanation.
Type H <return> for immediate help.
...
l.23 }
?
I was also hoping for something in which I can draw more "fancy" graphical models (perhaps with shading of the variables or the plates). If this package worked though, it would be a good start.
Underfull \vboxwarnings but no error here (with TeXLive 2012). – Paul Gaborit Jul 29 '12 at 16:54mpinclude=false, index=totoc,version=first, listof=totoc, cleardoublepage=current. I would say the code is almost old and the TikZ code is not the best of its kind. However you should still need to update your TikZ package as it is most probably the case for the compile error. – percusse Jul 29 '12 at 20:25\usepackage{pgfmath}and not tikz. – Alain Matthes Jul 30 '12 at 08:44