aboutsummaryrefslogtreecommitdiff
path: root/dissertation.cls
diff options
context:
space:
mode:
authorBlaise Thompson <blaise@untzag.com>2018-03-24 16:45:13 -0500
committerBlaise Thompson <blaise@untzag.com>2018-03-24 16:45:13 -0500
commit46eb6bad8700abdfef52fd83445607228016b10b (patch)
tree824753b489dc24aeb09444a89d08d82fec43de3f /dissertation.cls
parent7d602505a8b84d6c3743dd3cc0c9ac0a421f07b2 (diff)
2018-03-24 16:45
Diffstat (limited to 'dissertation.cls')
-rw-r--r--dissertation.cls92
1 files changed, 40 insertions, 52 deletions
diff --git a/dissertation.cls b/dissertation.cls
index 6397be2..bf2e6f6 100644
--- a/dissertation.cls
+++ b/dissertation.cls
@@ -13,21 +13,30 @@
\RequirePackage{xcolor}
\RequirePackage{array}
+% --- 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
\RequirePackage{fancyhdr}
\fancypagestyle{plain}{
- \fancyhf{}
- \fancyhead[R]{\thepage}
- \fancyfoot{}
+ \fancyhf{}
+ \fancyhead[R]{\thepage}
+ \fancyfoot{}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}
}
\pagestyle{plain}{\rhead{\thepage}}
-\setlength{\headheight}{11pt}
+\setlength{\headheight}{14pt}
% --- text ----------------------------------------------------------------------------------------
@@ -119,19 +128,6 @@
\newcommand{\includepython}[1]{\inputminted[bgcolor=bg]{python}{#1}}
-% --- tables --------------------------------------------------------------------------------------
-
-\newenvironment{dtable}
- {
- \clearpage
- \begin{table}
- \centering
- }
- {
- \end{table}
- \clearpage
- }
-
% --- graphics ------------------------------------------------------------------------------------
\RequirePackage{graphics}
@@ -141,15 +137,8 @@
\RequirePackage{etoc}
\RequirePackage{tikz}
-\newenvironment{dfigure}
- {
- \clearpage
- \begin{figure}
- \centering
- }
- {
- \end{figure}
- \clearpage}
+\BeforeBeginEnvironment{figure}{\clearpage}
+\AfterEndEnvironment{figure}{\clearpage}
% --- math ----------------------------------------------------------------------------------------
@@ -179,30 +168,29 @@ anchorcolor=black]{hyperref}
% --- 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
-\include{glossary}
-
-\RequirePackage{tocloft}
+%\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
+%\setlength\cftparskip{0pt}
+%\setlength\cftbeforechapskip{-5pt}
+%\setlength\cftbeforesecskip{-7pt}
+%\setlength\cftbeforesubsecskip{-10pt} \ No newline at end of file