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

included imatNR and prof in titlepage

parent 46936ad5
No related branches found
No related tags found
No related merge requests found
......@@ -81,6 +81,10 @@
% config for title, header and footer
\newcommand*{\@matrikelnr}{}%
\newcommand{\matrikelnr}[1]{\gdef\@matrikelnr{#1}}%
\newcommand*{\@prof}{}%
\newcommand{\prof}[1]{\gdef\@prof{#1}}%
\InputIfFileExists{personal.tex}{
\ClassInfo{\myClassName}{personal.tex was found. Using it...}
}{
......@@ -117,6 +121,14 @@
\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}{\includegraphics[width=5cm,page=\HsHlogoPage]{\HsHlogoPath}}
\providecommand{\abs}[1]{\ensuremath{\left\vert#1\right\vert}} % Makro for vertical lines around absolute values
......@@ -297,12 +309,20 @@
{\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: --------------------------------------------------------
{\ifx\@matrikelnr\@empty
\if\@author\@empty\else\usekomafont{author}{\parbox{\dimexpr\linewidth}{\centering\@author}}\fi
\else
\if\@author\@empty\else
\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}}
\fi
\fi}%
\vskip 1.5em
{\usekomafont{date}{\@date \par}}%
\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
\@thanks\global\let\@thanks\@empty
......
......@@ -2,8 +2,13 @@
Max Mustermann,
Mira Musterfrau
}
\matrikelnr{
1234567,
9876543
}
\titlehead{titlehead}
\subject{Subject}
\title{Title}
\subtitle{Subtitle}
\date{\today}
\prof{Professor}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment