Skip to content
Snippets Groups Projects
Commit 3ad50624 authored by Jan Wille's avatar Jan Wille
Browse files

better settings for listings

parent 67472c1c
Branches
Tags
No related merge requests found
......@@ -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,
......
......@@ -20,10 +20,10 @@
%% 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
......
......@@ -20,10 +20,10 @@
%% 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
......
......@@ -20,10 +20,10 @@
%% 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}
......
......@@ -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,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment