Saturday, November 17, 2012

python + latex

python.sty looks very good, very small, relatively simple, and almost everything i want for calling python from latex. only problem is that it starts a new interpreter for each python environment block.

https://bitbucket.org/brotchie/python-sty/changesets/tip/branch(%22default%22)

to use python.sty with rubber, i will likely need this:
http://bazaar.launchpad.net/~brotchie/rubber/shell-escape/revision/419?start_revid=419

here's some good info on working with files with tex/latex:
http://stackoverflow.com/questions/2115379/write-and-read-from-a-latex-temporary-file

a latex builder similar to rubber, but maybe simpler and easier. i'd reffed this before:
https://bitbucket.org/nmandery/python-pdflatex/

more info on calling out to python from latex:
http://thewikiblog.appspot.com/blog/python-inside-latex
https://github.com/gpoore/pythontex/tree/master/pythontex

No comments: