Skip to content

Commit 5d02913

Browse files
committed
Style part names in the table of contents
1 parent 8ce0fd9 commit 5d02913

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

hp-book.sty

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@
5252
%
5353
\makeatletter
5454
\makechapterstyle{evans}{%
55+
\renewcommand*{\partnamefont}{\hpfont\huge}
56+
\renewcommand*{\partnumfont}{\partnamefont}
57+
\renewcommand*{\parttitlefont}{\hpfont\Huge}
5558
\renewcommand*{\chapnamefont}{\hpfont\large}
5659
\renewcommand*{\chapnumfont}{\chapnamefont}
5760
\renewcommand*{\chaptitlefont}{\hpfont\huge}

hp-contents.tex

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,26 @@
11
\cleartorecto
22
\renewcommand*{\printtoctitle}[1]{\centering\Huge{\hpfont\MakeUppercase{#1}}}
33
\setlength{\cftbeforechapterskip}{.5\baselineskip plus 12pt minus 3pt}
4+
\setlength{\cftbeforepartskip}{1\baselineskip plus 12pt minus 3pt}
5+
\renewcommand*{\cftpartleader}{\space\space}
6+
\renewcommand*{\cftpartfillnum}[1]{%
7+
\cftpartafterpnum\par}
48
\renewcommand*{\cftchapterleader}{\space\space}
59
\renewcommand*{\cftchapterfillnum}[1]{%
610
{\cftchapterleader}\nobreak%
711
{#1}%
812
\cftchapterafterpnum\par}
913
\setrmarg{0em}
14+
\setlength\cftpartindent{0pt}
15+
\setlength\cftpartnumwidth{0pt}
1016
\setlength\cftchapterindent{0pt}
1117
\setlength\cftchapternumwidth{0pt}
18+
\renewcommand*{\cftpartafterpnum}{\cftparfillskip}
1219
\renewcommand*{\cftchapterafterpnum}{\cftparfillskip}
20+
\renewcommand*{\cftpartfont}{}
1321
\renewcommand*{\cftchapterfont}{}
1422

23+
\renewcommand\partnumberline[1]{\hfil\thispagestyle{empty}{\hpfont\textls[30]{\large\MakeUppercase{\partname} #1}}\hfil\strut\par\nopagebreak\hfil}
1524
\renewcommand\chapternumberline[1]{\hfil\thispagestyle{empty}{\hpfont\textls[30]{\IfInteger{#1}{\NUMBERstringnum{#1}}{Appendix #1}}}\hfil\strut\par\nopagebreak\hfil}
1625

1726
\settocdepth{chapter}

0 commit comments

Comments
 (0)