5
votes
2answers
718 views

How can I tell lstlisting to use sans-serif when escaping to math mode?

Title says it all, an example follows: \lstset{ mathescape=true, basicstyle = \sffamily } \begin{lstlisting} func($x_0$) \end{lstlisting} Where and how can I set the math font used ...