Usando la opción minted escapeinside con el pycon lexer
Aug 21 2020
¿Que está pasando aqui?
\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}
da

¿Por qué g = str(
se eliminó?
Respuestas
1 Eric Aug 20 2020 at 23:19
Esto es un pygments
error, y está fuera del control de minted
:https://github.com/pygments/pygments/issues/1516.
Editar: PR para arreglar esto aquí:https://github.com/pygments/pygments/pull/1517