Skip to content

Commit

Permalink
Merge pull request #35 from entorb/adding_parts
Browse files Browse the repository at this point in the history
adding part splits
  • Loading branch information
rrthomas authored Dec 30, 2021
2 parents 422895f + 5d02913 commit 7db63f1
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
3 changes: 3 additions & 0 deletions hp-book.sty
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@
%
\makeatletter
\makechapterstyle{evans}{%
\renewcommand*{\partnamefont}{\hpfont\huge}
\renewcommand*{\partnumfont}{\partnamefont}
\renewcommand*{\parttitlefont}{\hpfont\Huge}
\renewcommand*{\chapnamefont}{\hpfont\large}
\renewcommand*{\chapnumfont}{\chapnamefont}
\renewcommand*{\chaptitlefont}{\hpfont\huge}
Expand Down
9 changes: 9 additions & 0 deletions hp-contents.tex
Original file line number Diff line number Diff line change
@@ -1,17 +1,26 @@
\cleartorecto
\renewcommand*{\printtoctitle}[1]{\centering\Huge{\hpfont\MakeUppercase{#1}}}
\setlength{\cftbeforechapterskip}{.5\baselineskip plus 12pt minus 3pt}
\setlength{\cftbeforepartskip}{1\baselineskip plus 12pt minus 3pt}
\renewcommand*{\cftpartleader}{\space\space}
\renewcommand*{\cftpartfillnum}[1]{%
\cftpartafterpnum\par}
\renewcommand*{\cftchapterleader}{\space\space}
\renewcommand*{\cftchapterfillnum}[1]{%
{\cftchapterleader}\nobreak%
{#1}%
\cftchapterafterpnum\par}
\setrmarg{0em}
\setlength\cftpartindent{0pt}
\setlength\cftpartnumwidth{0pt}
\setlength\cftchapterindent{0pt}
\setlength\cftchapternumwidth{0pt}
\renewcommand*{\cftpartafterpnum}{\cftparfillskip}
\renewcommand*{\cftchapterafterpnum}{\cftparfillskip}
\renewcommand*{\cftpartfont}{}
\renewcommand*{\cftchapterfont}{}

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

\settocdepth{chapter}
Expand Down
6 changes: 6 additions & 0 deletions hpmor.tex
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ \chapter*{Content warnings}
\pagenumbering{arabic}
\setcounter{page}{1}

\part{Harry James Potter-Evans-Verres and the Methods of Rationality}
\include{chapters/hpmor-chapter-001}
\include{chapters/hpmor-chapter-002}
\include{chapters/hpmor-chapter-003}
Expand All @@ -46,6 +47,7 @@ \chapter*{Content warnings}
\include{chapters/hpmor-chapter-019}
\include{chapters/hpmor-chapter-020}
\include{chapters/hpmor-chapter-021}
\part{Harry James Potter-Evans-Verres and the Professor's Games}
\include{chapters/hpmor-chapter-022}
\include{chapters/hpmor-chapter-023}
\include{chapters/hpmor-chapter-024}
Expand All @@ -63,6 +65,7 @@ \chapter*{Content warnings}
\include{chapters/hpmor-chapter-036}
\include{chapters/hpmor-chapter-037}
\include{chapters/hpmor-chapter-038}
\part{Harry James Potter-Evans-Verres and the Shadows of Death}
\include{chapters/hpmor-chapter-039}
\include{chapters/hpmor-chapter-040}
\include{chapters/hpmor-chapter-041}
Expand All @@ -88,6 +91,7 @@ \chapter*{Content warnings}
\include{chapters/hpmor-chapter-061}
\include{chapters/hpmor-chapter-062}
\include{chapters/hpmor-chapter-063}
\part{Hermione Jean Granger and the Phoenix's Call}
\setcounter{chapter}{64}
\include{chapters/hpmor-chapter-065}
\include{chapters/hpmor-chapter-066}
Expand All @@ -110,6 +114,7 @@ \chapter*{Content warnings}
\include{chapters/hpmor-chapter-083}
\include{chapters/hpmor-chapter-084}
\include{chapters/hpmor-chapter-085}
\part{Harry James Potter-Evans-Verres and the Last Enemy}
\include{chapters/hpmor-chapter-086}
\include{chapters/hpmor-chapter-087}
\include{chapters/hpmor-chapter-088}
Expand All @@ -124,6 +129,7 @@ \chapter*{Content warnings}
\include{chapters/hpmor-chapter-097}
\include{chapters/hpmor-chapter-098}
\include{chapters/hpmor-chapter-099}
\part{Harry James Potter-Evans-Verres and the Philosopher's Stone}
\include{chapters/hpmor-chapter-100}
\include{chapters/hpmor-chapter-101}
\include{chapters/hpmor-chapter-102}
Expand Down

0 comments on commit 7db63f1

Please sign in to comment.