Skip to content

Commit 7db63f1

Browse files
authored
Merge pull request #35 from entorb/adding_parts
adding part splits
2 parents 422895f + 5d02913 commit 7db63f1

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed

hp-book.sty

+3
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

+9
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}

hpmor.tex

+6
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ \chapter*{Content warnings}
2525
\pagenumbering{arabic}
2626
\setcounter{page}{1}
2727

28+
\part{Harry James Potter-Evans-Verres and the Methods of Rationality}
2829
\include{chapters/hpmor-chapter-001}
2930
\include{chapters/hpmor-chapter-002}
3031
\include{chapters/hpmor-chapter-003}
@@ -46,6 +47,7 @@ \chapter*{Content warnings}
4647
\include{chapters/hpmor-chapter-019}
4748
\include{chapters/hpmor-chapter-020}
4849
\include{chapters/hpmor-chapter-021}
50+
\part{Harry James Potter-Evans-Verres and the Professor's Games}
4951
\include{chapters/hpmor-chapter-022}
5052
\include{chapters/hpmor-chapter-023}
5153
\include{chapters/hpmor-chapter-024}
@@ -63,6 +65,7 @@ \chapter*{Content warnings}
6365
\include{chapters/hpmor-chapter-036}
6466
\include{chapters/hpmor-chapter-037}
6567
\include{chapters/hpmor-chapter-038}
68+
\part{Harry James Potter-Evans-Verres and the Shadows of Death}
6669
\include{chapters/hpmor-chapter-039}
6770
\include{chapters/hpmor-chapter-040}
6871
\include{chapters/hpmor-chapter-041}
@@ -88,6 +91,7 @@ \chapter*{Content warnings}
8891
\include{chapters/hpmor-chapter-061}
8992
\include{chapters/hpmor-chapter-062}
9093
\include{chapters/hpmor-chapter-063}
94+
\part{Hermione Jean Granger and the Phoenix's Call}
9195
\setcounter{chapter}{64}
9296
\include{chapters/hpmor-chapter-065}
9397
\include{chapters/hpmor-chapter-066}
@@ -110,6 +114,7 @@ \chapter*{Content warnings}
110114
\include{chapters/hpmor-chapter-083}
111115
\include{chapters/hpmor-chapter-084}
112116
\include{chapters/hpmor-chapter-085}
117+
\part{Harry James Potter-Evans-Verres and the Last Enemy}
113118
\include{chapters/hpmor-chapter-086}
114119
\include{chapters/hpmor-chapter-087}
115120
\include{chapters/hpmor-chapter-088}
@@ -124,6 +129,7 @@ \chapter*{Content warnings}
124129
\include{chapters/hpmor-chapter-097}
125130
\include{chapters/hpmor-chapter-098}
126131
\include{chapters/hpmor-chapter-099}
132+
\part{Harry James Potter-Evans-Verres and the Philosopher's Stone}
127133
\include{chapters/hpmor-chapter-100}
128134
\include{chapters/hpmor-chapter-101}
129135
\include{chapters/hpmor-chapter-102}

0 commit comments

Comments
 (0)