Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
vorlage
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
general
stups
vorlage
Commits
078e3874
Commit
078e3874
authored
4 years ago
by
Jannik Dunkelau
Browse files
Options
Downloads
Patches
Plain Diff
Move ToC lines for LOA and LOL into styling commands
parent
b60e40c3
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
hhuthesis.cls
+25
-5
25 additions, 5 deletions
hhuthesis.cls
thesis.tex
+1
-12
1 addition, 12 deletions
thesis.tex
with
26 additions
and
17 deletions
hhuthesis.cls
+
25
−
5
View file @
078e3874
\NeedsTeXFormat
{
LaTeX2e
}
\ProvidesClass
{
hhuthesis
}
[2020/0
6/22
HHU Thesis LaTeX document class v1.1
6
]
\ProvidesClass
{
hhuthesis
}
[2020/0
9/03
HHU Thesis LaTeX document class v1.1
7
]
\DeclareOption*
{
\PassOptionsToClass
{
\CurrentOption
}{
article
}}
% Options fallback.
\ProcessOptions\relax
...
...
@@ -207,7 +207,7 @@
\ifprintblackwhite\color
{
black
}
\else\color
{
hhublue
}
\fi\bfseries
#1
}
\newcommand
{
\lststring
}
[1]
{
%
\ifprintblackwhite\color
{
black
}
\else\color
{
hhudarkblue
}
\fi
#1
}
\newcommand
{
\setlstlistingstyle
}{
\newcommand
{
\setlstlistingstyle
}{
%
\lstset
{
basicstyle=
\small\ttfamily
,
numbers=left, numberstyle=
\footnotesize
,
...
...
@@ -216,12 +216,32 @@
stringstyle=
\lststring
,
showstringspaces=false,
frame=tb,
}
%
\iflanguage
{
ngerman
}{
\renewcommand
{
\lstlistingname
}{
Quellcode
}}{}
%
\renewcommand*\thelstnumber
{{
\the\value
{
lstnumber
}}
:
}
%
\let\old
@lstlistoflistings
\lstlistoflistings
%
\renewcommand
{
\lstlistoflistings
}{
%
\iflanguage
{
ngerman
}
%
{
\renewcommand
{
\lstlistlistingname
}{
Quellcodeverzeichnis
}}
%
{
\renewcommand
{
\lstlistlistingname
}{
List of Listings
}}
%
\addcontentsline
{
toc
}{
section
}{
\lstlistlistingname
}
%
\old
@lstlistoflistings
%
}
}
%% Adapt styling of algorithms
\newcommand
{
\setalgorithmstyle
}{
%
\algrenewcommand\ALG
@beginalgorithmic
{
\small
}
\iflanguage
{
ngerman
}{
\floatname
{
algorithm
}{
Algorithmus
}}{}
%
\let\old
@listofalgorithms
\listofalgorithms
%
\renewcommand
{
\listofalgorithms
}{
%
\iflanguage
{
ngerman
}
%
{
\renewcommand
{
\listalgorithmname
}{
Algorithmenverzeichnis
}}{}
%
\addcontentsline
{
toc
}{
section
}{
\listalgorithmname
}
%
\old
@listofalgorithms
%
}
\renewcommand*\thelstnumber
{{
\the\value
{
lstnumber
}}
:
}
}
%% Adapt algorithmicx font
\newcommand
{
\algsmallfont
}{
\algrenewcommand\ALG
@beginalgorithmic
{
\small
}}
%%% Setup of title page
...
...
This diff is collapsed.
Click to expand it.
thesis.tex
+
1
−
12
View file @
078e3874
...
...
@@ -92,16 +92,12 @@
%% Quellcode
\usepackage
{
listings
}
% Einbindung von Code.
\setlstlistingstyle
{}
% Kosmetische Einstellungen
% Sprachabhängige Bezeichnung.
\iflanguage
{
ngerman
}{
\renewcommand
{
\lstlistingname
}{
Quellcode
}}{}
%% Algorithmen in Pseudocode
\usepackage
{
algorithm
}
% Float-Umgebung für angegebene Algorithmen.
\usepackage
{
algorithmicx
}
% Angabe von Algorithmen in Pseudocode.
\usepackage
{
algpseudocode
}
% Standard Pseudocode-Elemente für Algorithmen.
\algsmallfont
{}
% Sprachabhängige Bezeichnung.
\iflanguage
{
ngerman
}{
\floatname
{
algorithm
}{
Algorithmus
}}{}
\setalgorithmstyle
{}
% Kosmetische Einstellungen
%% Intelligenteres Referenzieren mittels \cref.
%% \languagename um dynamisch zwischen ngerman oder english zu wechseln.
...
...
@@ -166,16 +162,9 @@
\listoftables
% Algorithms
\iflanguage
{
ngerman
}
%
{
\renewcommand
{
\listalgorithmname
}{
Algorithmenverzeichnis
}}{}
\addcontentsline
{
toc
}{
section
}{
\listalgorithmname
}
\listofalgorithms
% Code Listings
\iflanguage
{
ngerman
}
%
{
\renewcommand
{
\lstlistlistingname
}{
Quellcodeverzeichnis
}}
%
{
\renewcommand
{
\lstlistlistingname
}{
List of Listings
}}
\addcontentsline
{
toc
}{
section
}{
\lstlistlistingname
}
\lstlistoflistings
\clearpage
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment