Hi. Is there a possibility to extract all Python code from a document into a separate Python file in PythonTex? AFAIK, PyWeave has an execution mode called ptangle which does right that.
The reason why I am asking this is follows: I recently realized that it is really hard to copypaste the Python code from the code boxes of Pdf documents produced by PythonTex. In my case, the document contains line numbers and also I use Evince for viewing pdfs (not sure if the problem is viewer-dependent or not). My planned workaround is to provide users with raw text code files.
Hi. Is there a possibility to extract all Python code from a document into a separate Python file in PythonTex? AFAIK, PyWeave has an execution mode called
ptanglewhich does right that.The reason why I am asking this is follows: I recently realized that it is really hard to copypaste the Python code from the code boxes of Pdf documents produced by PythonTex. In my case, the document contains line numbers and also I use Evince for viewing pdfs (not sure if the problem is viewer-dependent or not). My planned workaround is to provide users with raw text code files.