-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbeanSET.cls
51 lines (38 loc) · 1.25 KB
/
beanSET.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
50
51
\ProvidesClass{beanSET}
\LoadClass[11pt]{article}
\usepackage{fullpage}
\usepackage{ifthen}
\usepackage{hyperref}
\hypersetup{
colorlinks=true,
linkcolor=blue,
}
\setlength{\parindent}{0pt}
\newcommand{\name}[1]{\gdef\@name{#1}}
\newcommand{\mail}[1]{\gdef\@mail{#1}}
\newcommand{\coursename}[1]{\gdef\@coursename{#1}}
\newcommand{\courseNo}[1]{\gdef\@courseNo{#1}}
\newcommand{\semester}[1]{\gdef\@sem{#1}}
\newcommand{\hwNo}[1]{\gdef\@hwNo{#1}}
\newcommand{\duedate}[1]{\gdef\@duedate{#1}}
\newcommand{\collabs}[1]{\gdef\@collabs{#1}}
\newcommand{\psetheader}{
\ifthenelse{\isundefined{\@collabs}}{
\begin{center}
\setlength{\parindent}{0cm} \setlength{\parskip}{0mm}
{\textbf{\@courseNo~\@sem: PSET \@hwNo} \hfill \@name}
\@coursename \hfill \href{mailto: \@mail}{\tt{\@mail}}
Collaborator(s): $\emptyset$ \hfill Due Date:~\@duedate
\hrulefill
\end{center}
}
{
\begin{center}
\setlength{\parindent}{0cm} \setlength{\parskip}{0mm}
{\textbf{\@courseNo~\@sem: PSET \@hwNo} \hfill \@name}
\@coursename \hfill \href{mailto: \@mail}{\tt{\@mail}}
Collaborator(s):~\@collabs \hfill Due Date:~\@duedate
\hrulefill
\end{center}
}
}