aboutsummaryrefslogtreecommitdiffstats
path: root/buch
diff options
context:
space:
mode:
authorRoy Seitz <roy.seitz@ost.ch>2021-07-11 12:27:51 +0200
committerRoy Seitz <roy.seitz@ost.ch>2021-07-11 12:27:51 +0200
commit5c7208d21b9dfb6194f690144047b6761d9d260b (patch)
tree3bc76f0922b5d3195d7389a5b7bea280fdde5029 /buch
parentRemove '\begin{document}' from chapter part file. (diff)
downloadSeminarMatrizen-5c7208d21b9dfb6194f690144047b6761d9d260b.tar.gz
SeminarMatrizen-5c7208d21b9dfb6194f690144047b6761d9d260b.zip
Fixing UTF8 support for listings.
Diffstat (limited to '')
-rw-r--r--buch/common/lststyles.tex23
1 files changed, 23 insertions, 0 deletions
diff --git a/buch/common/lststyles.tex b/buch/common/lststyles.tex
index b1105ed..15ac379 100644
--- a/buch/common/lststyles.tex
+++ b/buch/common/lststyles.tex
@@ -12,6 +12,29 @@
\definecolor{mygreen}{RGB}{28,172,0} % color values Red, Green, Blue
\definecolor{mylilas}{RGB}{170,55,241}
+\lstset{
+ extendedchars=true,
+ basicstyle=\ttfamily,
+ literate=%
+ {€}{\euro}1%
+ {§}{\S}1%
+ {°}{\textdegree{}}1%
+ {ä}{{\"a}}1%
+ {ö}{{\"o}}1%
+ {ü}{{\"u}}1%
+ {ß}{{\ss}}1%
+ {Ä}{{\"A}}1%
+ {Ö}{{\"O}}1%
+ {Ü}{{\"U}}1%
+ {µ}{\textmu}1%
+ {¹}{{\textsuperscript{1}}}1%
+ {²}{{\textsuperscript{2}}}1%
+ {³}{{\textsuperscript{3}}}1%
+ {¼}{\textonequarter}1%
+ {½}{\textonehalf}1%
+ {¢}{\textcent}1%
+}
+
\lstdefinestyle{Matlab}{
numbers=left,
belowcaptionskip=1\baselineskip,