-
Notifications
You must be signed in to change notification settings - Fork 2
/
dlejeune_hw.cls
49 lines (36 loc) · 1.1 KB
/
dlejeune_hw.cls
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
\LoadClass[10pt]{article}
\ProvidesClass{dlejeune_hw}
\def\dlejeunemargin{0.75in}
\newif\ifsignature
\RequirePackage{titling}
\RequirePackage[margin=\dlejeunemargin,includehead]{geometry}
\RequirePackage{fancyhdr}
\RequirePackage[T1]{fontenc}
\RequirePackage{inconsolata}
\setcounter{secnumdepth}{0}
\pagestyle{fancy}
\thispagestyle{plain}
\lhead{\VARclass\, -- \VARassignment}
\rhead{Due \VARdue}
\renewcommand{\headrulewidth}{1pt}
\renewcommand{\maketitle}
{
\begin{center}
\newlength{\titlerulewidth}
\def \hmwkttl{{\Large \textbf{\VARclass\, -- \VARassignment}}}
\settowidth{\titlerulewidth}{\hmwkttl}
\rule{\titlerulewidth}{1pt}\\[3mm]
\hmwkttl \\[3mm]
\makebox[\titlerulewidth]{\small \VARname \hspace{1em} \hfill \hfill Due: \VARdue} \\
\rule{\titlerulewidth}{1pt}\\[3mm]
\end{center}
\vspace{1em}
\setlength{\parindent}{0mm}
\setlength{\parskip}{3mm}
\textbf{Honor System Pledge:} {\em On my honor, I have neither given nor received any unauthorized aid on this assignment.}
\ifsignature
\vspace{0.5em}
Signature: \makebox[2.5in]{\hrulefill}
\fi
\vspace{1em}
}