Commit 214351f3 authored by Johnson, Seth R.'s avatar Johnson, Seth R.
Browse files

Automatically clear pages before sections in front matter

parent 31280056
Loading
Loading
Loading
Loading
+9 −4
Original line number Diff line number Diff line
@@ -167,7 +167,7 @@ treated as a draft.}}
{%
% Notice about preliminary document when the 'reportnum' variable is not set
\hspace*{\fill}\fbox{\parbox{3.5in}{%
  \footnotesize\raggedright\textsf{%
  \footnotesize\raggedright\textbsf{%
  NOTICE: This document contains information of a preliminary nature and is not
  intended for release.  It is subject to revision or correction and therefore
  does not represent a final report.
@@ -367,7 +367,7 @@ under contract DE-AC05-00OR22725
\def\@cleariffrontmatter{\if@mainmatter\relax\else{\clearpage}\fi}
\def\@cleardbliffrontmatter{\if@mainmatter\relax\else{\cleardoublepage}\fi}

\newcommand{\frontmatter}{%
\newcommand\frontmatter{%
  \@mainmatterfalse%
  \def\and{\\}
  \makecoverpage%
@@ -392,6 +392,9 @@ under contract DE-AC05-00OR22725
  \section*{Abstract}%
}{}

% Clear page at the beginning of each section in the front matter
\newcommand\sectionbreak{\@cleariffrontmatter}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% TABLE OF CONTENTS, LIST OF FIGURES, LIST OF TABLES
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -408,7 +411,7 @@ under contract DE-AC05-00OR22725
% Add a dot after section numbers
\renewcommand\cftsecaftersnum{.}
% Squish section lines together
\setlength{\cftbeforesecskip}{0pt}
\setlength\cftbeforesecskip{0pt}
% Add leaders to all sections and subsections in the TOC.
\renewcommand\cftsecleader{\cftdotfill{\cftdotsep}}

@@ -445,8 +448,10 @@ under contract DE-AC05-00OR22725
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\setacronymstyle{long-short}
\setglossarystyle{list}
\setglossarystyle{long}
\renewcommand\glsdescwidth{\linewidth}
\glstoctrue
\renewcommand\glossarypostamble{\@cleardbliffrontmatter}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% MAIN MATTER