From 2514e7edee8cd66f6bc2e966082168b9663f7450 Mon Sep 17 00:00:00 2001
From: Blaise Thompson <blaise@untzag.com>
Date: Wed, 9 May 2018 16:52:28 -0500
Subject: 2018-05-09 16:52

---
 dissertation.cls | 59 ++++++++++++++++++--------------------------------------
 1 file changed, 19 insertions(+), 40 deletions(-)

(limited to 'dissertation.cls')

diff --git a/dissertation.cls b/dissertation.cls
index e540902..f431973 100644
--- a/dissertation.cls
+++ b/dissertation.cls
@@ -11,22 +11,31 @@
 \RequirePackage{setspace}
 \RequirePackage{afterpage}
 \RequirePackage{xcolor}
-\RequirePackage{array} 
+\RequirePackage{array}
 
 % --- layout --------------------------------------------------------------------------------------
 
+\let\stdchapter\chapter
+\renewcommand\chapter{\cleardoublepage\stdchapter}
+
 \let\stdsection\section
 \renewcommand\section{\clearpage\stdsection}
 
-% --- floats --------------------------------------------------------------------------------------
+\RequirePackage{afterpage}
 
+\newcommand\blankpage{%
+    \null
+    \thispagestyle{empty}%
+    \addtocounter{page}{-1}%
+    \newpage}
+
+% --- floats --------------------------------------------------------------------------------------
 
 % force all floats to center (see https://tex.stackexchange.com/a/53383)
 \makeatletter
 \g@addto@macro\@floatboxreset{\centering}
 \makeatother
 
-
 % --- headers -------------------------------------------------------------------------------------
 
 % required: page number in upper right, nothing else
@@ -65,17 +74,13 @@
 
 \newcommand{\dsignature}[1]{\hfill \normalfont{-- #1}}
 
-
 % --- tables --------------------------------------------------------------------------------------
 
-
 \BeforeBeginEnvironment{table}{\clearpage}
 \AfterEndEnvironment{table}{\clearpage}
 
-
 % --- lists ---------------------------------------------------------------------------------------
 
-
 \RequirePackage[shortlabels]{enumitem}
 \setlist[enumerate, 1]{nosep}
 \setlist[enumerate, 2]{nosep, topsep=-5ex}
@@ -97,12 +102,12 @@
 \newenvironment{ditemize}
   {
   \begin{itemize}
-  \renewcommand{\labelitemi}{$\rightarrow$}    
-  \singlespacing  
+  \renewcommand{\labelitemi}{$\rightarrow$}
+  \singlespacing
   }
   {
   \end{itemize}
-  }  
+  }
 
 % --- code environment ----------------------------------------------------------------------------
 
@@ -191,37 +196,11 @@ anchorcolor=black]{hyperref}
 \RequirePackage[all]{hypcap}  % helps hyperref work properly
 
 \renewcommand{\chapterautorefname}{Chapter}
+\renewcommand{\sectionautorefname}{Section}
+\renewcommand{\subsectionautorefname}{Section}
+\renewcommand{\subsubsectionautorefname}{Section}
 
 % --- bibliography --------------------------------------------------------------------------------
 
 \RequirePackage[backend=biber, natbib=true, sorting=none, maxbibnames=99, isbn=false]{biblatex}
-\bibliography{bibliography}
-
-% --- glossary ------------------------------------------------------------------------------------
-
-%\RequirePackage[acronym, nopostdot, nogroupskip]{glossaries}
-%\newcommand{\comma}{,\penalty \exhyphenpenalty}
-%\newlength\glsnamewidth
-%\setlength{\glsnamewidth}{0.3\hsize}
-%\setlength{\glsdescwidth}{1\hsize}
-%\newglossarystyle{myglossarystyle}{
-%	\setglossarystyle{super}
-%	\renewenvironment{theglossary}{
-%		\tablehead{}
-%		\tabletail{}
-%		\begin{supertabular}{p{\glsnamewidth}p{\glsdescwidth}}}{\end{supertabular}}
-%	\renewcommand{\glossentry}[2]{
-%		\raggedleft
-%		\glsentryitem{##1}\glstarget{##1}{\glossentryname{##1}} &
-%		\glossentrydesc{##1}\glspostdescription\space ##2\tabularnewline}}
-%\renewcommand{\arraystretch}{1}
-%\setglossarystyle{myglossarystyle}
-%\newglossary[slg]{symbolslist}{syi}{syg}{Symbols}
-%\makeglossaries
-
-%\RequirePackage{tocloft}
- 
-%\setlength\cftparskip{0pt}
-%\setlength\cftbeforechapskip{-5pt}
-%\setlength\cftbeforesecskip{-7pt}
-%\setlength\cftbeforesubsecskip{-10pt}
\ No newline at end of file
+\bibliography{bibliography}
\ No newline at end of file
-- 
cgit v1.2.3

