Code:
\documentclass{article}
\usepackage{minted}
\begin{document}
\begin{minted}[mathescape,
linenos,
numbersep=5pt,
gobble=2,
frame=lines,
framesep=2mm]{csharp}
string title = "This is a Unicode π in the sky"
/*
Defined as $\pi=\lim_{n\to\infty}\frac{P_n}{d}$ where $P$ is the perimeter
of an $n$-sided regular polygon circumscribing a
circle of diameter $d$.
*/
const double pi = 3.1415926535
\end{minted}
\end{document}
And the result:
Note the missing π in the title
variable.
Using latest versions of packages from MikTeX distribution with XeLaTeX.
Missing character: There is no π in font cmtt10
in the log. But if you loadfontspec
, you getMissing character: There is no π in font [lmmono10-regular]
.