这里发生了什么?
\documentclass{article}
\usepackage{minted}
\begin{document}
% I want to show the output as latex, this is a minimal repro without any output at all
\begin{minted}[escapeinside=QQ,python3=true]{pycon}
>>> g = str('e_x e_y e_z')
\end{minted}
% works fine otherwise
\begin{minted}[python3=true]{pycon}
>>> g = str('e_x e_y e_z')
\end{minted}
\end{document}
给出
为何被g = str(
移除?
答案1
这是一个pygments
错误,并且不受控制minted
:https://github.com/pygments/pygments/issues/1516。
编辑:PR 在这里修复此问题:https://github.com/pygments/pygments/pull/1517