diff --git a/teckidspubmat.cls b/teckidspubmat.cls index f3ccbb616adc4e92e36c6f1bf6103caae607ffe9..c0e7bc5a37c72f469d89aa8cb3f0300ba2598c47 100644 --- a/teckidspubmat.cls +++ b/teckidspubmat.cls @@ -50,3 +50,28 @@ Lizenziert unter einer Creative Commons Namensnennung - \linebreak Weitergabe unter gleichen Bedingungen 3.0 Deutschland Lizenz.} } \newcommand{\teckidspubmatnamegroup}{\vspace{2cm}Name: \line(1,0){200}\hfill{}Klasse: \line(1,0){50}\hfill{}Gruppe: \line(1,0){50}} + +\newcommand{\listingsinpython}{\definecolor{listinggray}{gray}{0.9} +\definecolor{lbcolor}{rgb}{0.9,0.9,0.9} +\lstset{ + backgroundcolor=\color{lbcolor}, + tabsize=4, + rulecolor=, + language=python, + basicstyle=\ttfamily, + upquote=true, + aboveskip={1.5\baselineskip}, + columns=fixed, + showstringspaces=false, + extendedchars=true, + breaklines=true, + prebreak = \raisebox{0ex}[0ex][0ex]{\ensuremath{\hookleftarrow}}, + frame=single, + showtabs=false, + showspaces=false, + showstringspaces=false, + keywordstyle=\color[rgb]{0,0,1}, + commentstyle=\color[rgb]{0.133,0.545,0.133}, + stringstyle=\color[rgb]{0.627,0.126,0.941}, +} +}