hplgit / doconce

Lightweight markup language - document once, include anywhere
http://hplgit.github.io/doconce/doc/web/index.html
Other
312 stars 60 forks source link

Incorporate matplotlib defaults? #30

Closed unpingco closed 9 years ago

unpingco commented 9 years ago

This blog post:

http://bkanuka.com/articles/native-latex-plots/

shows how to incorporate native looking defaults into matplotlib figures. Can this be accommodated in doconce?

Thanks!

hplgit commented 9 years ago

If you have

FIGURE: [fig, frac=0.9] caption

and there is a file fig.pgf, the generated output is now \input{fig.pgf}, otherwise a fig.pdf is used with \includegraphics the usual way. \usepackage{pgf} is inserted if .pgf files are detected. Hope it works!