Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Adrian C. Hinrichs
LaTeX-templates
Commits
5b7d6863
Commit
5b7d6863
authored
Nov 30, 2016
by
Adrian C. Hinrichs
☕
Browse files
Change the way Options are Passed to article
Raises a warning, if a Option is unused
parent
5e937723
Changes
3
Hide whitespace changes
Inline
Side-by-side
HomeworkAssignment.cls
View file @
5b7d6863
...
...
@@ -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
eg_assignment.pdf
View file @
5b7d6863
No preview for this file type
eg_assignment_2.pdf
View file @
5b7d6863
No preview for this file type
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment