one-file-projects/latex-spielerei/customtitle.sty
2016-12-18 15:28:12 +01:00

39 lines
1 KiB
TeX

\newcommand{\theheading}{}
\newcommand{\heading}[1]{\gdef\theheading{#1}}
\newcommand{\thetopic}{}
\newcommand{\topic}[1]{\gdef\thetopic{#1}}
\newcommand{\thewriter}{}
\newcommand{\writer}[1]{\gdef\thewriter{#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}%
{\linespread{0.8}\Large\thetopic\par}%
\vspace{0.2cm}%
{\thewriter}%
\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}%
\end{titlepage}\ignorespaces}