From 9db0cf1705473bf1a9bc25a2f297a0b1aff4bd7e Mon Sep 17 00:00:00 2001 From: Torben <59419684+entorb@users.noreply.github.com> Date: Tue, 28 Dec 2021 10:26:27 +0100 Subject: [PATCH 1/3] adding part splits --- hpmor.tex | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/hpmor.tex b/hpmor.tex index ae15f79e..7a6dc5e4 100644 --- a/hpmor.tex +++ b/hpmor.tex @@ -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} @@ -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} @@ -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} @@ -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} @@ -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} @@ -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} From b4444656959a096b2a8173cb7fd7e613b19a72b8 Mon Sep 17 00:00:00 2001 From: Torben <59419684+entorb@users.noreply.github.com> Date: Tue, 28 Dec 2021 10:26:27 +0100 Subject: [PATCH 2/3] adding part splits --- hpmor.tex | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/hpmor.tex b/hpmor.tex index ae15f79e..7a6dc5e4 100644 --- a/hpmor.tex +++ b/hpmor.tex @@ -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} @@ -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} @@ -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} @@ -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} @@ -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} @@ -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} From 5d02913bc8632018e03dcf243d4a47991ff8e0e4 Mon Sep 17 00:00:00 2001 From: Reuben Thomas Date: Wed, 29 Dec 2021 17:11:14 +0000 Subject: [PATCH 3/3] Style part names in the table of contents --- hp-book.sty | 3 +++ hp-contents.tex | 9 +++++++++ 2 files changed, 12 insertions(+) diff --git a/hp-book.sty b/hp-book.sty index 058b0f4e..ecc34527 100644 --- a/hp-book.sty +++ b/hp-book.sty @@ -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} diff --git a/hp-contents.tex b/hp-contents.tex index a58ca6a0..6f5d859c 100644 --- a/hp-contents.tex +++ b/hp-contents.tex @@ -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}