-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathhp-contents.tex
30 lines (25 loc) · 972 Bytes
/
hp-contents.tex
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
\cleartorecto
\renewcommand*{\hpmorchapbreak}{\ } % Prevent linebreaks in TOC
\renewcommand*{\printtoctitle}[1]{\centering\huge{\hp\MakeUppercase{#1}}}
\setlength{\cftbeforechapterskip}{.5\baselineskip plus 12pt minus 3pt}
\renewcommand*{\cftchapterleader}{\space—\space}
\renewcommand*{\cftchapterfillnum}[1]{%
{\cftchapterleader}\nobreak%
%\hbox to 1.5em{\cftchapterpagefont #1\hfil}%
{#1}%
\cftchapterafterpnum\par}
\setrmarg{0em}
\setlength\cftchapterindent{0pt}
\setlength\cftchapternumwidth{0pt}
\renewcommand*{\cftchapterafterpnum}{\cftparfillskip}
\renewcommand*{\cftchapterfont}{}%\small}
\renewcommand\chapternumberline[1]{\hfil\thispagestyle{empty}{\hp{\IfInteger{#1}{\NUMBERstringnum{#1}}{Appendix #1}}}\hfil\strut\par\nopagebreak\hfil}
\settocdepth{chapter}
\phantomsection
\label{contents}
\thispagestyle{empty}
\tableofcontents*
\clearpage
\thispagestyle{empty}
\hbox{}
\renewcommand*{\hpmorchapbreak}{\linebreak} % Restore previous functionality