Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for the pythontex package #212

Open
SamThilmany opened this issue Nov 19, 2020 · 0 comments
Open

Add support for the pythontex package #212

SamThilmany opened this issue Nov 19, 2020 · 0 comments

Comments

@SamThilmany
Copy link

When handling complex data or drawing complex images, it comes in handy to use a programming language that is more capable than TeX is. For this exact issue, the pythontex package was created. It allows the insertion of Python code directly into the LaTeX files. Upon document generation, the code is executed, and the results are inserted into the document.

This is my latex file.

\begin{pycode}
    print(r'I can also write something in Python.')
\end{pycode}

Obviously, the syntax highlighting is wrong if this environment is used as language-latex highlights the LaTeX code syntax and not the Python one. However, it would be great if it was possible to detect such environments, deactivate the LaTeX code highlighting inside them, and switch to the installed Python highlighting. I have no clue if such a thing is at all feasible, but if so, it would be a great feature to have!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant