scientific-thesis-template icon indicating copy to clipboard operation
scientific-thesis-template copied to clipboard

UTF-8 in lstlisting

Open schmiddd opened this issue 11 years ago • 2 comments

Seems that lstlisting does not support special characters. Maybe switching to listingsutf8 (http://ctan.org/pkg/listingsutf8) may be helpful.

schmiddd avatar Mar 24 '13 14:03 schmiddd

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.

koppor avatar Sep 24 '15 10:09 koppor

You could add a list of special characters using \lstset and the literate key.

sieversMartin avatar Mar 12 '18 16:03 sieversMartin