texlive[46403] Master/texmf-dist: thesis-gwu (21jan18)
commits+karl at tug.org
commits+karl at tug.org
Sun Jan 21 23:32:47 CET 2018
Revision: 46403
http://tug.org/svn/texlive?view=revision&revision=46403
Author: karl
Date: 2018-01-21 23:32:47 +0100 (Sun, 21 Jan 2018)
Log Message:
-----------
thesis-gwu (21jan18)
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/latex/thesis-gwu/README.md
trunk/Master/texmf-dist/doc/latex/thesis-gwu/thesis-sample.pdf
trunk/Master/texmf-dist/tex/latex/thesis-gwu/thesis-gwu.cls
Modified: trunk/Master/texmf-dist/doc/latex/thesis-gwu/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/thesis-gwu/README.md 2018-01-21 22:32:31 UTC (rev 46402)
+++ trunk/Master/texmf-dist/doc/latex/thesis-gwu/README.md 2018-01-21 22:32:47 UTC (rev 46403)
@@ -1,13 +1,13 @@
-| Build Status | Latest Release | Version | Last Commit | Activity |
-| :--------------------------------------: | :--------------------------: | :----: | :------: | :------: |
-| [![Travis][travis_shield]][travis] | [![Github Release][release_shield]][github_release] | [![Github Version][version_shield]][github_version] | [![Github Last Commit][last_commit_shield]][github_last_commit] | [![Github commit activity][activity_shield]][github_activity] |
+| Build Status | Latest Release | Version | Last Commit | Activity | CTAN |
+| :--------------------------------------: | :--------------------------: | :----: | :------: | :------: | :----: |
+| [![Travis][travis_shield]][travis] | [![Github Release][release_shield]][github_release] | [![Github Version][version_shield]][github_version] | [![Github Last Commit][last_commit_shield]][github_last_commit] | [![Github commit activity][activity_shield]][github_activity] | [![CTAN][ctan_shield]][ctan] |
-
[travis_shield]: https://travis-ci.org/skulumani/thesis-gwu.svg?branch=master
[release_shield]: https://img.shields.io/github/release/skulumani/thesis-gwu.svg
[version_shield]: https://badge.fury.io/gh/skulumani%2Fthesis-gwu.svg
[last_commit_shield]: https://img.shields.io/github/last-commit/skulumani/thesis-gwu.svg
[activity_shield]: https://img.shields.io/github/commit-activity/y/skulumani/thesis-gwu.svg
+[ctan_shield]: https://img.shields.io/ctan/v/tex.svg
[travis]: https://travis-ci.org/skulumani/thesis-gwu
[github_release]: https://github.com/skulumani/thesis-gwu/releases/latest
@@ -14,6 +14,7 @@
[github_version]: https://github.com/skulumani/thesis-gwu/releases/latest
[github_last_commit]: https://github.com/skulumani/thesis-gwu/commits/master
[github_activity]: https://github.com/skulumani/thesis-gwu/graphs/commit-activity
+[ctan]: https://ctan.org/pkg/thesis-gwu
## [GWU Thesis](https://skulumani.github.io/2016/10/thesis-gwu)
@@ -20,6 +21,25 @@
This is a GWU SEAS thesis template.
It complies with the requirements as laid out by the [ETD](http://library.gwu.edu/etd/formatting-content).
+### Installing
+
+You can install this thesis class in one of two ways:
+
+1. Clone/Download this repo onto your computer, and use
+
+~~~
+\documentclass[path/to/thesis-gwu]
+~~~
+
+2. Install thesis-gwu from CTAN
+
+~~~
+tlmgr install thesis-gwu
+~~~
+
+Which will download this class file to your computer and install it appropriately.
+Any document on your machine can then use `thesis-gwu`
+
### Building the PDF
To build the document, it is easiest to use the great [`latexmk`](http://mg.readthedocs.io/latexmk.html) by simply running:
Modified: trunk/Master/texmf-dist/doc/latex/thesis-gwu/thesis-sample.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/tex/latex/thesis-gwu/thesis-gwu.cls
===================================================================
--- trunk/Master/texmf-dist/tex/latex/thesis-gwu/thesis-gwu.cls 2018-01-21 22:32:31 UTC (rev 46402)
+++ trunk/Master/texmf-dist/tex/latex/thesis-gwu/thesis-gwu.cls 2018-01-21 22:32:47 UTC (rev 46403)
@@ -49,7 +49,7 @@
%% 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.
@@ -56,7 +56,7 @@
\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 at bibliography{#1} %
}
-%% ---- CHAPTER HEADINGS -----------------------------------------------
+%% ---- CHAPTER/SECTION HEADINGS -----------------------------------------------
% Change the chapter headings to uppercase.
-\renewcommand{\@chapapp}{CHAPTER}
+% \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 at secnumdepth >\m at 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 %
- } %
-}
+% % 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 at secnumdepth >\m at 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.
More information about the tex-live-commits
mailing list