When using Minted i get a red box around greek characters
Can this behaviour be disabled or is there a specific line that needs to be changed in the python lexer?
A minimal working example
\documentclass[12pt,a4paper]{article}
\usepackage{fontspec}
\setmainfont{XITS}
\setmonofont{Consolas}
\usepackage{minted}
\setminted[python]{
linenos=true,
breaklines=true,
encoding=utf8,
fontsize=\footnotesize,
frame=lines
}
\begin{document}
\section{Some code in this section}
\begin{minted}{python}
def add(α, β):
return α + β
\end{minted}
\end{document}
edit: I am using xelatex
Best Answer
This seems to be an error in the Python lexer. If you don't need
\fcolorbox
inside theminted
environment, here's a hack:Here's the patch also for
\inputminted
: