pythontex
pythontex copied to clipboard
\AtEndDocument -> \AfterEndDocument to work with fancyhdr
The temp file with code and delimiters is currently written too early, before some code might still need to be executed. Example: http://tex.stackexchange.com/questions/230446/using-pythontex-py-with-fancyhdr.