summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2018-01-21 22:32:47 +0000
committerKarl Berry <karl@freefriends.org>2018-01-21 22:32:47 +0000
commit11ff1f72434e2ded98872518df951f532d601b14 (patch)
tree58d18f0ed2ac08ce855b3c902427ddb247dab807 /Master/texmf-dist/tex/latex
parent2a62cd27f234355f6c9e46be9409cc1e36c430ca (diff)
thesis-gwu (21jan18)
git-svn-id: svn://tug.org/texlive/trunk@46403 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex')
-rw-r--r--Master/texmf-dist/tex/latex/thesis-gwu/thesis-gwu.cls73
1 files changed, 47 insertions, 26 deletions
diff --git a/Master/texmf-dist/tex/latex/thesis-gwu/thesis-gwu.cls b/Master/texmf-dist/tex/latex/thesis-gwu/thesis-gwu.cls
index 6a1672bcc3c..a7a22e6cf17 100644
--- a/Master/texmf-dist/tex/latex/thesis-gwu/thesis-gwu.cls
+++ b/Master/texmf-dist/tex/latex/thesis-gwu/thesis-gwu.cls
@@ -49,14 +49,14 @@
%% abstract that prints at the end.
%% 2011.04.09 @Derek Dalle : Convert rac.sty --> thesis.umich.cls
%% 2016.09.24 @Shankar Kulumani : First attempt to modify for GWU
-%%
+%% 2018.01.20 @Shankar Kulumani : Setup titlesec for modifying headings
%% ---- HEADERS --------------------------------------------------------
% This prevents the compiler from running on old versions of LaTeX.
\NeedsTeXFormat{LaTeX2e}
% This command gives the name of the class.
-\ProvidesClass{thesis-gwu}[2016/09/24 GWU Thesis template]
+\ProvidesClass{thesis-gwu}[2018/01/20 v1.2.7 GWU Thesis template]
%% ---- OPTIONS PROCESSING ---------------------------------------------
% Define three switches for the the thesis format types.
@@ -170,6 +170,9 @@
\RequirePackage{microtype}
\RequirePackage{bm}
+% Add package for managing section headings
+\RequirePackage[]{titlesec}
+
% This is useful for complex figures.
\RequirePackage{subcaption}
@@ -1403,31 +1406,49 @@
\@tex@bibliography{#1} %
}
-%% ---- CHAPTER HEADINGS -----------------------------------------------
+%% ---- CHAPTER/SECTION HEADINGS -----------------------------------------------
% Change the chapter headings to uppercase.
-\renewcommand{\@chapapp}{CHAPTER}
-
-% Change the formatting of the first page of each chapter.
-\renewcommand{\@makechapterhead}[1]{%
- % Insert an extra top margin.
- \begin{minipage}{0.8\textwidth} \vspace{1in} \end{minipage} \\ %
- % Insert the text
- { %
- % Ensure proper alignment.
- \parindent 0pt \raggedright %
- % Check for chapter overflow.
- \ifnum \c@secnumdepth >\m@ne %
- % CHAPTER and number
- \begin{center}{\Large\textbf{ \@chapapp{} \thechapter }} \end{center} \par%
- % Vertical space
- \vskip 0.3in \fi %
- % Insert the title of the chapter.
- \begin{center} \LARGE \textbf{ #1} \end{center} %
- % Vertical space after the title
- \nobreak \vskip 0.3in %
- } %
-}
-
+% \renewcommand{\@chapapp}{CHAPTER}
+
+% % Change the formatting of the first page of each chapter.
+% \renewcommand{\@makechapterhead}[1]{%
+% % Insert an extra top margin.
+% % \begin{minipage}{0.8\textwidth} \vspace{1in} \end{minipage} \\ %
+% % Insert the text
+% { %
+% % Ensure proper alignment.
+% \parindent 0pt \raggedright %
+% % Check for chapter overflow.
+% \ifnum \c@secnumdepth >\m@ne %
+% % CHAPTER and number
+% \begin{center}{\Large\textbf{ \@chapapp{} \thechapter }} \end{center} \par%
+% % Vertical space
+% \vskip 0.3in \fi %
+% % Insert the title of the chapter.
+% \begin{center} \LARGE \textbf{ #1} \end{center} %
+% % Vertical space after the title
+% \nobreak \vskip 0.3in %
+% } %
+% }
+\titleformat{\chapter}[hang]
+{\normalfont\normalsize\bfseries\centering}{\chaptertitlename\ \thechapter:}{20pt}{\normalsize}
+\titleformat{\section}
+{\normalfont\normalsize\bfseries}{\thesection}{1em}{\normalsize}
+\titleformat{\subsection}
+{\normalfont\normalsize\bfseries}{\thesubsection}{1em}{\normalsize}
+\titleformat{\subsubsection}
+{\normalfont\normalsize\bfseries}{\thesubsubsection}{1em}{}
+\titleformat{\paragraph}[runin]
+{\normalfont\normalsize\bfseries}{\theparagraph}{1em}{}
+\titleformat{\subparagraph}[runin]
+{\normalfont\normalsize\bfseries}{\thesubparagraph}{1em}{}
+
+\titlespacing*{\chapter} {0pt}{*0}{*4}
+\titlespacing*{\section} {0pt}{3.5ex plus 1ex minus .2ex}{2.3ex plus .2ex}
+\titlespacing*{\subsection} {0pt}{3.25ex plus 1ex minus .2ex}{1.5ex plus .2ex}
+\titlespacing*{\subsubsection}{0pt}{3.25ex plus 1ex minus .2ex}{1.5ex plus .2ex}
+\titlespacing*{\paragraph} {0pt}{3.25ex plus 1ex minus .2ex}{1em}
+\titlespacing*{\subparagraph} {\parindent}{3.25ex plus 1ex minus .2ex}{1em}
%% ---- SPACING --------------------------------------------------------
% This fixes the spacing below captions, which by default can be small.