From 3ad5062452ca50e3574864530c6bc2630a456238 Mon Sep 17 00:00:00 2001
From: Jan Wille <jan.wille@stud.hs-hannover.de>
Date: Mon, 27 Dec 2021 16:09:27 +0100
Subject: [PATCH] better settings for listings

---
 HsH-classes.dtx        |  6 ++++--
 src/HsH-article.cls    | 17 +++++++++--------
 src/HsH-report.cls     | 19 ++++++++++---------
 src/HsH-standalone.cls | 16 ++++++++--------
 src/config.tex         |  6 ++++--
 5 files changed, 35 insertions(+), 29 deletions(-)

diff --git a/HsH-classes.dtx b/HsH-classes.dtx
index 990f768..ac267ba 100644
--- a/HsH-classes.dtx
+++ b/HsH-classes.dtx
@@ -611,10 +611,12 @@
   }
 }{}
 \@ifpackageloaded{listings}{
+  \PassOptionsToPackage{svgnames}{xcolor}
+  \RequirePackage{xcolor}
   \lstset{
     commentstyle=\color{gray},
-    keywordstyle=\color{red},
-    stringstyle=\color{blue},
+    keywordstyle=\color{FireBrick}\bfseries,
+    stringstyle=\color{DodgerBlue},
     showstringspaces=false,
     basicstyle=\ttfamily,
     tabsize=4,
diff --git a/src/HsH-article.cls b/src/HsH-article.cls
index f09c772..737cc98 100644
--- a/src/HsH-article.cls
+++ b/src/HsH-article.cls
@@ -5,25 +5,25 @@
 %% The original source files were:
 %%
 %% HsH-classes.dtx  (with options: `article')
-%%
+%% 
 %% This is a generated file.
-%%
+%% 
 %% Copyright (C) 2021 by Jan Wille <mail@janwille.de>
-%%
+%% 
 %% This file may be distributed and/or modified under the conditions of
 %% the LaTeX Project Public License, either version 1.3 of this license
 %% or (at your option) any later version.  The latest version of this
 %% license is in:
-%%
+%% 
 %%    http://www.latex-project.org/lppl.txt
-%%
+%% 
 %% and version 1.3 or later is part of all distributions of LaTeX version
 %% 2021/01/01 or later.
-%%
-\typeout{Adapted from KOMA script for use in Hochschule Hannover <2021-04-21> Jan Wille}
+%% 
+\typeout{Adapted from KOMA script for use in Hochschule Hannover <2021-10-24> Jan Wille}
 \NeedsTeXFormat{LaTeX2e}
 \newcommand{\myClassName}{HsH-article}
-\ProvidesClass{\myClassName}[2021/04/21 v1.1 HsH-Class based on KOMA]
+\ProvidesClass{\myClassName}[2021/10/24 v1.2 HsH-Class based on KOMA]
 
 %% commands for HsH-logo
 \newcommand{\HsHlogoPath}{HSH-Logo.pdf}
@@ -154,6 +154,7 @@
 %% custom commands
 \newcommand{\uproman}[1]{\uppercase\expandafter{\romannumeral#1}}
 \newcommand{\lowroman}[1]{\romannumeral#1\relax}
+
 %% load config at beginning of document
 \AtBeginDocument{
   \makeatletter
diff --git a/src/HsH-report.cls b/src/HsH-report.cls
index 9dc25bc..91904ad 100644
--- a/src/HsH-report.cls
+++ b/src/HsH-report.cls
@@ -5,25 +5,25 @@
 %% The original source files were:
 %%
 %% HsH-classes.dtx  (with options: `report')
-%%
+%% 
 %% This is a generated file.
-%%
+%% 
 %% Copyright (C) 2021 by Jan Wille <mail@janwille.de>
-%%
+%% 
 %% This file may be distributed and/or modified under the conditions of
 %% the LaTeX Project Public License, either version 1.3 of this license
 %% or (at your option) any later version.  The latest version of this
 %% license is in:
-%%
+%% 
 %%    http://www.latex-project.org/lppl.txt
-%%
+%% 
 %% and version 1.3 or later is part of all distributions of LaTeX version
 %% 2021/01/01 or later.
-%%
-\typeout{Adapted from KOMA script for use in Hochschule Hannover <2021-04-21> Jan Wille}
+%% 
+\typeout{Adapted from KOMA script for use in Hochschule Hannover <2021-10-24> Jan Wille}
 \NeedsTeXFormat{LaTeX2e}
 \newcommand{\myClassName}{HsH-report}
-\ProvidesClass{\myClassName}[2021/04/21 v1.1 HsH-Class based on KOMA]
+\ProvidesClass{\myClassName}[2021/10/24 v1.2 HsH-Class based on KOMA]
 
 %% commands for HsH-logo
 \newcommand{\HsHlogoPath}{HSH-Logo.pdf}
@@ -119,8 +119,8 @@
 %% header and footer
 \pagestyle{scrheadings}
 \clearpairofpagestyles
-\renewcommand*{\chapterpagestyle}{scrheadings}
 \automark{chapter}
+\renewcommand*{\chapterpagestyle}{scrheadings}
 \ohead{\headmark}
 \ihead{\@title}
 \ofoot*{\pagemark}
@@ -155,6 +155,7 @@
 %% custom commands
 \newcommand{\uproman}[1]{\uppercase\expandafter{\romannumeral#1}}
 \newcommand{\lowroman}[1]{\romannumeral#1\relax}
+
 %% load config at beginning of document
 \AtBeginDocument{
   \makeatletter
diff --git a/src/HsH-standalone.cls b/src/HsH-standalone.cls
index d2c4e8c..dfe1ec2 100644
--- a/src/HsH-standalone.cls
+++ b/src/HsH-standalone.cls
@@ -5,25 +5,25 @@
 %% The original source files were:
 %%
 %% HsH-classes.dtx  (with options: `standalone')
-%%
+%% 
 %% This is a generated file.
-%%
+%% 
 %% Copyright (C) 2021 by Jan Wille <mail@janwille.de>
-%%
+%% 
 %% This file may be distributed and/or modified under the conditions of
 %% the LaTeX Project Public License, either version 1.3 of this license
 %% or (at your option) any later version.  The latest version of this
 %% license is in:
-%%
+%% 
 %%    http://www.latex-project.org/lppl.txt
-%%
+%% 
 %% and version 1.3 or later is part of all distributions of LaTeX version
 %% 2021/01/01 or later.
-%%
-\typeout{Adapted from KOMA script for use in Hochschule Hannover <2021-04-21> Jan Wille}
+%% 
+\typeout{Adapted from KOMA script for use in Hochschule Hannover <2021-10-24> Jan Wille}
 \NeedsTeXFormat{LaTeX2e}
 \newcommand{\myClassName}{HsH-standalone}
-\ProvidesClass{\myClassName}[2021/04/21 v1.1 HsH-Class based on KOMA]
+\ProvidesClass{\myClassName}[2021/10/24 v1.2 HsH-Class based on KOMA]
 
 %% commands for HsH-logo
 \newcommand{\HsHlogoPath}{HSH-Logo.pdf}
diff --git a/src/config.tex b/src/config.tex
index 5879e7b..a41def4 100644
--- a/src/config.tex
+++ b/src/config.tex
@@ -31,10 +31,12 @@
   }
 }{}
 \@ifpackageloaded{listings}{
+  \PassOptionsToPackage{svgnames}{xcolor}
+  \RequirePackage{xcolor}
   \lstset{
     commentstyle=\color{gray},
-    keywordstyle=\color{red},
-    stringstyle=\color{blue},
+    keywordstyle=\color{FireBrick}\bfseries,
+    stringstyle=\color{DodgerBlue},
     showstringspaces=false,
     basicstyle=\ttfamily,
     tabsize=4,
-- 
GitLab