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

Fix and improve spacing

parent eeafd48e
Loading
Loading
Loading
Loading
+24 −4
Original line number Diff line number Diff line
@@ -67,10 +67,24 @@
% Do not indent paragraphs
% Note: do NOT use the parskip package: it breaks tocloft; the parfill option
% also breaks \hfill!
% Do not indent paragraphs

\setlength\parskip{0.5\baselineskip \@plus 0.25\baselineskip \@minus 0.25\baselineskip}
\setlength\parindent\z@
% Skip after paragraphs (stretchy: 6 to 15)
\parskip=0.5\baselineskip \advance\parskip by 0pt plus 2pt
\setlength\partopsep\z@

% Update spacing in lists.
\def\@listI{\leftmargin\leftmargini
   \topsep\z@ \parsep\parskip \itemsep\z@}
\let\@listi\@listI
\@listi
     
\def\@listii{\leftmargin\leftmarginii
   \labelwidth\leftmarginii\advance\labelwidth-\labelsep
   \topsep\z@ \parsep\parskip \itemsep\z@}
     
\def\@listiii{\leftmargin\leftmarginiii
    \labelwidth\leftmarginiii\advance\labelwidth-\labelsep
    \topsep\z@ \parsep\parskip \itemsep\z@}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% TITLE STYLES 
@@ -81,13 +95,19 @@
            
% You may need to use the \texorpdfstring when using hyperref and
% unusual titles.
\titleformat{\phantomsection}{\centering\bf}{\thetitle}{1ex}{\MakeUppercase}[]
\titleformat{\section}{\centering\bf}{\thetitle.}{1ex}{\MakeUppercase}[]
\titleformat{\subsection}{\bf}{\thetitle}{1ex}{\MakeUppercase}[]
\titleformat{\subsubsection}{\bf}{\thetitle}{1ex}{\MakeUppercase}[]
\titleformat{\paragraph}{\bf}{\thetitle}{1ex}{}[]
\titleformat{\subparagraph}{\bf\itshape}{\relax}{0pt}{}[]

% Update spacing to account for our custom parskip.
\titlespacing{\section}{\z@}{\parskip}{\z@}
\titlespacing{\subsection}{\z@}{\parskip}{\z@}
\titlespacing{\subsubsection}{\z@}{0.5\parskip}{\z@}
\titlespacing{\paragraph}{\z@}{0.5\parskip}{\z@}
\titlespacing{\subparagraph}{\z@}{0.5\parskip}{\z@}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% VARIABLES
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%