Open nichtich opened 10 years ago
Even better would be if it was possible to include an external file (so you don't have to fill your text with latex literals) Something like
~~~{.tikz, file=diagram.tex}
Placeholder
It might be too complex to also handle image output, but maybe some kind of fallback could be provided. This would be especially interesting now since Matplot (the premier Python plotting package) supports tikz/pgf as an output format (which imho is, like, voodoo magic)
See http://www.texample.net/tikz/examples/ for examples, e.g. http://www.texample.net/tikz/examples/cycle/
For LaTeX output the code could be embedded in
\begin{tikzpicture}...\end{tikzpicture}
and for other output it could be converted to PNG for inclusion as simple image.