1

I am including some MATLAB code into my main document, using the listings package, which contains a unicode theta (θ). How can I render an actual unicode theta instead of using \theta. Here is a MWE:

\documentclass{article}
\usepackage{listings}
\

\begin{document}

\begin{lstlisting}
θ
\end{lstlisting}

\end{document}

This returns the error "Package inputenc Error: Invalid UTF-8 byte sequence."

0 Answers0