one-file-projects/latex-spielerei/customtitle.sty

34 lines
1 KiB
Text
Raw Normal View History

2016-12-18 15:28:12 +01:00
\newcommand{\theheading}{}
\newcommand{\heading}[1]{\gdef\theheading{#1}}
\newcommand{\theleftbox}{}
\newcommand{\leftbox}[1]{\gdef\theleftbox{#1}}
\newcommand{\therightbox}{}
\newcommand{\rightbox}[1]{\gdef\therightbox{#1}}
\newcommand{\makecustomtitle}{%
\begin{titlepage}%
\vspace{1cm}%
\begin{center}%
\hrule\vspace{0.4cm}%
{\Large\textbf{\theheading}\par}%
2017-07-14 16:31:17 +02:00
{\linespread{0.8}\Large\makeatletter\@title\makeatother\par}%
2016-12-18 15:28:12 +01:00
\vspace{0.2cm}%
2017-07-14 16:31:17 +02:00
{\makeatletter\@author\makeatother}%
2016-12-18 15:28:12 +01:00
\vspace{0.6cm}\hrule%
\end{center}%
\vfill{}%
\begin{minipage}[t]{0.5\textwidth}%
\begin{flushleft}%
\theleftbox%
\end{flushleft}%
\end{minipage}%
\begin{minipage}[t]{0.5\textwidth}%
\begin{flushright}%
\therightbox%
\end{flushright}%
\end{minipage}%
2017-07-14 16:31:17 +02:00
\end{titlepage}\ignorespaces\makeatletter\gdef\@title\empty\gdef\@author\empty\makeatother}
2016-12-18 15:28:12 +01:00