summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/turabian-formatting/turabian-thesis.cls
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2017-11-05 22:05:09 +0000
committerKarl Berry <karl@freefriends.org>2017-11-05 22:05:09 +0000
commit7e58d40557545aed226fc852f4e32f86f76517bd (patch)
tree77ca396d605d08e412fbf92e4b401d4d848bbe57 /Master/texmf-dist/tex/latex/turabian-formatting/turabian-thesis.cls
parenta70fd575c028c4669d977e58d87bdc1cc996dfbd (diff)
turabian-formatting (5nov17)
git-svn-id: svn://tug.org/texlive/trunk@45700 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/turabian-formatting/turabian-thesis.cls')
-rw-r--r--Master/texmf-dist/tex/latex/turabian-formatting/turabian-thesis.cls48
1 files changed, 39 insertions, 9 deletions
diff --git a/Master/texmf-dist/tex/latex/turabian-formatting/turabian-thesis.cls b/Master/texmf-dist/tex/latex/turabian-formatting/turabian-thesis.cls
index 8f9da7de1e2..38a3d963798 100644
--- a/Master/texmf-dist/tex/latex/turabian-formatting/turabian-thesis.cls
+++ b/Master/texmf-dist/tex/latex/turabian-formatting/turabian-thesis.cls
@@ -27,7 +27,7 @@
\NeedsTeXFormat{LaTeX2e}
-\ProvidesClass{turabian-thesis}[2017/03/18 Turabian Theses and Dissertations]
+\ProvidesClass{turabian-thesis}[2017/11/04 Turabian Theses and Dissertations]
% Default point size
@@ -174,7 +174,8 @@
\vspace*{1\baselineskip}%
\fi
\fi
- \ifstrempty{#1}{}{#1\par\nobreak \vspace{1\baselineskip}}}
+ \ifstrempty{#1}{}{#1\par\nobreak}}%
+ \vspace{\dimexpr 3\tf@singlelineskip -\baselineskip \relax}
\@afterheading}
\def\@endpart{\if@openright \cleardoublepage \else \clearpage \fi}
@@ -219,6 +220,13 @@
% Chapter: formatting
\def\tf@chapformat{\normalfont\bfseries\normalsize\singlespacing\centering}
+\newlength\tf@adjafterchapskip
+\setlength\tf@adjafterchapskip{\z@}
+
+\def\tf@setafterchapskip{%
+ \setlength\tf@adjafterchapskip{%
+ \dimexpr 3\tf@singlelineskip -\baselineskip \relax}}
+
\def\@chapter[#1]#2{%
\@figuredblnumfalse
\@tabledblnumfalse
@@ -247,6 +255,7 @@
\@afterheading}
\def\@makechapterhead#1{%
+ \tf@setafterchapskip
{ \tf@chapformat
\ifnum \c@secnumdepth >\m@ne
\if@mainmatter
@@ -256,13 +265,33 @@
\fi
\fi
\interlinepenalty\@M
- \ifstrempty{#1}{}{#1\par\nobreak \vspace{1\baselineskip}}}}
+ \ifstrempty{#1}{}{#1\par\nobreak \vspace{\tf@adjafterchapskip}}}}
\def\@makeschapterhead#1{%
+ \tf@setafterchapskip
{ \tf@chapformat
\interlinepenalty\@M
#1\par\nobreak
- \vspace{1\baselineskip}}}
+ \vspace{\tf@adjafterchapskip}}}
+
+
+% Sections: redefine \@startsection to support adjusting space after section headings
+\def\@startsection#1#2#3#4#5#6{%
+ \if@noskipsec \leavevmode \fi
+ \par
+ \@tempskipa #4\relax
+ \@afterindenttrue
+ \ifdim \@tempskipa <\z@
+ \@tempskipa -\@tempskipa \@afterindentfalse
+ \fi
+ \if@nobreak
+ \everypar{}%
+ \else
+ \addpenalty\@secpenalty\addvspace\@tempskipa
+ \fi
+ \@ifstar
+ {\@ssect{#3}{#4}{\dimexpr #5 -\tf@adjaftersec \relax}{#6}}%
+ {\@dblarg{\@sect{#1}{#2}{#3}{#4}{\dimexpr #5 -\tf@adjaftersec \relax}{#6}}}}
% Title page: commands for use with \maketitle
@@ -355,7 +384,8 @@
% Table of Contents: formatting
-\setcounter{tocdepth}{0}
+
+\setcounter{tocdepth}{0}
\renewcommand*{\l@part}[2]{%
\ifnum \c@tocdepth >-2\relax
@@ -480,10 +510,10 @@
\tf@chapter*{\notesname}%
\@mkboth{\MakeUppercase\notesname}{\MakeUppercase\notesname}%
\addcontentsline{toc}{chapter}{\notesname}%
- \mbox{}\par%
- \vspace{-1.5\baselineskip}%
- \let\@afterindentfalse\@afterindenttrue
- \singlespacing}%
+ \vspace{\dimexpr -5\tf@singlelineskip +1\baselineskip \relax}%
+ \singlespacing\mbox{}%
+ \def\tf@adjaftersec{\dimexpr \tf@singlelineskip -\p@ \relax}
+ \let\@afterindentfalse\@afterindenttrue}%
% Renew \chapter command to: (1) reset endnotes counter at each chapter, and (2) add subheadings for each chapter in \endnotes formatting.
\RenewDocumentCommand{\chapter}{som}{%