-
Notifications
You must be signed in to change notification settings - Fork 407
Add nested syntax support for pyluatex similar to pythontex #2460
Copy link
Copy link
Closed
Labels
Description
I have used pythontex for quite some time. However, it always requires to have a more complicated compilation setup (see this latexmkrc, pythontex always requires the python package pygments, but my system python remains clean, so I have to enable via pyenv a python version meeting the requirements, ...).
There is a new package pyluatex which only needs the luatex engine instead of pdftex (single compilation run, no need for additional python packages except which I personally use).
However, it has different environment names
\documentclass{article}
\usepackage{pyluatex}
\begin{document}
\begin{python}
print("I am python but vimtex syntax highlighting does not know me")
\end{python}
\begin{pythonq}
print("I am python but vimtex syntax highlighting does not know me")
\end{pythonq}
\begin{pythonrepl}
print("I am python but vimtex syntax highlighting does not know me")
\end{pythonrepl}
\end{document} Can nested syntax highlighting added for these as well?
This document can be compiled with
$ lualatex --shell-escape document.tex
Reactions are currently unavailable