Latex spielerei
This commit is contained in:
parent
f72c297c95
commit
cac5fec5ba
2 changed files with 96 additions and 0 deletions
39
latex-spielerei/customtitle.sty
Normal file
39
latex-spielerei/customtitle.sty
Normal file
|
@ -0,0 +1,39 @@
|
||||||
|
\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}
|
||||||
|
|
57
latex-spielerei/test.tex
Normal file
57
latex-spielerei/test.tex
Normal file
|
@ -0,0 +1,57 @@
|
||||||
|
\documentclass[titlepage,a5paper,12pt]{scrartcl}
|
||||||
|
|
||||||
|
\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}
|
||||||
|
|
||||||
|
% 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}
|
||||||
|
\leftbox{
|
||||||
|
\thx{Betreuer}{Martin Zabel}
|
||||||
|
}
|
||||||
|
\rightbox{
|
||||||
|
\thx{Betreuender HSL}{Prof.\ Dr.\ Rainer Spallek}
|
||||||
|
}
|
||||||
|
|
||||||
|
\begin{document}
|
||||||
|
|
||||||
|
%Title page
|
||||||
|
\makecustomtitle
|
||||||
|
|
||||||
|
\tableofcontents
|
||||||
|
|
||||||
|
\section{Einführung}
|
||||||
|
\subsection{Was ist Gummi?}
|
||||||
|
|
||||||
|
Gummi halt...
|
||||||
|
|
||||||
|
\subsection{Regeln}
|
||||||
|
|
||||||
|
\regel{Kein Gummi}
|
||||||
|
\regel{Baum}
|
||||||
|
\regel{Geilo}
|
||||||
|
|
||||||
|
\subsection{Was ist ein A-Schlauch?}
|
||||||
|
|
||||||
|
Eine genormte Feuerwehrschlauchgröße.
|
||||||
|
|
||||||
|
\subsection{Was ist CUDA und OpenCL?}
|
||||||
|
|
||||||
|
So was mit Grafikkarten, weiß auch nicht. Frag Wikipedia
|
||||||
|
|
||||||
|
\section{Kombination}
|
||||||
|
|
||||||
|
\subsection{Was kann man jetzt mit all dem machen?}
|
||||||
|
|
||||||
|
Nix... glaub ich...
|
||||||
|
\end{document}
|
Loading…
Reference in a new issue