From 58b78cd8ca76e8e5e2e5972cc3772fa43b8d497b Mon Sep 17 00:00:00 2001 From: Thorsten Glaser <thorsten.glaser@teckids.org> Date: Sun, 11 Jan 2015 22:08:47 +0100 Subject: [PATCH] =?UTF-8?q?[verein.git]=20now=20that=20docs/git-intro.pdf?= =?UTF-8?q?=20properly=20fails=20the=20build,=20we=20can=20fix=20t=CC=B2h?= =?UTF-8?q?=CC=B2a=CC=B2t=CC=B2=20issue=20by=20moving=20\listingsinpython?= =?UTF-8?q?=20out=20of=20teckidspubmat=20and=20into=20generic=20code?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- teckids.sty | 27 ++++++++++++++++++++++++++- teckidspubmat.cls | 25 ------------------------- 2 files changed, 26 insertions(+), 26 deletions(-) diff --git a/teckids.sty b/teckids.sty index 6f115e2..cb14b42 100644 --- a/teckids.sty +++ b/teckids.sty @@ -3,7 +3,7 @@ % Copyright © 2013 % Dominik George <nik@naturalnet.de> % -% Copyright © 2014 +% Copyright © 2014, 2015 % Thorsten “mirabilos†Glaser <thorsten.glaser@teckids.org> % % Provided that these terms and disclaimer and all copyright notices @@ -156,3 +156,28 @@ \fancyfoot{}% \fi% } + +\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}, +} +} diff --git a/teckidspubmat.cls b/teckidspubmat.cls index c0e7bc5..f3ccbb6 100644 --- a/teckidspubmat.cls +++ b/teckidspubmat.cls @@ -50,28 +50,3 @@ 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}, -} -} -- GitLab