Skip to content

Extracting code from a document into a .py file #182

Description

@sergei-mironov

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions