summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/brandeis-thesis/brandeis-thesis.dtx
blob: e57e1b05bf990c5ef0fb50bcefdf9aa0c940ed88 (plain)
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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
% \iffalse meta-comment
%
% Copyright (C) 2021 by Brandeis University <gradschool@brandeis.edu>
% -------------------------------------------------------
% 
% This file 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.
%
% \fi
%
% \iffalse
%<*driver>
\ProvidesFile{brandeis-thesis.dtx}
%</driver>
%<package>\NeedsTeXFormat{LaTeX2e}[2005/12/01]
%<package>\ProvidesClass{brandeis-thesis}
%<*package>
    [2021/06/29 v3.2 .dtx brandeis-thesis file]
%</package>
%<package>\LoadClass[12pt,oneside]{book}
%<package>\RequirePackage[immediate]{silence}
%<package>\WarningFilter[temp]{latex}{Command}
%<package>\RequirePackage{sectsty}
%<package>\DeactiveWarningFilters[temp]
%<package>\RequirePackage[margin=1in]{geometry}
%<package>\RequirePackage{setspace}
%<package>\RequirePackage{titlesec}
%<package>\RequirePackage[utf8]{inputenc}
%<package>\RequirePackage[english]{babel}
%<package>\RequirePackage{csquotes}
%<package>\RequirePackage{mathptmx}
%<package>\RequirePackage{tocloft}
%<package>\allsectionsfont{\normalsize\bfseries}
%<package>\renewcommand{\cftchapfont}{\normalfont}
%<package>\renewcommand{\cftchappagefont}{\normalfont}
%<package>\renewcommand{\cfttoctitlefont}{\normalsize\bfseries}
%<package>\renewcommand{\cftloftitlefont}{\normalsize\bfseries}
%<package>\renewcommand{\cftlottitlefont}{\normalsize\bfseries}
%<package>\setlength{\cftaftertoctitleskip}{12pt}
%<package>\setlength{\cftafterloftitleskip}{12pt}
%<package>\setlength{\cftafterlottitleskip}{12pt}
%<package>\AtBeginEnvironment{quote}{\singlespacing}
%<package>\pagestyle{plain}
%<package>\newcommand\graduationmonth[1]{\def\@graduationmonth{#1}}
%<package>\newcommand\graduationyear[1]{\def\@graduationyear{#1}}
%<package>\newcommand\program[1]{\def\@program{#1}}
%<package>\newcommand\advisor[1]{\def\@advisor{#1}}
%<package>\newcommand\degreetype[1]{\def\@degreetype{#1}}
%<package>\addto\captionsenglish{\renewcommand*\contentsname{Table of Contents}}
%<package>\renewcommand*\l@section{\@dottedtocline{1}{1.5em}{2.3em}}
%
%<*package>
\newcommand{\maketitlepage}{
    \pagenumbering{gobble}
    %\newgeometry{top=1.75in}
    \begin{center}
        \@title\\
        \vspace{1em}
        A Master's Thesis\\
        \vspace{1em}
        Presented to\\
        \vspace{1em}
        The Faculty of the Graduate School of Arts and Sciences\\
        Brandeis University\\
        \vspace{1em}
        \@program\\
        \vspace{1em}
        \@advisor, Advisor\\
        \vspace{1em}
        In Partial Fulfillment\\
        of the Requirements for the Degree\\
        Master of \@degreetype\\
        \vspace{1em}
        by\\
        \vspace{1em}
        \@author\\
        \vspace{1em}
        \@graduationmonth\,\@graduationyear
    \end{center}
    \restoregeometry
    \newpage
    \pagenumbering{roman}
    \setcounter{page}{2}
}
%</package>
%<*package>
\newcommand{\makecopyright}{
    \pagenumbering{gobble}
    \newgeometry{top=6.2in}
    \begin{center}
        Copyright by\\
        \@author{}\\
        \vspace{1em}
        \@graduationyear{}
    \end{center}
    \restoregeometry
    \newpage
    \pagenumbering{roman}
    \setcounter{page}{3}
}
%</package>
%<*package>
\newenvironment{thesis-abstract}
    {
    %\newgeometry{top=1.4in}
    \begin{center}
        \MakeUppercase{Abstract}\\
        \vspace{1em}
        \@title\\
        \vspace{1em}
        A thesis presented to the Faculty of the\\
        Graduate School of Arts and Sciences of Brandeis University\\
        Waltham, Massachusetts\\
        \vspace{1em}
        By\,\@author\\
        \vspace{2em}
    \end{center}
    \doublespacing
    }
    {
    \restoregeometry
    }
%</package>
%<*package>
\newcommand{\startbody}{
    \newpage
    \pagenumbering{arabic}
    \doublespacing
}
%</package>
%
%<*driver>
\documentclass{ltxdoc}
\EnableCrossrefs         
\CodelineIndex
\RecordChanges
\begin{document}
  \DocInput{brandeis-thesis.dtx}
  \PrintChanges
  \PrintIndex
\end{document}
%</driver>
% \fi
%
% \CheckSum{0}
%
% \CharacterTable
%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
%   Lower-case    \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
%   Digits        \0\1\2\3\4\5\6\7\8\9
%   Exclamation   \!     Double quote  \"     Hash (number) \#
%   Dollar        \$     Percent       \%     Ampersand     \&
%   Acute accent  \'     Left paren    \(     Right paren   \)
%   Asterisk      \*     Plus          \+     Comma         \,
%   Minus         \-     Point         \.     Solidus       \/
%   Colon         \:     Semicolon     \;     Less than     \<
%   Equals        \=     Greater than  \>     Question mark \?
%   Commercial at \@     Left bracket  \[     Backslash     \\
%   Right bracket \]     Circumflex    \^     Underscore    \_
%   Grave accent  \`     Left brace    \{     Vertical bar  \|
%   Right brace   \}     Tilde         \~}
%
%
% \changes{v3.0}{2020/01/21}{Initial version}
% \changes{v3.1}{2020/04/09}{Formatting update}
% \changes{v3.2}{2020/06/29}{Formatting update}
%
% \GetFileInfo{brandeis-thesis.dtx}
%
% \DoNotIndex{\newcommand,\newenvironment}
% 
%
% \title{The \textsf{brandeis-thesis} package\thanks{This document
%   corresponds to \textsf{brandeis-thesis}~\fileversion, dated \filedate.}}
% \author{Brandeis University GSAS \\ \texttt{gradschool@brandeis.edu}}
%
% \maketitle
%
% \section{Introduction}
% 
% This document explains how to use the \textsf{brandeis-thesis} class in \LaTeX{} to format your thesis according to the specifications of Brandeis University's Graduate School of Arts and Sciences. 
% 
% The \textsf{brandeis-thesis} class will do the following for you:
% \begin{itemize}
%     \item Create your title, copyright, and abstract pages.
%     \item Ensure your thesis has the correct margins, spacing, and pagination.
% \end{itemize}
% 
% \section{Usage}
% \label{Sec:usage}
% 
% \subsection{Title Information}
% \label{Sec:general}
% 
% The following commands are used to save information that is used to render your title page:
% 
% \begin{verbatim}
% \title{}
% \author{}
% \graduationmonth{}
% \graduationyear{}
% \program{}
% \advisor{}
% \degreetype{}
% \end{verbatim}
% 
% For example, including the following in your document:
% 
% \begin{verbatim}
% \title{LaTeXing Your Thesis}
% \author{Deanna Daly}
% \graduationmonth{May}
% \graduationyear{2021}
% \program{Computer Science}
% \advisor{Alan Turing}
% \degreetype{Science}
% \end{verbatim}
% 
% would set your thesis to one with a title of "LaTeXing Your Thesis", an author of "Deanna Daly", a graduation time of May 2020, with the advisor "Alan Turing" in the Computer Science program, for a Master of Science Degree.
% 
% \subsection{Creating Front Matter}
% 
% The title and copyright pages of your thesis can be created with just one line each:
% 
% \begin{verbatim}
% \maketitlepage
% \makecopyright
% \end{verbatim}
% 
% The abstract is created with the \texttt{thesis-abstract} environment, as in the following example:
% 
% \begin{verbatim}
% \begin{thesis-abstract}
% I present a simple explanation of how to LaTeX your thesis.
% \end{thesis-abstract}
% \end{verbatim}
% 
% This will create your abstract page, with the abstract being ``I present a simple explanation of how to LaTeX your thesis.''
% 
% Table of Contents, List of Figures, etc. can be generated as usual using \LaTeX. You should precede these with \texttt{\textbackslash doublespacing} to make them double spaced.
% 
% To end the front matter section of your thesis and begin the body of your thesis, use the command \texttt{\textbackslash startbody}.
% 
% The rest of your thesis may be written as normal; margins, spacing, and pagination should be set automatically, with the exception of your bibliography. To make your bibliography single spaced, you should precede it with You should precede these with \texttt{\textbackslash singlespacing}.
% 
% \section{Example}
% 
% The below example provides the source code for a simple thesis with no figures or citations.
% 
% \begin{verbatim}
% \documentclass[red]{brandeis-thesis}
% \usepackage[utf8]{inputenc}
% 
% \title{LaTeXing Your Thesis}
% \author{Deanna Daly}
% \graduationmonth{May}
% \graduationyear{2021}
% \program{Computer Science}
% \advisor{Alan Turing}
% \degreetype{Science}
% 
% \begin{document}
% 
% \maketitlepage
% \makecopyright
% 
% \begin{thesis-abstract}
% I present a simple explanation of how to LaTeX your thesis.
% \end{thesis-abstract}
% 
% \doublespacing
% \tableofcontents
% 
% \startbody
% 
% \section{Introduction}
% Using \LaTeX for your thesis is easy.
% 
% \section{Body}
% You can copy paste this code, and add your own thesis.
% 
% \section{Conclusion}
% The thesis class should help you with your formatting.
% 
% \end{document}
% \end{verbatim}
%
% \Finale
\endinput