Verified Commit 653b2e3a authored by Sascha Brauer's avatar Sascha Brauer
Browse files

Seminar (changed to be more similar to the proposal - because: why was this different?)

parent 9581ed77
# Schnellstart
Für deutsche Arbeiten in `seminar_name.tex` Dokumentenklasse zu `\documentclass[german]{cuktseminar}` ändern.
In `cfg.tex` folgendes eintragen:
* Titel
* Autor
Ändern Sie den Dateinamen von `seminar_name.tex` so das er Ihre Arbeit eindeutig identifiziert (bitte keine Umlaute oder Leerzeichen).
Komplieren Sie das eben umbenannte Hauptfile mit pdflatex oder latexmk.
# Quick Start
In `cfg.tex` you will want to enter:
* Title
* Author
Change the filename of `seminar_name.tex` in a way that uniquely identifies your seminar paper (no mutated vowels or whitespace characters).
Compile the renamed main file with pdflatex or latexmk.
# Format
Die folgenden Theorem Umgebungen stehen standardmäßig zur Verfügung:
The following theorem environments are available by default:
* definition
* lemma
* proposition
* theorem
* corollary
* example
* claim
* remark
* problem
* observation
Im deutschen werden sowohl theorem als auch proposition als **Satz** gestyled.
%%%
% Packages
% Graphical Libs
\usepackage{graphicx}
\usepackage{url}
%%%
% Defs
% Math Defs
\renewcommand{\epsilon}{\varepsilon}
\DeclareMathOperator*{\argmax}{arg\,max}
\DeclareMathOperator*{\argmin}{arg\,min}
\newcommand*{\bfrac}[2]{\genfrac{\lbrace}{\rbrace}{0pt}{}{#1}{#2}} %Fraction withour bar
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{cukseminar}
\newif\ifgerman\germanfalse
\DeclareOption{german}{\germantrue}
\ProcessOptions
\LoadClass[a4paper, 11pt, oneside, numbers=noenddot, bibliography=totoc]{scrartcl}
\ifgerman
\RequirePackage[ngerman]{babel}
\else
\RequirePackage[english]{babel}
\fi
\RequirePackage[T1]{fontenc}
\RequirePackage[utf8]{inputenc}
\RequirePackage{lmodern}
% Some older versions of MiKTeX are still missing the scrlayer-scrpage package ... -.-'
\IfFileExists{scrlayer-scrpage.sty}
{
\RequirePackage[automark,headsepline]{scrlayer-scrpage}
}{
\RequirePackage{fancyhdr}
}
% Header and footer Layout depending on the loaded package
\IfFileExists{scrlayer-scrpage.sty}
{
\pagestyle{scrheadings}
\clearpairofpagestyles
\cfoot[\pagemark]{\pagemark}
\chead{\headmark}
}{
\pagestyle{fancy}
\lhead[]{}
\rhead[]{}
\chead[]{\rightmark}
\cfoot{\thepage}
\fancypagestyle{plain}{
\fancyhf{}
\cfoot{\thepage}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}
}
}
\renewcommand{\sectionmark}[1]{\markright{\textsc{#1}}}
\renewcommand{\subsectionmark}[1]{\markright{\textsl{\thesubsection~#1}}}
% Essential math packages
\RequirePackage{amsmath,amsfonts,amssymb,amsthm,mathtools}
% Theorem style
\newtheoremstyle{thmstyle}
{3pt}{3pt}{\itshape}{}{\bfseries}{}{.5em}
{\thmname{#1}\thmnumber{ #2}\thmnote{ \textmd{(#3)}}}
\theoremstyle{thmstyle}
% Theorem environments
\newtheorem{definition}{Definition}[section]
\newtheorem{lemma}[definition]{Lemma}
\newtheorem{problem}[definition]{Problem}
\ifgerman
\newtheorem{proposition}[definition]{Satz}
\newtheorem{theorem}[definition]{Satz}
\newtheorem{corollary}[definition]{Korollar}
\newtheorem{example}[definition]{Beispiel}
\newtheorem{claim}[definition]{Behauptung}
\newtheorem{remark}[definition]{Bemerkung}
\newtheorem{observation}[definition]{Beobachtung}
\else
\newtheorem{proposition}[definition]{Proposition}
\newtheorem{theorem}[definition]{Theorem}
\newtheorem{corollary}[definition]{Corollary}
\newtheorem{example}[definition]{Example}
\newtheorem{claim}[definition]{Claim}
\newtheorem{remark}[definition]{Remark}
\newtheorem{observation}[definition]{Observation}
\fi
% Bibliography File
% Insert your References here!
@article{testref,
author = {Eti, Y.},
title = {{On the Importance of Correct Stirring}},
journal = {{International Journal of Cookie Theory}},
year = {2014},
volume = {13},
number = {1},
pages = {1--247}
}
\ No newline at end of file
\documentclass{cukseminar} % extend to [german] if required
%%%
% Title & Author
\def\Title{Titel} % Hier Titel eintragen / Enter your title here
\def\Author{Autor} % Hier Namen eintrage / Enter your name here
%%%
\input{cfg.tex}
\begin{document}
\bibliographystyle{plain}
\input{title.tex}
% Input your content below!
\section{Section 1}
% You probably want to remove this for the final version
\nocite{*}
%%
\bibliography{references}
\appendix
\end{document}
\thispagestyle{plain}
\includegraphics[width=7cm]{figures/upb_logo}
\bigskip
\hrule width \hsize height 2pt \kern 1mm \hrule width \hsize
\vspace*{6pt}
\begin{center}
\Large\textbf{\Title}
\end{center}
\noindent
\begin{minipage}{6cm}
\large{
\ifgerman
Seminararbeit
\else
Seminar Essay
\fi
}
\ifgerman
\large von
\else
\large by
\fi
\Author
\end{minipage}
\hfill
\begin{minipage}{6cm}
\begin{minipage}{4.4cm}
\flushright
\normalsize Arbeitsgruppe
Codes und Kryptographie
\end{minipage}
\begin{minipage}{1.5cm}
\includegraphics[width=1.5cm]{figures/cuk_logo}
\end{minipage}
\end{minipage}
\bigskip
\hrule
\tableofcontents
\bigskip
\hrule width \hsize \kern 1mm \hrule width \hsize height 2pt
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment