-
Notifications
You must be signed in to change notification settings - Fork 0
/
thesis-format.sty
29 lines (27 loc) · 1.12 KB
/
thesis-format.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
\newcommand\partfontsize{12pt}
% redefine \part to not make a new page
% Approach: create \@ambrosepart from \@part and remove formatting from both
% (left \@spart alone, so \part* isn't changed)
\renewcommand\part{\cleardoublepage %\thispagestyle{empty}%
%\null\vfil%
\markboth{}{}
\secdef\@ambrosepart\@spart}
\def\@ambrosepart[#1]#2{%
\ifnum \c@secnumdepth >-2\relax \refstepcounter{part}%
\addcontentsline{toc}{part}{\partname\ \thepart.
\protect\enspace\protect\noindent#1}%
\else
\addcontentsline{toc}{part}{#1}\fi
\begingroup\centering
\ifnum \c@secnumdepth >-2\relax
{\fontsize{\partfontsize}{\partfontsize}\bfseries
\partname\ \thepart} \vskip 20\p@ \fi
\fontsize{\partfontsize}{\partfontsize}\bfseries
#1\vfil\vfil\endgroup%
%\newpage\thispagestyle{empty}%
% vertical space for chapter heading (doesn't seem to work very consistently)
\vskip 20\p@
}
% also provide a way to start a chapter without a page break so the first
% chapter of a part is on the same page as the part title
\newcommand\chapternobreak[1]{{\let\clearpage\relax \chapter{#1}}}