Commit 5b7d6863 authored by Adrian C. Hinrichs's avatar Adrian C. Hinrichs
Browse files

Change the way Options are Passed to article

Raises a warning, if a Option is unused
parent 5e937723
......@@ -4,11 +4,10 @@
% --- Class structure: identification part
% ---
\NeedsTeXFormat{LaTeX2e}[1994/06/01]
\ProvidesClass{HomeworkAssignment}[2016/11/03]
\ProvidesClass{HomeworkAssignment}[2016/11/09]
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}}
\DeclareOption*{\InputIfFileExists{\CurrentOption.min}{}{
%
\PassOptionsToClass{\CurrentOption}{article}}}
\ProcessOptions \relax
......@@ -18,27 +17,30 @@
\RequirePackage{fancyhdr}
\RequirePackage{ifthen}
\fancypagestyle{firstpage}{
%
\fancyhf{}
% clear all six fields
\renewcommand{\headrulewidth}{.7pt}
\renewcommand{\footrulewidth}{0pt}
\fancyfoot[RE,LO]{\thepage}
\fancyhead[L]{\@tutorium }
\fancyhead[R]{\@date }
%
\fancyhf{}
% clear all six fields
\renewcommand{\headrulewidth}{.7pt}
\renewcommand{\footrulewidth}{0pt}
\fancyfoot[RE,LO]{\thepage}
\fancyhead[L]{\@tutorium }
\fancyhead[R]{\@date }
}
\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}
%
\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}}
\AtBeginDocument{
\thispagestyle{firstpage}
\setlength{\headheight}{25pt}
}
%\LoadClass[10pt,a4paper]{article}
......@@ -53,21 +55,21 @@
\newcommand{\abgabe}[1]{\def\@abgabe{#1}}
\renewcommand{\maketitle} {
\begin{centering}
\huge{\textbf{\@kurs}}
{\hrule height 2pt}
\vspace{.25cm}
\large
Abgabe: \@abgabe\\
\vspace{.5cm}
\hrule
\vspace{.25cm}
\normalsize{\@author}\\
\vspace{.25cm}
\hrule
\vspace{.25cm}
\normalsize
\end{centering}
\begin{centering}
\huge{\textbf{\@kurs}}
{\hrule height 2pt}
\vspace{.25cm}
\large
Abgabe: \@abgabe\\
\vspace{.5cm}
\hrule
\vspace{.25cm}
\normalsize{\@author}\\
\vspace{.25cm}
\hrule
\vspace{.25cm}
\normalsize
\end{centering}
}
\newcounter{problem}
......@@ -143,4 +145,3 @@ Abgabe: \@abgabe\\
}
\endinput
%ToDo: Besipieldokument erstellen und ausgabe ansehehn
No preview for this file type
No preview for this file type
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