-
Notifications
You must be signed in to change notification settings - Fork 0
/
RUTitle.sty
116 lines (107 loc) · 3.66 KB
/
RUTitle.sty
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
%% RUTitle.sty
%% Copyright 2023 J. A. Konkol
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either version 1.3
% of this license or (at your option) any later version.
% The latest version of this license is in
% http://www.latex-project.org/lppl.txt
% and version 1.3 or later is part of all distributions of LaTeX
% version 2005/12/01 or later.
%
% This work has the LPPL maintenance status `maintained'.
%
% The Current Maintainer of this work is J. A. Konkol.
% This work consists of the files RUAbstract.sty, RUCopy.sty,
% RUDedication.sty and RUTitle.sty
\ProvidesPackage{RUTitle}[2022/12/27 Title package for Rutgers CBE Thesis]
\RequirePackage{ifthen}
\newcommand*{\department}[1]{\gdef\@department{#1}%
}
\newcommand*{\@department}{Department}
\newcommand*{\thesisType}[1]{\gdef\@thesisType{#1}%
}
\newcommand*{\@thesisType}{Doctor of Philosophy}
\newboolean{isphd}
\setboolean{isphd}{true}
\newboolean{proposal}
\setboolean{proposal}{false}
\newcommand*{\supervisor}[1]{\gdef\@supervisor{#1}%
}
\newcommand*{\@supervisor}{\texttt{\string\supervisor} currently
not set. Please fix this.}
\newcommand*{\graduationDate}[1]{\gdef\@graduationDate{#1}%
}
\newcommand*{\@graduationDate}{Janmaytober 20XX}
\newcommand*{\campus}[1]{\gdef\@campus{#1}%
}
\newcommand*{\@campus}{New Brunswick}
%Thank you https://tex.stackexchange.com/a/300212
\newcount\myloopcounter
\newcommand{\repeatit}[2][10]{%
\myloopcounter0% initialize the loop counter
\loop\ifnum\myloopcounter < #1 % Test if the loop counter is < #1
#2%
\advance\myloopcounter by 1 %
\repeat % start again
}
\newcommand*{\numSig}{4}
\DeclareOption{CBE}{%
\renewcommand{\@department}{Chemical and Biochemical Engineering}}
\DeclareOption{AE}{%
\renewcommand{\@department}{Aerospace Engineering}}
\DeclareOption{BME}{%
\renewcommand{\@department}{Biomedical Engineering}}
\DeclareOption{CEE}{%
\renewcommand{\@department}{Civil and Environmental Engineering}}
\DeclareOption{ECE}{%
\renewcommand{\@department}{Electrical and Computer Engineering}}
\DeclareOption{EnvE}{%
\renewcommand{\@department}{Environmental Engineering}}
\DeclareOption{ISE}{%
\renewcommand{\@department}{Industrial and Systems Engineering}}
\DeclareOption{MSE}{%
\renewcommand{\@department}{Materials Science and Engineering}}
\DeclareOption{MAE}{%
\renewcommand{\@department}{Mechanical Engineering}}
\DeclareOption{PhD}{%
\renewcommand{\@thesisType}{Doctor of Philosophy}%
\setboolean{isphd}{true}
\renewcommand{\numSig}{4}}
\DeclareOption{MS}{%
\renewcommand{\@thesisType}{Master of Science}%
\setboolean{isphd}{false}
\renewcommand{\numSig}{3}}
\DeclareOption{ME}{%
\renewcommand{\@thesisType}{Master of Engineering}%
\setboolean{isphd}{false}
\renewcommand{\numSig}{3}}
\DeclareOption{proposal}{%
\setboolean{proposal}{true}}
\ProcessOptions\relax
\renewcommand*{\maketitle}{%
\begin{titlepage}
\centering
{\scshape \MakeUppercase{\@title} \par}
\vspace{0.5cm}
{by \par}
\vspace{0.5cm}
{\MakeUppercase{\@author}\unskip\strut\par}
\vspace{0.5cm}
{A \ifthenelse{\boolean{isphd}}{dissertation}{thesis}\ifthenelse{\boolean{proposal}}{ proposal}{} submitted to the\unskip\strut\par}
{School of Graduate Studies\unskip\strut\par}
{Rutgers, The State University of New Jersey\unskip\strut\par}
{In partial fulfillment of the requirements\unskip\strut\par}
{For the degree of\unskip\strut\par}
{\@thesisType\unskip\strut\par}
{Graduate program in \@department\unskip\strut\par}
{Written under the direction of\unskip\strut\par}
{\@supervisor\unskip\strut\par}
{And approved by\unskip\strut\par}
\repeatit[\numSig]{%
\vspace{0.5cm}
{\rule{3in}{0.4pt}\unskip\strut\par}}
{\@campus, NJ -- \@graduationDate}
\end{titlepage}
}
\endinput