Latex-spielerei

This commit is contained in:
madmaurice 2017-07-14 16:31:17 +02:00
parent e6720ad3df
commit cc8e391a28
2 changed files with 20 additions and 16 deletions

View file

@ -1,12 +1,6 @@
\newcommand{\theheading}{} \newcommand{\theheading}{}
\newcommand{\heading}[1]{\gdef\theheading{#1}} \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{\theleftbox}{}
\newcommand{\leftbox}[1]{\gdef\theleftbox{#1}} \newcommand{\leftbox}[1]{\gdef\theleftbox{#1}}
@ -19,9 +13,9 @@
\begin{center}% \begin{center}%
\hrule\vspace{0.4cm}% \hrule\vspace{0.4cm}%
{\Large\textbf{\theheading}\par}% {\Large\textbf{\theheading}\par}%
{\linespread{0.8}\Large\thetopic\par}% {\linespread{0.8}\Large\makeatletter\@title\makeatother\par}%
\vspace{0.2cm}% \vspace{0.2cm}%
{\thewriter}% {\makeatletter\@author\makeatother}%
\vspace{0.6cm}\hrule% \vspace{0.6cm}\hrule%
\end{center}% \end{center}%
\vfill{}% \vfill{}%
@ -35,5 +29,5 @@
\therightbox% \therightbox%
\end{flushright}% \end{flushright}%
\end{minipage}% \end{minipage}%
\end{titlepage}\ignorespaces} \end{titlepage}\ignorespaces\makeatletter\gdef\@title\empty\gdef\@author\empty\makeatother}

View file

@ -1,21 +1,25 @@
\documentclass[titlepage,a5paper,12pt]{scrartcl} \documentclass[titlepage,a4paper,12pt]{article}
\usepackage[ngerman]{babel} \usepackage[ngerman]{babel}
\usepackage[utf8]{inputenc} \usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc} \usepackage[T1]{fontenc}
\usepackage{customtitle} \usepackage{customtitle}
%\newcounter{RegelCounter}
%\setcounter{RegelCounter}{1}
%\newcommand{\regel}[1]{\par\noindent\textbf{Regel \theRegelCounter: } #1\stepcounter{RegelCounter}\par}
\newcounter{RegelCounter} \newcounter{RegelCounter}
\setcounter{RegelCounter}{1} \setcounter{RegelCounter}{1}
\newcommand{\regel}[1]{\par\noindent\textbf{Regel \theRegelCounter: } #1\stepcounter{RegelCounter}\par} \newenvironment{regel}{\noindent{\large\textbf{Regel \theRegelCounter:}\\}}{\stepcounter{RegelCounter}\par}
% For title page % For title page
\newcommand{\thx}[2]{\textbf{#1}\\#2\par} \newcommand{\thx}[2]{\textbf{#1}\\#2\par}
% Info on titlepage % Info on titlepage
\heading{Studienarbeit} \heading{Studienarbeit}
\topic{Trace-basierte Verifikation der FPGA-Implementierung eines MIPS-Prozessors} \title{Trace-basierte Verifikation der FPGA-Implementierung eines MIPS-Prozessors}
\writer{Valentin Gehrke} \author{Valentin Gehrke}
\leftbox{ \leftbox{
\thx{Betreuer}{Martin Zabel} \thx{Betreuer}{Martin Zabel}
} }
@ -37,9 +41,15 @@
\subsection{Regeln} \subsection{Regeln}
\regel{Kein Gummi} \begin{regel}
\regel{Baum} Kein Gummi
\regel{Geilo} \end{regel}
\begin{regel}
Baum
\end{regel}
\begin{regel}
K"ase
\end{regel}
\subsection{Was ist ein A-Schlauch?} \subsection{Was ist ein A-Schlauch?}