T1 fontencoding for listing

This commit is contained in:
Dirk Alders 2025-08-06 18:29:07 +02:00
parent 4bd032247d
commit e8dfaa9a73

View File

@ -41,7 +41,7 @@
\definecolor{mymauve}{rgb}{0.58,0,0.82}
\lstset{ %
backgroundcolor=\color{white}, % choose the background color; you must add \usepackage{color} or \usepackage{xcolor}; should come as last argument
basicstyle=\footnotesize, % the size of the fonts that are used for the code
basicstyle=\footnotesize\fontencoding{T1}\selectfont, % the size of the fonts that are used for the code and fontencoding to T1
breakatwhitespace=false, % sets if automatic breaks should only happen at whitespace
breaklines=true, % sets automatic line breaking
captionpos=b, % sets the caption-position to bottom