% \iffalse meta-comment
%
% Copyright (C) 2020 by Deanna Daly <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-dissertation.dtx}
%</driver>
%<package>\NeedsTeXFormat{LaTeX2e}[2005/12/01]
%<package>\ProvidesPackage{brandeis-dissertation}
%<*package>
    [2020/01/21 v3.0 .dtx brandeis-dissertation file]
%</package>
%<package>\LoadClass[12pt]{article}
%<package>\RequirePackage[margin=1in]{geometry}
%<package>\RequirePackage{setspace}
%<package>\RequirePackage{titlesec}
%<package>\RequirePackage[utf8]{inputenc}
%<package>\RequirePackage[english]{babel}
%<package>\RequirePackage{csquotes}
%<package>\AtBeginEnvironment{quote}{\singlespacing}
%
%<package>\titleformat*{\section}{\normalsize\bfseries}
%<package>\titleformat*{\subsection}{\normalsize\bfseries}
%<package>\titleformat*{\subsubsection}{\normalsize\bfseries}
%
%<package>\renewcommand\month[1]{\def\@month{#1}}
%<package>\renewcommand\year[1]{\def\@year{#1}}
%<package>\newcommand\program[1]{\def\@program{#1}}
%<package>\newcommand\advisor[1]{\def\@advisor{#1}}
%<package>\newcommand\signoff[2]{\def\@signoff{#1}\def\@signofftitle{#2}}
%<package>\newcommand\committeechair[2]{\def\@committeechair{#1}\def\@committeechairdept{#2}}
%<package>\newcommand\committeetwo[2]{\def\@committeetwo{#1}\def\@committeetwodept{#2}}
%<package>\newcommand\committeethree[2]{\def\@committeethree{#1}\def\@committeethreedept{#2}}
%<package>\newcommand\outsidereader[3]{\def\@outsidereader{#1}\def\@outsidereaderdept{#2}\def\@outsidereaderuni{#3}}
%<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 Dissertation\\
        \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\\
        Doctor of Philosophy\\
        \vspace{1em}
        by\\
        \@author\\
        \vspace{1em}
        \@month\,\@year
    \end{center}
    \restoregeometry
    \newpage
    \pagenumbering{roman}
    \setcounter{page}{2}
}
%</package>
%<*package>
\newcommand{\makeapproval}{%
    \pagenumbering{gobble}
    \begin{spacing}{2}
    \noindent
    This dissertation, directed and approved by \@author{}'s Committee, has been\\ accepted and approved by the Faculty of Brandeis University in partial fulfillment of the\\  requirements for the degree of:
    \end{spacing}
    
    \hspace{3in}\textbf{DOCTOR OF PHILOSOPHY}
    
    \vspace{3em}
    
    \hspace{3in}\@signoff, \@signofftitle
    
	\hspace{3in}Graduate School of Arts and Sciences\\
    \vspace{1em}
    
    \noindent
    Dissertation Committee:

    \noindent
    \@committeechair, \@committeechairdept
    
    \noindent
    \@committeetwo, \@committeetwodept
    
    \noindent
    \@committeethree, \@committeethreedept
    
    \noindent
    \@outsidereader, \@outsidereaderdept, \@outsidereaderuni
    
    \newpage
    \setcounter{page}{3}
}
%</package>
%<*package>
\newcommand{\makecopyright}{%
    \pagenumbering{gobble}
    \newgeometry{top=6.2in}
    \begin{center}
        Copyright by\\
        \@author{}\\
        \vspace{1em}
        \@year{}
    \end{center}
    \restoregeometry
    \newpage
    \pagenumbering{roman}
    \setcounter{page}{4}
}

%\newcommand{\makeacknowledgements}{
%}
%</package>
%<*package>
\newenvironment{thesis-abstract}
    {
    %\newgeometry{top=1.4in}
    \addcontentsline{toc}{section}{Abstract}
    \begin{center}
        \MakeUppercase{Abstract}\\
        \vspace{1em}
        \@title\\
        \vspace{1em}
        A dissertation 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-dissertation.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{v1.0}{2020/01/21}{Initial version}
%
% \GetFileInfo{brandeis-dissertation.dtx}
%
% \DoNotIndex{\newcommand,\newenvironment}
% 
%
% \title{The \textsf{brandeis-dissertation} package\thanks{This document
%   corresponds to \textsf{brandeis-dissertation}~\fileversion, dated \filedate.}}
% \author{Brandeis University GSAS \\ \texttt{gradschool@brandeis.edu}}
%
% \maketitle
%
% \section{Introduction}
% 
% This document explains how to use the \textsf{brandeis-dissertation} class in \LaTeX{} to format your dissertation according to the specifications of Brandeis University's Graduate School of Arts and Sciences. 
% 
% The \textsf{brandeis-dissertation} class will do the following for you:
% \begin{itemize}
%     \item Create your title, approval, copyright, and abstract pages.
%     \item Ensure your dissertation 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{description}
% \item[\texttt{\textbackslash title\{\}}:] The title of your dissertation.
% \item[\texttt{\textbackslash author\{\}}:] Your name.
% \item[\texttt{\textbackslash month\{\}}:] The month in which you graduate.
% \item[\texttt{\textbackslash year\{\}}:] The year in which you graduate.
% \item[\texttt{\textbackslash program\{\}}:] Your program.
% \item[\texttt{\textbackslash advisor\{\}}:] Your advisor's name.
% \item[\texttt{\textbackslash signoff\{\}\{\}}:] The name of the individual signing off on your approval page, followed by their title. This likely is the dean.
% \item[\texttt{\textbackslash committeechair\{\}}:] Your committee chair's name, followed by their department.
% \item[\texttt{\textbackslash committeetwo\{\}\{\}}:] The name of your second committee member, followed by their department.
% \item[\texttt{\textbackslash committeethree\{\}\{\}}:] The name of your third committee member, followed by their department.
% \item[\texttt{\textbackslash outsidereader\{\}\{\}\{\}}:] The name of your outside reader, followed by their department, followed by their university.
% \end{description}
% 
% For example, including the following in your document:
% 
% \begin{verbatim}
% \title{LaTeXing Your Dissertation}
% \author{Deanna Daly}
% \month{May}
% \year{2020}
% \program{Philosophy}
% \advisor{Alan Turing}
% \signoff{Eric Chasalow}{Dean}
% \committeechair{Bertrand Russell}{Philosophy}
% \committeetwo{Alfred North Whitehead}{Mathematics}
% \committeethree{Ludwig Wittgenstein}{Philosophy}
% \outsidereader{Emmy Noether}{Mathematics}{Bryn Mawr College}
% \end{verbatim}
% 
% would set your dissertation to one with a title of ``LaTeXing Your Dissertation'', an author of ``Deanna Daly'', a graduation time of May 2020, with the advisor ``Alan Turing'' in the Philosophy program. Your approval page should be signed off by Eric Chasalow, the dean. Your committee would be set to consist of Bertrand Russell from the Philosophy Department, Alfred North Whitehead from the Mathematics Department, and Ludwig Wittgenstein from the Philosophy Department. Your outside reader would be set to be Emmy Noether from Bryn Mawr College's Mathematics Department.
% 
% \subsection{Creating Front Matter}
% 
% The title, approval, and copyright pages of your dissertation can be % created with just one line each:
% 
% \begin{verbatim}
% \maketitlepage
% \makeapproval
% \makecopyright
% \end{verbatim}
% 
% The abstract is created with the \texttt{dissertation-abstract} environment, as in the following example:
% 
% \begin{verbatim}
% \begin{dissertation-abstract}
% I present a simple explanation of how to LaTeX your dissertation.
% \end{dissertation-abstract}
% \end{verbatim}
% 
% This will create your abstract page, with the abstract being ``I present a simple explanation of how to LaTeX your dissertation.''
% 
% Table of Contents, List of Figures, etc. can be generated as usual using \LaTeX.
% 
% To end the front matter section of your dissertation and begin the body of your dissertation, use the command \texttt{\textbackslash startbody}.
% 
% The rest of your dissertation may be written as normal; margins, spacing, and pagination should be set automatically.
% 
% \section{Example}
% 
% The below example provides the source code for a simple dissertation with no figures or citations.
% 
% \begin{verbatim}
% \documentclass[red]{brandeis-dissertation}
% \usepackage[utf8]{inputenc}
% 
% \title{LaTeXing Your Dissertation}
% \author{Deanna Daly}
% \month{May}
% \year{2020}
% \program{Philosophy}
% \advisor{Alan Turing}
% \signoff{Eric Chasalow}{Dean}
% \committeechair{Bertrand Russell}{Philosophy}
% \committeetwo{Alfred North Whitehead}{Mathematics}
% \committeethree{Ludwig Wittgenstein}{Philosophy}
% \outsidereader{Emmy Noether}{Mathematics}{Bryn Mawr College}
% 
% \begin{document}
% 
% \maketitlepage
% \makeapproval
% \makecopyright
% 
% \begin{dissertation-abstract}
% I present a simple explanation of how to LaTeX your dissertation.
% \end{dissertation-abstract}
% 
% \addcontentsline{toc}{section}{Table of Contents}
% \tableofcontents
% 
% \startbody
% 
% \section{Introduction}
% Using \LaTeX for your dissertation is easy.
% 
% \section{Body}
% You can copy paste this code, and add your own dissertation.
% 
% \section{Conclusion}
% The dissertation class should help you with your formatting.
% 
% \end{document}
% \end{verbatim}
%
% \Finale
\endinput

