From cc8e391a2882b84d2a3331c041f1e2801985e7e1 Mon Sep 17 00:00:00 2001 From: Valentin Gehrke Date: Fri, 14 Jul 2017 16:31:17 +0200 Subject: [PATCH] Latex-spielerei --- latex-spielerei/customtitle.sty | 12 +++--------- latex-spielerei/test.tex | 24 +++++++++++++++++------- 2 files changed, 20 insertions(+), 16 deletions(-) diff --git a/latex-spielerei/customtitle.sty b/latex-spielerei/customtitle.sty index f28b1bb..f3edd4b 100644 --- a/latex-spielerei/customtitle.sty +++ b/latex-spielerei/customtitle.sty @@ -1,12 +1,6 @@ \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}} @@ -19,9 +13,9 @@ \begin{center}% \hrule\vspace{0.4cm}% {\Large\textbf{\theheading}\par}% - {\linespread{0.8}\Large\thetopic\par}% + {\linespread{0.8}\Large\makeatletter\@title\makeatother\par}% \vspace{0.2cm}% - {\thewriter}% + {\makeatletter\@author\makeatother}% \vspace{0.6cm}\hrule% \end{center}% \vfill{}% @@ -35,5 +29,5 @@ \therightbox% \end{flushright}% \end{minipage}% - \end{titlepage}\ignorespaces} + \end{titlepage}\ignorespaces\makeatletter\gdef\@title\empty\gdef\@author\empty\makeatother} diff --git a/latex-spielerei/test.tex b/latex-spielerei/test.tex index c1a98bb..981a6f4 100644 --- a/latex-spielerei/test.tex +++ b/latex-spielerei/test.tex @@ -1,21 +1,25 @@ -\documentclass[titlepage,a5paper,12pt]{scrartcl} +\documentclass[titlepage,a4paper,12pt]{article} \usepackage[ngerman]{babel} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{customtitle} +%\newcounter{RegelCounter} +%\setcounter{RegelCounter}{1} +%\newcommand{\regel}[1]{\par\noindent\textbf{Regel \theRegelCounter: } #1\stepcounter{RegelCounter}\par} + \newcounter{RegelCounter} \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 \newcommand{\thx}[2]{\textbf{#1}\\#2\par} % Info on titlepage \heading{Studienarbeit} -\topic{Trace-basierte Verifikation der FPGA-Implementierung eines MIPS-Prozessors} -\writer{Valentin Gehrke} +\title{Trace-basierte Verifikation der FPGA-Implementierung eines MIPS-Prozessors} +\author{Valentin Gehrke} \leftbox{ \thx{Betreuer}{Martin Zabel} } @@ -37,9 +41,15 @@ \subsection{Regeln} - \regel{Kein Gummi} - \regel{Baum} - \regel{Geilo} + \begin{regel} + Kein Gummi + \end{regel} + \begin{regel} + Baum + \end{regel} + \begin{regel} + K"ase + \end{regel} \subsection{Was ist ein A-Schlauch?}