scientific-thesis-template
scientific-thesis-template copied to clipboard
UTF-8 in lstlisting
Seems that lstlisting does not support special characters. Maybe switching to listingsutf8 (http://ctan.org/pkg/listingsutf8) may be helpful.
Currently, listingsutf8 only supports workarounds for \lstinputlisting
. For all other usecases, such as the lstlisting
environment, no workaround exists.
I suggest moving to the minted package. Installation of the required library pygments is a bit tricky under Windows for Python newbies.
Any comments on that? I'm in favour of adding a comment on the lstlisting
and to close this issue. I could also add an example when using minted.
You could add a list of special characters using \lstset
and the literate
key.