-
Notifications
You must be signed in to change notification settings - Fork 0
/
pvamuconfig.sty
154 lines (115 loc) · 5.82 KB
/
pvamuconfig.sty
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% New template code for TAMU Theses and Dissertations starting Fall 2012.
% For more info about this template or the
% TAMU LaTeX User's Group, see http://www.howdy.me/.
%
% Author: Wendy Lynn Turner
% Version 1.7
% Last updated 7/8/2013
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ProvidesPackage{pvamuconfig}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% Titlepage Commands
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\pvamucollege}{College Name}
\newcommand{\pvamumanuscripttitle}{Default Title}
\newcommand{\pvamupapertype}{DissertationOrThesis}
\newcommand{\pvamusubmitto}{Default Submit To}
\newcommand{\pvamudegree}{Doctor of Philosophy}
\newcommand{\pvamumajor}{Majar Name}
\newcommand{\pvamufullname}{Full Name}
\newcommand{\pvamuadvisor}{Advisor Name}
\newcommand{\pvamudepthead}{Department Head}
\newcommand{\pvamucollegedean}{College Dean Name}
\newcommand{\pvamugraddean}{Graduate School Dean Name}
\newcommand{\pvamugradmonth}{MonthofGraduation}
\newcommand{\pvamugradyear}{YearofGraduation}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% Titlesec Customations
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%\titleformat{\chapter}{\centering\large\bf}{\thechapter.}{1em}{}
\titleformat{\chapter}[display]
{\normalsize \normalsize \color{black}}
{\centering\bfseries\large \color{black} \MakeUppercase {\chaptertitlename \hspace{1 ex}} {\thechapter}} {4 pt} {\centering\bfseries\large}
%\titleformat{\section}{\centering\normalsize}{\thesection}{1em}{}
%\titleformat{\subsection}{\centering\normalsize\it}{\thesubsection}{1em}{}
%\titleformat{\subsubsection}{\centering\normalsize\it}{\thesubsubsection}{1em}{}
\titleformat{\section}{\normalsize\fontsize{12}{17}\bfseries}{\thesection}{1em}{}
\titleformat{\subsection}{\normalsize\fontsize{12}{17}\itshape}{\thesubsection}{1em}{}
\titleformat{\subsubsection}{\normalsize\fontsize{12}{17}\itshape}{\hspace{1.5em}\thesubsubsection}{1em}{}
\setcounter{secnumdepth}{5}
\addtocontents{toc}{\protect\renewcommand{\protect\cftchapleader}
{\protect\cftdotfill{\cftsecdotsep}}} % puts leader dots on chapters.
%%%%%%%% Remove the extra vertical space before chapter titles when using report class %%%%%%%%%%%
\makeatletter
\def\ttl@mkchap@i#1#2#3#4#5#6#7{%
\ttl@assign\@tempskipa#3\relax\beforetitleunit
\vspace{\@tempskipa}%<<<<<< REMOVE THE * AFTER \vspace
\global\@afterindenttrue
\ifcase#5 \global\@afterindentfalse\fi
\ttl@assign\@tempskipb#4\relax\aftertitleunit
\ttl@topmode{\@tempskipb}{%
\ttl@select{#6}{#1}{#2}{#7}}%
\ttl@finmarks % Outside the box!
\@ifundefined{ttlp@#6}{}{\ttlp@write{#6}}}
\makeatother
%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%% TOC Customations %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%% Aesthetic spacing redefines that look nicer to me than the defaults.
%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% Makes the font in the TOC normal.
\renewcommand\cftsecfont{\normalfont}
\renewcommand\cftsecpagefont{\normalfont}
\renewcommand\cftpartfont{\normalfont}
\renewcommand\cftpartpagefont{\normalfont}
\renewcommand{\cftpartleader}{\cftdotfill{\cftdotsep}} % adds leader dots for parts
\renewcommand{\cftchapleader}{\cftdotfill{\cftdotsep}} % adds leader dots for chapters
\renewcommand{\cftchapaftersnum}{.} % adds a period after chapter numbers in the toc.
% commented out 3-24
% \renewcommand\cftsecafterpnum{\vskip\baselineskip} % These lines allow for long toc titles to be displayed single-spaced within.
% \renewcommand\cftsubsecafterpnum{\vskip\baselineskip}
% \renewcommand\cftsubsubsecafterpnum{\vskip\baselineskip}
% \renewcommand\cftchapafterpnum{\vskip\baselineskip}
% \renewcommand\cftpartafterpnum{\vskip\baselineskip}
% Uncomment this line if you need more space between your table/figure numbers and your title in your
% lof or lot. This will only need to be done if you have > 99 tables or figures in your manuscript.
%\setlength{\cfttabnumwidth}{3em} % Modify number width in LoT and LOF
%%%%%%%%%%% Makes the appear TOC doublespaced and almost singlespaced for sections.
%commented out 3-24
% \setlength\cftparskip{-2pt}
% \setlength\cftbeforechapskip{0pt}
% \setlength\cftbeforepartskip{0pt}
% \setlength\cftbeforesubsecskip{-6pt}
% \setlength\cftbeforesubsubsecskip{-6pt}
% \setlength\cftbeforesecskip{-6pt}
%%%%%%%%%%%%%%%%%%%%%
%%%%% These change spacing in the toc.. Leave for now for tweaking.
%\cftsetindents{chapter}{0in}{.3in}
%\cftsetindents{section}{0.5in}{0in} %% adjusts Indents and Numwidths for tocloft. http://tex.stackexchange.com/questions/50471/question-about-indent-lengths-in-toc
%\cftsetindents{subsection}{1in}{0in}
%\cftsetindents{subsubsection}{1.5in}{0in}
%\cftsetindents{paragraph}{0.5in}{0.5in}
\preto\figure{% Removes the extra space added before new chapters
\ifnum\value{figure}=0\addtocontents{lof}{\vskip-10pt}\fi
}
\preto\table{% Removes the extra space added before new chapters
\ifnum\value{table}=0\addtocontents{lot}{\vskip-10pt}\fi
}
\preto\section{% Removes the extra space added before new chapters
\ifnum\value{section}=0\addtocontents{toc}{\vskip+10pt}\fi
}
\renewcommand{\cftloftitlefont}{\hfill\normalsize\rm\uppercase}
\renewcommand{\cftchappagefont}{\normalsize\rm} % Makes the chapter page numbers the default size and font.
\renewcommand{\cftchapfont}{\normalsize\rm}
\renewcommand{\cftchapleader}{\normalsize\rm}
\let\chaptermarkOLD\chaptermark
\renewcommand*\chaptermark[1]{\chaptermarkOLD{#1}\addtocontents{thefigure}{\protect\addvspace{30pt}}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% fix spacing in front of figures
\setlength{\textfloatsep}{40pt plus 8.0pt minus 4.0pt}
\setlength{\floatsep}{40pt plus 8.0pt minus 4.0pt}
\setlength{\intextsep}{40pt plus 8.0pt minus 4.0pt}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%