Verified Commit 4db6f02f authored by Adrian C. Hinrichs's avatar Adrian C. Hinrichs
Browse files

Add HomeworkTemplate, change gitignore

parent 2ce8084f
......@@ -178,3 +178,46 @@ TSWLatexianTemp*
# KBibTeX
*~[0-9]*
# -*- mode: gitignore; -*-
*~
\#*\#
/.emacs.desktop
/.emacs.desktop.lock
*.elc
auto-save-list
tramp
.\#*
# Org-mode
.org-id-locations
*_archive
# flymake-mode
*_flymake.*
# eshell files
/eshell/history
/eshell/lastdir
# elpa packages
/elpa/
# reftex files
*.rel
# AUCTeX auto folder
/auto/
# cask packages
.cask/
dist/
# Flycheck
flycheck_*.el
# server auth directory
/server/
# projectiles files
.projectile
% Assignment.sty
% LaTeX-Template for Assignments, specifically for Computer Science studies.
% Based uppon this Guide: http://tutex.tug.org/pracjourn/2005-4/hefferon/hefferon.pdf by Jim Hefferon
% --- Class structure: identification part
% ---
\NeedsTeXFormat{LaTeX2e}[1994/06/01]
\ProvidesClass{HomeworkAssignment}[2016/10/23]
\DeclareOption*{\InputIfFileExists{\CurrentOption.min}{}{
%
\PassOptionsToClass{\CurrentOption}{article}}}
\ProcessOptions \relax
\LoadClass{article}
\RequirePackage{fancyhdr}
\fancypagestyle{firstpage}{
%
\fancyhf{}
% clear all six fields
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}
\fancyfoot[RE,LO]{\thepage}
}
\fancypagestyle{followingpage}{
%
\fancyhf{}
% clear all six fields
\fancyhead[RE,LO]{\@author}
\fancyhead[LE,RO]{\@kurs\\ Abgabe: \@abgabe}
\fancyfoot[RE,LO]{\thepage}
\renewcommand{\headrulewidth}{0.7pt}
\renewcommand{\footrulewidth}{0pt}
}
\pagestyle{followingpage}
\AtBeginDocument{\thispagestyle{firstpage}}
%\LoadClass[10pt,a4paper]{article}
\def\@kurs{Kein Kurs}
\newcommand{\kurs}[1]{\def\@kurs{#1}}
\def\@abgabe{\today}
\newcommand{\abgabe}[1]{\def\@abgabe{#1}}
\renewcommand{\maketitle} {
\begin{centering}
\Huge{\textbf{\@kurs}}\\
\vspace{.5cm}
{\hrule height 2pt}
\vspace{.5cm}
\large
Datum: \@date\\
Abgabe: \@abgabe\\
\vspace{.5cm}
\hrule
\vspace{.25cm}
\normalsize{\@author}\\
\vspace{.25cm}
\hrule
\vspace{.25cm}
\normalsize
\end{centering}
}
\endinput
%ToDo: Besipieldokument erstellen und ausgabe ansehehn
\ No newline at end of file
\documentclass[twoside]{HomeworkAssignment}
\usepackage{lipsum}
\author{Adrian C. Hinrichs Matr. 367129}
\date{\today}
\begin{document}
\maketitle
\lipsum[1]
\lipsum[2]
\lipsum[3]
\lipsum[4]
\lipsum[5]
\lipsum[6]
\lipsum[7]
\end{document}
\ No newline at end of file
Markdown is supported
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