Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
LaTeX Template HsH
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jan Wille
LaTeX Template HsH
Commits
13421e29
Commit
13421e29
authored
4 years ago
by
Jan Wille
Browse files
Options
Downloads
Patches
Plain Diff
updated titlepage, alignment, matrikelnr, prof
parent
5ee730e7
No related branches found
No related tags found
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
README.md
+2
-4
2 additions, 4 deletions
README.md
src/HsH-article.cls
+112
-260
112 additions, 260 deletions
src/HsH-article.cls
src/HsH-report.cls
+161
-271
161 additions, 271 deletions
src/HsH-report.cls
src/personal.tex
+2
-1
2 additions, 1 deletion
src/personal.tex
with
277 additions
and
536 deletions
README.md
+
2
−
4
View file @
13421e29
...
...
@@ -12,12 +12,10 @@ them with specifig configurations and presets as well as providing commonly need
HsH-book (planed)
HsH-standalone
**Version:**
BETA 0.5, 18
.03.2021
**Version:**
1.0, 20
.03.2021
# TODO:
custom commands for titalpage:
-
Profs
-
ImatNRs
-
sollte die titelseite immer auf seite 1 sein? (Schmutztitel/extratitel)
make Wiki
This diff is collapsed.
Click to expand it.
src/HsH-article.cls
+
112
−
260
View file @
13421e29
\typeout
{
Adapted from KOMA script for use in Hochschule Hannover <2022-03-
18
> Jan Wille
}
\typeout
{
Adapted from KOMA script for use in Hochschule Hannover <2022-03-
20
> Jan Wille
}
\NeedsTeXFormat
{
LaTeX2e
}
\newcommand
{
\myClassName
}{
HsH-article
}
\ProvidesClass
{
\myClassName
}
[2021/03/
18
HsH Report based on KOMA]
\ProvidesClass
{
\myClassName
}
[2021/03/
20
HsH Report based on KOMA]
\newcommand
{
\HsHlogoPath
}{
HSH-Logo.pdf
}
\newcommand
{
\HsHlogoPage
}{
1
}
...
...
@@ -80,7 +80,18 @@
\if
@german
\RequirePackage
{
ziffer
}
\fi
% german dezimal numbers
% internal stuff
\newtoks\@
tabtoks
\newcommand\addtabtoks
[1]
{
\global\@
tabtoks
\expandafter
{
\the\@
tabtoks#1
}}
\newcommand\eaddtabtoks
[1]
{
\edef\mytmp
{
#1
}
\expandafter\addtabtoks\expandafter
{
\mytmp
}}
%\newcommand*\resettabtoks{\global\@tabtoks{}}
\newcommand*\printtabtoks
{
\the\@
tabtoks
}
% config for title, header and footer
\newcommand*
{
\@
matrikelnr
}{}
%
\newcommand
{
\matrikelnr
}
[1]
{
\gdef\@
matrikelnr
{
#1
}}
%
\newcommand*
{
\@
prof
}{}
%
\newcommand
{
\professor
}
[1]
{
\gdef\@
prof
{
#1
}}
%
\InputIfFileExists
{
personal.tex
}{
\ClassInfo
{
\myClassName
}{
personal.tex was found. Using it...
}
}{
...
...
@@ -93,7 +104,6 @@
\ihead
{
\@
title
}
\ofoot*
{
\pagemark
}
% typesetting indexes upright or standart
\def\subinrm
#1
{
\sb
{
\mathrm
{
#1
}}}
{
\catcode
`
\_
=13
\global\let
_
=
\subinrm
}
...
...
@@ -195,7 +205,7 @@
}
% reconfig Titlepage
\renewcommand\maketitle
[1][
1
]
{
%
\renewcommand\maketitle
[1][
c
]
{
%
\expandafter\ifnum
\csname
scr@v@3.12
\endcsname
>
\scr
@compatibility
\relax
\else
\def\and
{
%
...
...
@@ -204,63 +214,46 @@
\begin{tabular}
[t]
{
c
}
%
}
%
\fi
\if
@titlepage
\begin{titlepage}
\setcounter
{
page
}{
%
#1
%
\par
\ifx\@
uppertitleback
\@
empty
\else
\ClassWarning
{
\KOMAClassName
}{
%
non empty
\string\uppertitleback\space
ignored
by
\string\maketitle\MessageBreak
in `titlepage=false' mode
%
}
%
\if
@titlepageiscoverpage
\edef\titlepage
@restore
{
%
\noexpand\endgroup
\noexpand\global\noexpand\@
colht
\the\@
colht
\noexpand\global\noexpand\@
colroom
\the\@
colroom
\noexpand\global\vsize\the\vsize
\noexpand\global\noexpand\@
titlepageiscoverpagefalse
\noexpand\let\noexpand\titlepage
@restore
\noexpand\relax
\fi
\ifx\@
lowertitleback
\@
empty
\else
\ClassWarning
{
\KOMAClassName
}{
%
non empty
\string\lowertitleback\space
ignored
by
\string\maketitle\MessageBreak
in `titlepage=false' mode
%
}
%
\fi
\begingroup
\topmargin
=
\dimexpr
\coverpagetopmargin
-1in
\relax
\oddsidemargin
=
\dimexpr
\coverpageleftmargin
-1in
\relax
\evensidemargin
=
\dimexpr
\coverpageleftmargin
-1in
\relax
\textwidth
=
\dimexpr
\paperwidth
-
\coverpageleftmargin
-
\coverpagerightmargin\relax
\textheight
=
\dimexpr
\paperheight
-
\coverpagetopmargin
-
\coverpagebottommargin\relax
\headheight
=0pt
\headsep
=0pt
\footskip
=
\baselineskip
\@
colht=
\textheight
\@
colroom=
\textheight
\vsize
=
\textheight
\columnwidth
=
\textwidth
\hsize
=
\columnwidth
\linewidth
=
\hsize
\else
\let\titlepage
@restore
\relax
\def\@
param
{
#1
}
\ifx\@
param
\@
empty
\ClassError
{
\myClassName
}{
\maketitle\space
with empty option
}{
\maketitle
[]
has been called with an empty parameter, this doesn't work. Use
\maketitle
instead.
}
\fi
\let\footnotesize\small
\let\footnoterule\relax
\let\footnote\thanks
\let\titlepage
@restore
\relax
\renewcommand*\thefootnote
{
\@
fnsymbol
\c
@footnote
}
%
\let\@
oldmakefnmark
\@
makefnmark
\renewcommand*
{
\@
makefnmark
}{
\rlap\@
oldmakefnmark
}
%
\next
@tdpage
\ifx\@
extratitle
\@
empty
\ifx\@
frontispiece
\@
empty
\ifx\@
frontispiece
\@
empty
\else
\mbox
{}
\fi
\else
\if
@twoside
\mbox
{}
\next
@tpage
\fi
\noindent\@
frontispiece
\next
@tdpage
\@
makeextratitle
\fi
\else
\noindent\@
extratitle
\ifx\@
frontispiece
\@
empty
\ifx\@
extratitle
\@
empty
\else\next
@tdpage
\fi
\else
\next
@tpage
\noindent\@
frontispiece
\fi
\@
makefrontispiece
\next
@tdpage
\fi
\global\@
topnum=
\z
@
\setparsizes
{
\z
@
}{
\z
@
}{
\z
@
\@
plus 1fil
}
\par
@updaterelative
% Customised: -----------------------------------------------------------
\IfFileExists
{
\HsHlogoPath
}{}{
\ClassError
{
\myClassName
}{
HsH-Logo.pdf not found!
}{
The HsH Logo is necasary for the titlepage! Try putting it next to your source file or use
\HsHlogoPath
to define the file location
...
...
@@ -275,152 +268,53 @@
\raisebox
{
0pt
}
[
\ht\strutbox
][
\dp\strutbox
]
{
\includeHsHlogohere
}
\end{minipage}
\raisebox
{
10pt
}{
\rule
{
\textwidth
}{
0.5pt
}}
% end Customised: --------------------------------------------------------
\null\vfill
\begin{center}
\null
\vskip
2em
%
\if\@
param c
\begin{center}
\fi
\if\@
param r
\begin{flushright}
\fi
\ifx\@
subject
\@
empty
\else
{
\usekomafont
{
subject
}{
\@
subject
\par
}}
%
\vskip
3
em
\vskip
1.5
em
\fi
{
\usekomafont
{
title
}{
\huge
\@
title
\par
}}
%
\vskip
1em
{
\ifx\@
subtitle
\@
empty
\else\usekomafont
{
subtitle
}{
\@
subtitle
\par
}
\fi
}
%
% Customised: -----------------------------------------------------------
\vskip
.5em
{
\ifx\@
subtitle
\@
empty
\else\usekomafont
{
subtitle
}
\@
subtitle
\par\fi
}
%
\vskip
4em
{
\if\@
author
\@
empty
\else\usekomafont
{
author
}{
\parbox
{
\dimexpr\linewidth
}{
\centering\@
author
}}
\fi
}
%
% end Customised: --------------------------------------------------------
\vskip
1.5em
{
\usekomafont
{
date
}{
\@
date
\par
}}
%
\vskip
\z
@
\@
plus3fill
%{\usekomafont{publishers}{\@publishers \par}}%
\vskip
3em
\end{center}
\par
\@
thanks
\global\let\@
thanks
\@
empty
\vfill\null
\if
@twoside
\@
tempswatrue
\expandafter\ifnum
\@
nameuse
{
scr@v@3.12
}
>
\scr
@compatibility
\relax
\else
\ifx\@
uppertitleback
\@
empty
\ifx\@
lowertitleback
\@
empty
\@
tempswafalse
\fi\fi
\fi
\if
@tempswa
\next
@tpage
\begin{minipage}
[t]
{
\textwidth
}
\@
uppertitleback
\end{minipage}
\par
\vfill
\begin{minipage}
[b]
{
\textwidth
}
\@
lowertitleback
\end{minipage}
\par
\@
thanks
\global\let\@
thanks
\@
empty
\fi
{
\ifx\@
matrikelnr
\@
empty
\if\@
author
\@
empty
\else\usekomafont
{
author
}{
\parbox
{
\dimexpr\linewidth
}{
\if\@
param c
\centering\fi
\if\@
param r
\raggedleft\fi
\@
author
}
}
\fi
\else
\ifx\@
uppertitleback
\@
empty
\else
\ClassWarning
{
\KOMAClassName
}{
%
non empty
\string\uppertitleback\space
ignored
by
\string\maketitle\MessageBreak
in `twoside=false' mode
%
}
%
\fi
\ifx\@
lowertitleback
\@
empty
\else
\ClassWarning
{
\KOMAClassName
}{
%
non empty
\string\lowertitleback\space
ignored
by
\string\maketitle\MessageBreak
in `twoside=false' mode
%
}
%
\fi
\if\@
author
\@
empty
\else
% sneeky comma needed after \@matrikelnr to deal with single item list
\foreach
\x
[count=
\i
,evaluate=
\i
as
\y
using
{{
\@
matrikelnr,
}
[
\i
-1]
}
] in
\@
author
{
\eaddtabtoks
{
\x
&
\y\protect\\
}}
\usekomafont
{
author
}{
\def\arraystretch
{
1.2
}
\if\@
param l
\hspace
{
-6pt
}
\begin{tabular}
{
l l
}
\printtabtoks
\end{tabular}
\fi
\if\@
param c
\begin{tabular}
{
l l
}
\printtabtoks
\end{tabular}
\fi
\if\@
param r
\begin{tabular}
{
r r
}
\printtabtoks
\end{tabular}
\hspace
{
-6pt
}
\fi
}
\fi
\ifx\@
dedication
\@
empty
\else
\next
@tdpage
\null\vfill
{
\centering\usekomafont
{
dedication
}{
\@
dedication
\par
}}
%
\vskip
\z
@
\@
plus3fill
\@
thanks
\global\let\@
thanks
\@
empty
\cleardoubleemptypage
\fi
}
%
\vskip
1em
%
{
\usekomafont
{
date
}{
\@
date
\par
}}
%
\vskip
1em
{
\if\@
prof
\@
empty
\else\usekomafont
{
author
}{
Professor(in)/Lehrbeauftragte(r):
\@
prof
}
\fi
}
%{\usekomafont{publishers}{\@publishers \par}}%
\ifx\@
dedication
\@
empty
\else
\vskip
2em
{
\usekomafont
{
dedication
}{
\@
dedication
\par
}}
%
\fi
\ifx\titlepage
@restore
\relax\else\clearpage\titlepage
@restore
\fi
\end{titlepage}
\else
\if\@
param c
\end{center}
\fi
\if\@
param r
\end{flushright}
\fi
\par
\@
tempcnta=
%
#1
%
\relax\ifnum\@
tempcnta=1
\else
\ClassWarning
{
\KOMAClassName
}{
%
Optional argument of
\string\maketitle\space
ignored
\MessageBreak
in `titlepage=false' mode
%
}
%
\fi
\ifx\@
uppertitleback
\@
empty
\else
\ClassWarning
{
\KOMAClassName
}{
%
non empty
\string\uppertitleback\space
ignored
by
\string\maketitle\MessageBreak
in `titlepage=false' mode
%
}
%
\fi
\ifx\@
lowertitleback
\@
empty
\else
\ClassWarning
{
\KOMAClassName
}{
%
non empty
\string\lowertitleback\space
ignored
by
\string\maketitle\MessageBreak
in `titlepage=false' mode
%
}
%
\fi
\begingroup
\let\titlepage
@restore
\relax
\renewcommand*\thefootnote
{
\@
fnsymbol
\c
@footnote
}
%
\let\@
oldmakefnmark
\@
makefnmark
\renewcommand*
{
\@
makefnmark
}{
\rlap\@
oldmakefnmark
}
%
\next
@tdpage
\if
@twocolumn
\ifnum
\col
@number=
\@
ne
\ifx\@
extratitle
\@
empty
\ifx\@
frontispiece
\@
empty
\else\if
@twoside
\mbox
{}
\fi\fi
\else
\@
makeextratitle
\fi
\ifx\@
frontispiece
\@
empty
\ifx\@
extratitle
\@
empty
\else\next
@tdpage
\fi
\else
\next
@tpage
\@
makefrontispiece
\next
@tdpage
\fi
\@
maketitle
\else
\ifx\@
extratitle
\@
empty
\ifx\@
frontispiece
\@
empty
\else\if
@twoside
\mbox
{}
\fi\fi
\else
\twocolumn
[\@makeextratitle]
%
\fi
\ifx\@
frontispiece
\@
empty
\ifx\@
extratitle
\@
empty
\else\next
@tdpage
\fi
\else
\next
@tpage
\twocolumn
[\@makefrontispiece]
%
\next
@tdpage
\fi
\twocolumn
[\@maketitle]
%
\fi
\else
\ifx\@
extratitle
\@
empty
\ifx\@
frontispiece
\@
empty
\else
\mbox
{}
\fi
\else
\@
makeextratitle
\fi
\ifx\@
frontispiece
\@
empty
\ifx\@
extratitle
\@
empty
\else\next
@tdpage
\fi
\else
\next
@tpage
\@
makefrontispiece
\next
@tdpage
\fi
\@
maketitle
\fi
\vskip
2em
\ifx\titlepagestyle\@
empty
\else\thispagestyle
{
\titlepagestyle
}
\fi
\@
thanks
\global\let\@
thanks
\@
empty
\endgroup
\fi
\setcounter
{
footnote
}{
0
}
%
\expandafter\ifnum
\csname
scr@v@3.12
\endcsname
>
\scr
@compatibility
\relax
\let\thanks\relax
...
...
@@ -439,6 +333,8 @@
\global\let\@
uppertitleback
\@
empty
\global\let\@
lowertitleback
\@
empty
\global\let\@
dedication
\@
empty
\global\let\@
matrikelnr
\@
empty
\global\let\@
prof
\@
empty
\global\let\author\relax
\global\let\title\relax
\global\let\extratitle\relax
...
...
@@ -449,52 +345,8 @@
\global\let\lowertitleback\relax
\global\let\dedication\relax
\global\let\date\relax
\global\let\matrikelnr\relax
\global\let\professor\relax
\fi
\global\let\and\relax
}
%
\renewcommand*
{
\@
maketitle
}{
%
\global\@
topnum=
\z
@
\setparsizes
{
\z
@
}{
\z
@
}{
\z
@
\@
plus 1fil
}
\par
@updaterelative
% Customised: -----------------------------------------------------------
\IfFileExists
{
\HsHlogoPath
}{}{
\ClassError
{
\myClassName
}{
HsH-Logo.pdf not found!
}{
The HsH Logo is necasary for the titlepage! Try putting it next to your source file or use
\HsHlogoPath
to define the file location
}
}
\vspace*
{
1cm
}
\begin{minipage}
[t]
{
\textwidth
}
%
\ifx\@
titlehead
\@
empty
\else
\usekomafont
{
titlehead
}{
\@
titlehead
}
%
\fi
\hfill
\raisebox
{
0pt
}
[
\ht\strutbox
][
\dp\strutbox
]
{
\includeHsHlogohere
}
\end{minipage}
\raisebox
{
10pt
}{
\rule
{
\textwidth
}{
0.5pt
}}
% end Customised: --------------------------------------------------------
\null
\vskip
2em
%
\begin{center}
%
\ifx\@
subject
\@
empty
\else
{
\usekomafont
{
subject
}{
\@
subject
\par
}}
%
\vskip
1.5em
\fi
{
\usekomafont
{
title
}{
\huge
\@
title
\par
}}
%
\vskip
.5em
{
\ifx\@
subtitle
\@
empty
\else\usekomafont
{
subtitle
}
\@
subtitle
\par\fi
}
%
% Customised: -----------------------------------------------------------
\vskip
4em
{
\if\@
author
\@
empty
\else\usekomafont
{
author
}{
\parbox
{
\dimexpr\linewidth
}{
\centering\@
author
}}
\fi
}
%
% end Customised: --------------------------------------------------------
\vskip
1em
%
{
\usekomafont
{
date
}{
\@
date
\par
}}
%
\vskip
\z
@
\@
plus 1em
%{\usekomafont{publishers}{\@publishers \par}}%
\ifx\@
dedication
\@
empty
\else
\vskip
2em
{
\usekomafont
{
dedication
}{
\@
dedication
\par
}}
%
\fi
\end{center}
%
\par
\vskip
2em
}
%
This diff is collapsed.
Click to expand it.
src/HsH-report.cls
+
161
−
271
View file @
13421e29
...
...
@@ -80,11 +80,18 @@
\if
@german
\RequirePackage
{
ziffer
}
\fi
% german dezimal numbers
% internal commands
\newtoks\@
tabtoks
\newcommand\addtabtoks
[1]
{
\global\@
tabtoks
\expandafter
{
\the\@
tabtoks#1
}}
\newcommand\eaddtabtoks
[1]
{
\edef\mytmp
{
#1
}
\expandafter\addtabtoks\expandafter
{
\mytmp
}}
%\newcommand*\resettabtoks{\global\@tabtoks{}}
\newcommand*\printtabtoks
{
\the\@
tabtoks
}
% config for title, header and footer
\newcommand*
{
\@
matrikelnr
}{}
%
\newcommand
{
\matrikelnr
}
[1]
{
\gdef\@
matrikelnr
{
#1
}}
%
\newcommand*
{
\@
prof
}{}
%
\newcommand
{
\prof
}
[1]
{
\gdef\@
prof
{
#1
}}
%
\newcommand
{
\prof
essor
}
[1]
{
\gdef\@
prof
{
#1
}}
%
\InputIfFileExists
{
personal.tex
}{
\ClassInfo
{
\myClassName
}{
personal.tex was found. Using it...
}
}{
...
...
@@ -98,7 +105,6 @@
\ihead
{
\@
title
}
\ofoot*
{
\pagemark
}
% typesetting indexes upright or standart
\def\subinrm
#1
{
\sb
{
\mathrm
{
#1
}}}
{
\catcode
`
\_
=13
\global\let
_
=
\subinrm
}
...
...
@@ -121,14 +127,6 @@
\renewcommand
{
\layercontentsmeasure
}{
\empty
}
% rulers when using draft disabled
\MakeOuterQuote
{
"
}
% easy quotationmarks
% internal stuff
\newtoks\@
tabtoks
\newcommand\addtabtoks
[1]
{
\global\@
tabtoks
\expandafter
{
\the\@
tabtoks#1
}}
\newcommand\eaddtabtoks
[1]
{
\edef\mytmp
{
#1
}
\expandafter\addtabtoks\expandafter
{
\mytmp
}}
%\newcommand*\resettabtoks{\global\@tabtoks{}}
\newcommand*\printtabtoks
{
\the\@
tabtoks
}
% custom commands
\newcommand
{
\includeHsHlogohere
}
[1][5cm]
{
\includegraphics
[width=#1,page=\HsHlogoPage]
{
\HsHlogoPath
}}
\providecommand
{
\abs
}
[1]
{
\ensuremath
{
\left\vert
#1
\right\vert
}}
% Makro for vertical lines around absolute values
...
...
@@ -165,8 +163,8 @@
\newcommand
{
\proniomeverb
}{
am
}
\foreach
\x
[count=
\i
] in
\@
author
{
\ifnum\i
>1
\gdef\pronomenf
{
We
}
\gdef\pronomen
{
we
}
\gdef\pronomenf
{
We
}
\gdef\genitiv
{
our
}
\gdef\proniomeverb
{
are
}
\else\fi
...
...
@@ -217,7 +215,7 @@
}
% reconfig Titlepage
\renewcommand\maketitle
[1][
1
]
{
%
\renewcommand\maketitle
[1][
l
]
{
%
\expandafter\ifnum
\csname
scr@v@3.12
\endcsname
>
\scr
@compatibility
\relax
\else
\def\and
{
%
...
...
@@ -226,11 +224,15 @@
\begin{tabular}
[t]
{
c
}
%
}
%
\fi
\if
@titlepage
\begin{titlepage}
\setcounter
{
page
}{
%
#1
%
}
%
% \setcounter{page}{%
% #1%
% }%
\def\@
param
{
#1
}
\ifx\@
param
\@
empty
\ClassError
{
\myClassName
}{
\maketitle\space
with empty option
}{
\maketitle
[]
has been called with an empty parameter, this doesn't work. Use
\maketitle
instead.
}
\fi
\if
@titlepageiscoverpage
\edef\titlepage
@restore
{
%
\noexpand\endgroup
...
...
@@ -282,7 +284,6 @@
\next
@tdpage
\fi
\setparsizes
{
\z
@
}{
\z
@
}{
\z
@
\@
plus 1fil
}
\par
@updaterelative
% Customised: -----------------------------------------------------------
\IfFileExists
{
\HsHlogoPath
}{}{
\ClassError
{
\myClassName
}{
HsH-Logo.pdf not found!
}{
The HsH Logo is necasary for the titlepage! Try putting it next to your source file or use
\HsHlogoPath
to define the file location
...
...
@@ -294,12 +295,12 @@
\usekomafont
{
titlehead
}{
\@
titlehead
}
%
\fi
\hfill
\raisebox
{
0pt
}
[
\ht\strutbox
][
\dp\strutbox
]
{
\includeHsHlogohere
}
\raisebox
{
0pt
}
[
\ht\strutbox
][
\dp\strutbox
]
{
\includeHsHlogohere
}
% image referrencepoint in lower left corner
\end{minipage}
\raisebox
{
10pt
}{
\rule
{
\textwidth
}{
0.5pt
}}
% end Customised: --------------------------------------------------------
\null\vfill
\begin{center}
\if\@
param c
\begin{center}
\fi
\if\@
param r
\begin{flushright}
\fi
\ifx\@
subject
\@
empty
\else
{
\usekomafont
{
subject
}{
\@
subject
\par
}}
%
\vskip
3em
...
...
@@ -307,15 +308,24 @@
{
\usekomafont
{
title
}{
\huge\@
title
\par
}}
%
\vskip
1em
{
\ifx\@
subtitle
\@
empty
\else\usekomafont
{
subtitle
}{
\@
subtitle
\par
}
\fi
}
%
% Customised: -----------------------------------------------------------
\vskip
4em
{
\ifx\@
matrikelnr
\@
empty
\if\@
author
\@
empty
\else\usekomafont
{
author
}{
\parbox
{
\dimexpr\linewidth
}{
\centering\@
author
}}
\fi
\if\@
author
\@
empty
\else\usekomafont
{
author
}{
\parbox
{
\dimexpr\linewidth
}{
\if\@
param c
\centering\fi
\if\@
param r
\raggedleft\fi
\@
author
}
}
\fi
\else
\if\@
author
\@
empty
\else
% sneeky comma needed after \@matrikelnr to deal with single item list
\foreach
\x
[count=
\i
,evaluate=
\i
as
\y
using
{{
\@
matrikelnr,
}
[
\i
-1]
}
] in
\@
author
{
\eaddtabtoks
{
\x
&
\y\protect\\
}}
\usekomafont
{
author
}{
\begin{tabular}
{
l l
}
\printtabtoks
\end{tabular}
}
\usekomafont
{
author
}{
\def\arraystretch
{
1.2
}
\if\@
param l
\hspace
{
-6pt
}
\begin{tabular}
{
l l
}
\printtabtoks
\end{tabular}
\fi
\if\@
param c
\begin{tabular}
{
l l
}
\printtabtoks
\end{tabular}
\fi
\if\@
param r
\begin{tabular}
{
r r
}
\printtabtoks
\end{tabular}
\hspace
{
-6pt
}
\fi
}
\fi
\fi
}
%
\vskip
1.5em
...
...
@@ -323,9 +333,10 @@
\vskip
\z
@
\@
plus3fill
{
\if\@
prof
\@
empty
\else\usekomafont
{
author
}{
Professor(in)/Lehrbeauftragte(r):
\@
prof
}
\fi
}
%{\usekomafont{publishers}{\@publishers \par}}%
% end Customised: --------------------------------------------------------
\vskip
3em
\end{center}
\par
\if\@
param c
\end{center}
\fi
\if\@
param r
\end{flushright}
\fi
\par
\@
thanks
\global\let\@
thanks
\@
empty
\vfill\null
\if
@twoside
...
...
@@ -373,85 +384,6 @@
\fi
\ifx\titlepage
@restore
\relax\else\clearpage\titlepage
@restore
\fi
\end{titlepage}
\else
\par
\@
tempcnta=
%
#1
%
\relax\ifnum\@
tempcnta=1
\else
\ClassWarning
{
\KOMAClassName
}{
%
Optional argument of
\string\maketitle\space
ignored
\MessageBreak
in `titlepage=false' mode
%
}
%
\fi
\ifx\@
uppertitleback
\@
empty
\else
\ClassWarning
{
\KOMAClassName
}{
%
non empty
\string\uppertitleback\space
ignored
by
\string\maketitle\MessageBreak
in `titlepage=false' mode
%
}
%
\fi
\ifx\@
lowertitleback
\@
empty
\else
\ClassWarning
{
\KOMAClassName
}{
%
non empty
\string\lowertitleback\space
ignored
by
\string\maketitle\MessageBreak
in `titlepage=false' mode
%
}
%
\fi
\begingroup
\let\titlepage
@restore
\relax
\renewcommand*\thefootnote
{
\@
fnsymbol
\c
@footnote
}
%
\let\@
oldmakefnmark
\@
makefnmark
\renewcommand*
{
\@
makefnmark
}{
\rlap\@
oldmakefnmark
}
%
\next
@tdpage
\if
@twocolumn
\ifnum
\col
@number=
\@
ne
\ifx\@
extratitle
\@
empty
\ifx\@
frontispiece
\@
empty
\else\if
@twoside
\mbox
{}
\fi\fi
\else
\@
makeextratitle
\fi
\ifx\@
frontispiece
\@
empty
\ifx\@
extratitle
\@
empty
\else\next
@tdpage
\fi
\else
\next
@tpage
\@
makefrontispiece
\next
@tdpage
\fi
\@
maketitle
\else
\ifx\@
extratitle
\@
empty
\ifx\@
frontispiece
\@
empty
\else\if
@twoside
\mbox
{}
\fi\fi
\else
\twocolumn
[\@makeextratitle]
%
\fi
\ifx\@
frontispiece
\@
empty
\ifx\@
extratitle
\@
empty
\else\next
@tdpage
\fi
\else
\next
@tpage
\twocolumn
[\@makefrontispiece]
%
\next
@tdpage
\fi
\twocolumn
[\@maketitle]
%
\fi
\else
\ifx\@
extratitle
\@
empty
\ifx\@
frontispiece
\@
empty
\else
\mbox
{}
\fi
\else
\@
makeextratitle
\fi
\ifx\@
frontispiece
\@
empty
\ifx\@
extratitle
\@
empty
\else\next
@tdpage
\fi
\else
\next
@tpage
\@
makefrontispiece
\next
@tdpage
\fi
\@
maketitle
\fi
\ifx\titlepagestyle\@
empty
\else\thispagestyle
{
\titlepagestyle
}
\fi
\@
thanks
\global\let\@
thanks
\@
empty
\endgroup
\fi
\setcounter
{
footnote
}{
0
}
%
\expandafter\ifnum
\csname
scr@v@3.12
\endcsname
>
\scr
@compatibility
\relax
\let\thanks\relax
...
...
@@ -470,6 +402,8 @@
\global\let\@
uppertitleback
\@
empty
\global\let\@
lowertitleback
\@
empty
\global\let\@
dedication
\@
empty
\global\let\@
matrikelnr
\@
empty
\global\let\@
prof
\@
empty
\global\let\author\relax
\global\let\title\relax
\global\let\extratitle\relax
...
...
@@ -480,52 +414,8 @@
\global\let\lowertitleback\relax
\global\let\dedication\relax
\global\let\date\relax
\global\let\matrikelnr\relax
\global\let\professor\relax
\fi
\global\let\and\relax
}
%
\renewcommand*
{
\@
maketitle
}{
%
\global\@
topnum=
\z
@
\setparsizes
{
\z
@
}{
\z
@
}{
\z
@
\@
plus 1fil
}
\par
@updaterelative
% Customised: -----------------------------------------------------------
\IfFileExists
{
\HsHlogoPath
}{}{
\ClassError
{
\myClassName
}{
HsH-Logo.pdf not found!
}{
The HsH Logo is necasary for the titlepage! Try putting it next to your source file or use
\HsHlogoPath
to define the file location
}
}
\vspace*
{
1cm
}
\begin{minipage}
[t]
{
\textwidth
}
%
\ifx\@
titlehead
\@
empty
\else
\usekomafont
{
titlehead
}{
\@
titlehead
}
%
\fi
\hfill
\raisebox
{
0pt
}
[
\ht\strutbox
][
\dp\strutbox
]
{
\includeHsHlogohere
}
\end{minipage}
\raisebox
{
10pt
}{
\rule
{
\textwidth
}{
0.5pt
}}
% end Customised: --------------------------------------------------------
\null
\vskip
2em
%
\begin{center}
%
\ifx\@
subject
\@
empty
\else
{
\usekomafont
{
subject
}{
\@
subject
\par
}}
%
\vskip
1.5em
\fi
{
\usekomafont
{
title
}{
\huge
\@
title
\par
}}
%
\vskip
.5em
{
\ifx\@
subtitle
\@
empty
\else\usekomafont
{
subtitle
}
\@
subtitle
\par\fi
}
%
% Customised: -----------------------------------------------------------
\vskip
4em
{
\if\@
author
\@
empty
\else\usekomafont
{
author
}{
\parbox
{
\dimexpr\linewidth
}{
\centering\@
author
}}
\fi
}
%
% end Customised: --------------------------------------------------------
\vskip
1em
%
{
\usekomafont
{
date
}{
\@
date
\par
}}
%
\vskip
\z
@
\@
plus 1em
%{\usekomafont{publishers}{\@publishers \par}}%
\ifx\@
dedication
\@
empty
\else
\vskip
2em
{
\usekomafont
{
dedication
}{
\@
dedication
\par
}}
%
\fi
\end{center}
%
\par
\vskip
2em
}
%
This diff is collapsed.
Click to expand it.
src/personal.tex
+
2
−
1
View file @
13421e29
% \extratitle{SCHMUTZTITEL}
\author
{
Max Mustermann,
Mira Musterfrau
...
...
@@ -11,4 +12,4 @@
\title
{
Title
}
\subtitle
{
Subtitle
}
\date
{
\today
}
\prof
{
Professor
}
\prof
essor
{
Professor
}
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