blob: 5fa9f7421148db69fb6a2b984f18b59d15b58771 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
% ---------------------------------------------------
% Date: 08.10.2018
% Version: v0.1
% Autor: Felix Faltin <ffaltin91[at]gmail.com>
% Repository: https://github.com/faltfe/iodhbwm
% ---------------------------------------------------
% --- --- --- --- -- Class options -- --- --- --- ---
% ---------------------------------------------------
\documentclass[
load-dhbw-templates, % Allow \dhbw* commands
auto-intro-pages = custom, % Takes care about titlepage, abstract, ToC, etc.
add-tocs-to-toc, % Add LoF, LoT, etc. to ToC
mainlanguage = ngerman, % Set main document language
debug % Provide \lipsum, \blindtext
]{iodhbwm}
\usepackage[T1]{fontenc}
\dhbwsetup{intro/print toc=true}
% Change the part name depending on the selected language
% You can also use \captionsenglish if use picked English.
\addto\captionsngerman{\renewcommand{\partname}{Thema}}
% Use a alphabetic counter instead of a numeric counter
\renewcommand{\thepart}{\Alph{part}}
% Change the part format to "Thema A"
\renewcommand*{\partformat}{\partname~\thepart}
% Define a new part style for the toc
\newcommand\partentrynumberformat[1]{\partname\ #1}
% Set up the new part style
\RedeclareSectionCommand[
tocentrynumberformat=\partentrynumberformat,
tocnumwidth=6em % Can be changed separate
]{part}
\begin{document}
% ---------------------------------------------------
% --- --- --- --- Begin actual content -- --- --- ---
% ---------------------------------------------------
\part{Grundlagenwissen}
\Blinddocument
\part{Hintergrundwissen}
\Blinddocument
\end{document}
|