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

updated titlepage, alignment, matrikelnr, prof

parent 5ee730e7
Branches
Tags
No related merge requests found
...@@ -12,12 +12,10 @@ them with specifig configurations and presets as well as providing commonly need ...@@ -12,12 +12,10 @@ them with specifig configurations and presets as well as providing commonly need
HsH-book (planed) HsH-book (planed)
HsH-standalone HsH-standalone
**Version:** BETA 0.5, 18.03.2021 **Version:** 1.0, 20.03.2021
# TODO: # TODO:
custom commands for titalpage: - sollte die titelseite immer auf seite 1 sein? (Schmutztitel/extratitel)
- Profs
- ImatNRs
make Wiki make Wiki
\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} \NeedsTeXFormat{LaTeX2e}
\newcommand{\myClassName}{HsH-article} \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{\HsHlogoPath}{HSH-Logo.pdf}
\newcommand{\HsHlogoPage}{1} \newcommand{\HsHlogoPage}{1}
...@@ -80,7 +80,18 @@ ...@@ -80,7 +80,18 @@
\if@german\RequirePackage{ziffer}\fi % german dezimal numbers \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 % 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}{ \InputIfFileExists{personal.tex}{
\ClassInfo{\myClassName}{personal.tex was found. Using it...} \ClassInfo{\myClassName}{personal.tex was found. Using it...}
}{ }{
...@@ -93,7 +104,6 @@ ...@@ -93,7 +104,6 @@
\ihead{\@title} \ihead{\@title}
\ofoot*{\pagemark} \ofoot*{\pagemark}
% typesetting indexes upright or standart % typesetting indexes upright or standart
\def\subinrm#1{\sb{\mathrm{#1}}} \def\subinrm#1{\sb{\mathrm{#1}}}
{\catcode`\_=13 \global\let_=\subinrm} {\catcode`\_=13 \global\let_=\subinrm}
...@@ -195,7 +205,7 @@ ...@@ -195,7 +205,7 @@
} }
% reconfig Titlepage % reconfig Titlepage
\renewcommand\maketitle[1][1]{% \renewcommand\maketitle[1][c]{%
\expandafter\ifnum \csname scr@v@3.12\endcsname>\scr@compatibility\relax \expandafter\ifnum \csname scr@v@3.12\endcsname>\scr@compatibility\relax
\else \else
\def\and{% \def\and{%
...@@ -204,63 +214,46 @@ ...@@ -204,63 +214,46 @@
\begin{tabular}[t]{c}% \begin{tabular}[t]{c}%
}% }%
\fi \fi
\if@titlepage \par
\begin{titlepage} \ifx\@uppertitleback\@empty\else
\setcounter{page}{% \ClassWarning{\KOMAClassName}{%
#1% non empty \string\uppertitleback\space ignored
by \string\maketitle\MessageBreak
in `titlepage=false' mode%
}% }%
\if@titlepageiscoverpage \fi
\edef\titlepage@restore{% \ifx\@lowertitleback\@empty\else
\noexpand\endgroup \ClassWarning{\KOMAClassName}{%
\noexpand\global\noexpand\@colht\the\@colht non empty \string\lowertitleback\space ignored
\noexpand\global\noexpand\@colroom\the\@colroom by \string\maketitle\MessageBreak
\noexpand\global\vsize\the\vsize in `titlepage=false' mode%
\noexpand\global\noexpand\@titlepageiscoverpagefalse
\noexpand\let\noexpand\titlepage@restore\noexpand\relax
}% }%
\fi
\begingroup \begingroup
\topmargin=\dimexpr \coverpagetopmargin-1in\relax \def\@param{#1}
\oddsidemargin=\dimexpr \coverpageleftmargin-1in\relax \ifx\@param\@empty\ClassError{\myClassName}{\maketitle\space with empty option}{
\evensidemargin=\dimexpr \coverpageleftmargin-1in\relax \maketitle[] has been called with an empty parameter, this doesn't work. Use \maketitle instead.
\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
\fi \fi
\let\footnotesize\small \let\titlepage@restore\relax
\let\footnoterule\relax
\let\footnote\thanks
\renewcommand*\thefootnote{\@fnsymbol\c@footnote}% \renewcommand*\thefootnote{\@fnsymbol\c@footnote}%
\let\@oldmakefnmark\@makefnmark \let\@oldmakefnmark\@makefnmark
\renewcommand*{\@makefnmark}{\rlap\@oldmakefnmark}% \renewcommand*{\@makefnmark}{\rlap\@oldmakefnmark}%
\next@tdpage
\ifx\@extratitle\@empty \ifx\@extratitle\@empty
\ifx\@frontispiece\@empty \ifx\@frontispiece\@empty\else \mbox{}\fi
\else \else
\if@twoside\mbox{}\next@tpage\fi \@makeextratitle
\noindent\@frontispiece\next@tdpage
\fi \fi
\else
\noindent\@extratitle
\ifx\@frontispiece\@empty \ifx\@frontispiece\@empty
\ifx\@extratitle\@empty\else\next@tdpage\fi
\else \else
\next@tpage \next@tpage
\noindent\@frontispiece \@makefrontispiece
\fi
\next@tdpage \next@tdpage
\fi \fi
\global\@topnum=\z@
\setparsizes{\z@}{\z@}{\z@\@plus 1fil}\par@updaterelative \setparsizes{\z@}{\z@}{\z@\@plus 1fil}\par@updaterelative
% Customised: -----------------------------------------------------------
\IfFileExists{\HsHlogoPath}{}{ \IfFileExists{\HsHlogoPath}{}{
\ClassError{\myClassName}{HsH-Logo.pdf not found!}{ \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 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 @@ ...@@ -275,152 +268,53 @@
\raisebox{0pt}[\ht\strutbox][\dp\strutbox]{\includeHsHlogohere} \raisebox{0pt}[\ht\strutbox][\dp\strutbox]{\includeHsHlogohere}
\end{minipage} \end{minipage}
\raisebox{10pt}{\rule{\textwidth}{0.5pt}} \raisebox{10pt}{\rule{\textwidth}{0.5pt}}
% end Customised: -------------------------------------------------------- \null
\null\vfill \vskip 2em%
\begin{center} \if\@param c\begin{center}\fi
\if\@param r\begin{flushright}\fi
\ifx\@subject\@empty \else \ifx\@subject\@empty \else
{\usekomafont{subject}{\@subject \par}}% {\usekomafont{subject}{\@subject \par}}%
\vskip 3em \vskip 1.5em
\fi \fi
{\usekomafont{title}{\huge \@title \par}}% {\usekomafont{title}{\huge \@title \par}}%
\vskip 1em \vskip .5em
{\ifx\@subtitle\@empty\else\usekomafont{subtitle}{\@subtitle\par}\fi}% {\ifx\@subtitle\@empty\else\usekomafont{subtitle}\@subtitle\par\fi}%
% Customised: -----------------------------------------------------------
\vskip 4em \vskip 4em
{\if\@author\@empty\else\usekomafont{author}{\parbox{\dimexpr\linewidth}{\centering\@author}}\fi}% {\ifx\@matrikelnr\@empty
% end Customised: -------------------------------------------------------- \if\@author\@empty\else\usekomafont{author}{
\vskip 1.5em \parbox{\dimexpr\linewidth}{
{\usekomafont{date}{\@date \par}}% \if\@param c\centering\fi
\vskip \z@ \@plus3fill \if\@param r\raggedleft\fi
%{\usekomafont{publishers}{\@publishers \par}}% \@author
\vskip 3em }
\end{center}\par }\fi
\@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
\else \else
\ifx\@uppertitleback\@empty\else \if\@author\@empty\else
\ClassWarning{\KOMAClassName}{% % sneeky comma needed after \@matrikelnr to deal with single item list
non empty \string\uppertitleback\space ignored \foreach \x [count=\i,evaluate=\i as \y using {{\@matrikelnr,}[\i-1]}] in \@author {\eaddtabtoks{\x & \y\protect\\}}
by \string\maketitle\MessageBreak \usekomafont{author}{\def\arraystretch{1.2}
in `twoside=false' mode% \if\@param l\hspace{-6pt}\begin{tabular}{l l}\printtabtoks\end{tabular}\fi
}% \if\@param c\begin{tabular}{l l}\printtabtoks\end{tabular}\fi
\fi \if\@param r\begin{tabular}{r r}\printtabtoks\end{tabular}\hspace{-6pt}\fi
\ifx\@lowertitleback\@empty\else }
\ClassWarning{\KOMAClassName}{%
non empty \string\lowertitleback\space ignored
by \string\maketitle\MessageBreak
in `twoside=false' mode%
}%
\fi
\fi \fi
\ifx\@dedication\@empty \fi}%
\else \vskip 1em%
\next@tdpage\null\vfill {\usekomafont{date}{\@date \par}}%
{\centering\usekomafont{dedication}{\@dedication \par}}% \vskip 1em
\vskip \z@ \@plus3fill {\if\@prof\@empty\else\usekomafont{author}{Professor(in)/Lehrbeauftragte(r): \@prof}\fi}
\@thanks\global\let\@thanks\@empty %{\usekomafont{publishers}{\@publishers \par}}%
\cleardoubleemptypage \ifx\@dedication\@empty \else
\vskip 2em
{\usekomafont{dedication}{\@dedication \par}}%
\fi \fi
\ifx\titlepage@restore\relax\else\clearpage\titlepage@restore\fi \if\@param c\end{center}\fi
\end{titlepage} \if\@param r\end{flushright}\fi
\else
\par \par
\@tempcnta=% \vskip 2em
#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 \ifx\titlepagestyle\@empty\else\thispagestyle{\titlepagestyle}\fi
\@thanks\global\let\@thanks\@empty \@thanks\global\let\@thanks\@empty
\endgroup \endgroup
\fi
\setcounter{footnote}{0}% \setcounter{footnote}{0}%
\expandafter\ifnum \csname scr@v@3.12\endcsname>\scr@compatibility\relax \expandafter\ifnum \csname scr@v@3.12\endcsname>\scr@compatibility\relax
\let\thanks\relax \let\thanks\relax
...@@ -439,6 +333,8 @@ ...@@ -439,6 +333,8 @@
\global\let\@uppertitleback\@empty \global\let\@uppertitleback\@empty
\global\let\@lowertitleback\@empty \global\let\@lowertitleback\@empty
\global\let\@dedication\@empty \global\let\@dedication\@empty
\global\let\@matrikelnr\@empty
\global\let\@prof\@empty
\global\let\author\relax \global\let\author\relax
\global\let\title\relax \global\let\title\relax
\global\let\extratitle\relax \global\let\extratitle\relax
...@@ -449,52 +345,8 @@ ...@@ -449,52 +345,8 @@
\global\let\lowertitleback\relax \global\let\lowertitleback\relax
\global\let\dedication\relax \global\let\dedication\relax
\global\let\date\relax \global\let\date\relax
\global\let\matrikelnr\relax
\global\let\professor\relax
\fi \fi
\global\let\and\relax \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
}%
...@@ -80,11 +80,18 @@ ...@@ -80,11 +80,18 @@
\if@german\RequirePackage{ziffer}\fi % german dezimal numbers \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 % config for title, header and footer
\newcommand*{\@matrikelnr}{}% \newcommand*{\@matrikelnr}{}%
\newcommand{\matrikelnr}[1]{\gdef\@matrikelnr{#1}}% \newcommand{\matrikelnr}[1]{\gdef\@matrikelnr{#1}}%
\newcommand*{\@prof}{}% \newcommand*{\@prof}{}%
\newcommand{\prof}[1]{\gdef\@prof{#1}}% \newcommand{\professor}[1]{\gdef\@prof{#1}}%
\InputIfFileExists{personal.tex}{ \InputIfFileExists{personal.tex}{
\ClassInfo{\myClassName}{personal.tex was found. Using it...} \ClassInfo{\myClassName}{personal.tex was found. Using it...}
}{ }{
...@@ -98,7 +105,6 @@ ...@@ -98,7 +105,6 @@
\ihead{\@title} \ihead{\@title}
\ofoot*{\pagemark} \ofoot*{\pagemark}
% typesetting indexes upright or standart % typesetting indexes upright or standart
\def\subinrm#1{\sb{\mathrm{#1}}} \def\subinrm#1{\sb{\mathrm{#1}}}
{\catcode`\_=13 \global\let_=\subinrm} {\catcode`\_=13 \global\let_=\subinrm}
...@@ -121,14 +127,6 @@ ...@@ -121,14 +127,6 @@
\renewcommand{\layercontentsmeasure}{\empty} % rulers when using draft disabled \renewcommand{\layercontentsmeasure}{\empty} % rulers when using draft disabled
\MakeOuterQuote{"} % easy quotationmarks \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 % custom commands
\newcommand{\includeHsHlogohere}[1][5cm]{\includegraphics[width=#1,page=\HsHlogoPage]{\HsHlogoPath}} \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 \providecommand{\abs}[1]{\ensuremath{\left\vert#1\right\vert}} % Makro for vertical lines around absolute values
...@@ -165,8 +163,8 @@ ...@@ -165,8 +163,8 @@
\newcommand{\proniomeverb}{am} \newcommand{\proniomeverb}{am}
\foreach \x [count=\i] in \@author{ \foreach \x [count=\i] in \@author{
\ifnum\i>1 \ifnum\i>1
\gdef\pronomenf{We}
\gdef\pronomen{we} \gdef\pronomen{we}
\gdef\pronomenf{We}
\gdef\genitiv{our} \gdef\genitiv{our}
\gdef\proniomeverb{are} \gdef\proniomeverb{are}
\else\fi \else\fi
...@@ -217,7 +215,7 @@ ...@@ -217,7 +215,7 @@
} }
% reconfig Titlepage % reconfig Titlepage
\renewcommand\maketitle[1][1]{% \renewcommand\maketitle[1][l]{%
\expandafter\ifnum \csname scr@v@3.12\endcsname>\scr@compatibility\relax \expandafter\ifnum \csname scr@v@3.12\endcsname>\scr@compatibility\relax
\else \else
\def\and{% \def\and{%
...@@ -226,11 +224,15 @@ ...@@ -226,11 +224,15 @@
\begin{tabular}[t]{c}% \begin{tabular}[t]{c}%
}% }%
\fi \fi
\if@titlepage
\begin{titlepage} \begin{titlepage}
\setcounter{page}{% % \setcounter{page}{%
#1% % #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 \if@titlepageiscoverpage
\edef\titlepage@restore{% \edef\titlepage@restore{%
\noexpand\endgroup \noexpand\endgroup
...@@ -282,7 +284,6 @@ ...@@ -282,7 +284,6 @@
\next@tdpage \next@tdpage
\fi \fi
\setparsizes{\z@}{\z@}{\z@\@plus 1fil}\par@updaterelative \setparsizes{\z@}{\z@}{\z@\@plus 1fil}\par@updaterelative
% Customised: -----------------------------------------------------------
\IfFileExists{\HsHlogoPath}{}{ \IfFileExists{\HsHlogoPath}{}{
\ClassError{\myClassName}{HsH-Logo.pdf not found!}{ \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 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 @@ ...@@ -294,12 +295,12 @@
\usekomafont{titlehead}{\@titlehead}% \usekomafont{titlehead}{\@titlehead}%
\fi \fi
\hfill \hfill
\raisebox{0pt}[\ht\strutbox][\dp\strutbox]{\includeHsHlogohere} \raisebox{0pt}[\ht\strutbox][\dp\strutbox]{\includeHsHlogohere} % image referrencepoint in lower left corner
\end{minipage} \end{minipage}
\raisebox{10pt}{\rule{\textwidth}{0.5pt}} \raisebox{10pt}{\rule{\textwidth}{0.5pt}}
% end Customised: --------------------------------------------------------
\null\vfill \null\vfill
\begin{center} \if\@param c\begin{center}\fi
\if\@param r\begin{flushright}\fi
\ifx\@subject\@empty \else \ifx\@subject\@empty \else
{\usekomafont{subject}{\@subject\par}}% {\usekomafont{subject}{\@subject\par}}%
\vskip 3em \vskip 3em
...@@ -307,15 +308,24 @@ ...@@ -307,15 +308,24 @@
{\usekomafont{title}{\huge\@title\par}}% {\usekomafont{title}{\huge\@title\par}}%
\vskip 1em \vskip 1em
{\ifx\@subtitle\@empty\else\usekomafont{subtitle}{\@subtitle\par}\fi}% {\ifx\@subtitle\@empty\else\usekomafont{subtitle}{\@subtitle\par}\fi}%
% Customised: -----------------------------------------------------------
\vskip 4em \vskip 4em
{\ifx\@matrikelnr\@empty {\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 \else
\if\@author\@empty\else \if\@author\@empty\else
% sneeky comma needed after \@matrikelnr to deal with single item list % 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\\}} \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
\fi}% \fi}%
\vskip 1.5em \vskip 1.5em
...@@ -323,9 +333,10 @@ ...@@ -323,9 +333,10 @@
\vskip \z@ \@plus3fill \vskip \z@ \@plus3fill
{\if\@prof\@empty\else\usekomafont{author}{Professor(in)/Lehrbeauftragte(r): \@prof}\fi} {\if\@prof\@empty\else\usekomafont{author}{Professor(in)/Lehrbeauftragte(r): \@prof}\fi}
%{\usekomafont{publishers}{\@publishers \par}}% %{\usekomafont{publishers}{\@publishers \par}}%
% end Customised: --------------------------------------------------------
\vskip 3em \vskip 3em
\end{center}\par \if\@param c\end{center}\fi
\if\@param r\end{flushright}\fi
\par
\@thanks\global\let\@thanks\@empty \@thanks\global\let\@thanks\@empty
\vfill\null \vfill\null
\if@twoside \if@twoside
...@@ -373,85 +384,6 @@ ...@@ -373,85 +384,6 @@
\fi \fi
\ifx\titlepage@restore\relax\else\clearpage\titlepage@restore\fi \ifx\titlepage@restore\relax\else\clearpage\titlepage@restore\fi
\end{titlepage} \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}% \setcounter{footnote}{0}%
\expandafter\ifnum \csname scr@v@3.12\endcsname>\scr@compatibility\relax \expandafter\ifnum \csname scr@v@3.12\endcsname>\scr@compatibility\relax
\let\thanks\relax \let\thanks\relax
...@@ -470,6 +402,8 @@ ...@@ -470,6 +402,8 @@
\global\let\@uppertitleback\@empty \global\let\@uppertitleback\@empty
\global\let\@lowertitleback\@empty \global\let\@lowertitleback\@empty
\global\let\@dedication\@empty \global\let\@dedication\@empty
\global\let\@matrikelnr\@empty
\global\let\@prof\@empty
\global\let\author\relax \global\let\author\relax
\global\let\title\relax \global\let\title\relax
\global\let\extratitle\relax \global\let\extratitle\relax
...@@ -480,52 +414,8 @@ ...@@ -480,52 +414,8 @@
\global\let\lowertitleback\relax \global\let\lowertitleback\relax
\global\let\dedication\relax \global\let\dedication\relax
\global\let\date\relax \global\let\date\relax
\global\let\matrikelnr\relax
\global\let\professor\relax
\fi \fi
\global\let\and\relax \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
}%
% \extratitle{SCHMUTZTITEL}
\author{ \author{
Max Mustermann, Max Mustermann,
Mira Musterfrau Mira Musterfrau
...@@ -11,4 +12,4 @@ ...@@ -11,4 +12,4 @@
\title{Title} \title{Title}
\subtitle{Subtitle} \subtitle{Subtitle}
\date{\today} \date{\today}
\prof{Professor} \professor{Professor}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment