Skip to content

Commit

Permalink
Add dust jackets for all print volumes
Browse files Browse the repository at this point in the history
  • Loading branch information
rrthomas committed May 25, 2017
1 parent 8bf97ed commit c0d6e00
Show file tree
Hide file tree
Showing 8 changed files with 76 additions and 52 deletions.
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ Maintainer: Reuben Thomas <[email protected]>
A LaTeX version of
[the popular didactic fan-fiction](http://www.hpmor.com) by Eliezer Yudkowsky, which
can make a PDF ebook (one file) or printable books (either one or six
volumes; the latter option is more practical to bind). There is also a dust
jacket for volume 1 (more will be added!).
volumes; the latter option is more practical to bind). There are also dust
jackets for the printable volumes.

TeXLive 2015 or later is required to build the book.

Expand Down Expand Up @@ -35,15 +35,17 @@ and there are no appendices.
* `latexmk hpmor`: Build the one-volume PDF `hpmor.pdf`
* `latexmk hpmor-N`: Build one of the six individual volumes
`hpmor-1.pdf` to `hpmor-6.pdf`.
* `latexmk hpmor-dust-jacket-1`: produce the dust jacket for Volume 1,
`hpmor-dust-jacket-1.pdf`. Note that this requires the corresponding volume, `hpmor-1.pdf`, to have been built first.
* `latexmk hpmor-dust-jacket-N`: produce the dust jacket for Volume N,
`hpmor-dust-jacket-N.pdf`. Note that this requires the corresponding volume, `hpmor-N.pdf`, to have been built first.
* `latexmk -c`: Remove files produced by building (except PDFs).
* `latexmk -C`: Remove files produced by building (including PDFs).

By default, the dust jackets assume 80gsm plain paper (this affects the thickness of the book and hence the size of the dust jacket). This can be configured in `hp-paper-type.tex`; see `papers.tex` for a list of papers.

The exact sizes of dust jackets may vary; the current parameters were taken from a commercial printer. They can be adjusted in `hp-dust-jacket.tex` as desired.

Note that the back dust-flap is left for you to add your own text; edit `hp-dust-jacket.tex` and search for “PUT YOUR BACK DUST-FLAP TEXT HERE!”.


## Contributing

Expand Down
49 changes: 49 additions & 0 deletions hp-dust-jacket.tex
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
\input{hp-paper-type}

% N.B. All text and images should be 6mm away from all edges
\newcounter{bookpagecount}
\setcounter{bookpagecount}{\XeTeXpdfpagecount"\bookfile"}
Expand All @@ -19,3 +21,50 @@
\input{hp-header}

\usepackage{contour}

\input{hp-title}

\begin{document}
{
\setbookcover{bgcolor}{whole}{color=black}
\setbookcover{fgfirst}{remark}{
\bfseries\color{blue}DUST JACKET}
\setbookcover{bgpic}{front}{cover0.jpg}
\setbookcover{fgfirst}{front}{\hptitle[\coverwidth]{\fullvolumetitle{\volumenumber}}}

% Spine
\setbookcover{fgfirst}{spine}{
\centering
\color{white}\scshape
\vspace{0.5cm}\huge \volumenumber\\[2ex]\Large
\vfill
\rotatebox[origin=c]{90}{\contour[120]{black}{\volumetitle}}
\vfill}

% Back cover
\setbookcover{fgfirst}{back}{
\centering
\vspace{20mm}
\parbox{110mm}{\color{white}\Large\raggedright
Petunia married a biochemist, and Harry grew up reading science and science fiction. Then came the Hogwarts letter, and a world of intriguing new possibilities to exploit. And new friends, like Hermione Granger, and Professor McGonagall, and Professor Quirrell…
}}

% Text on the front flap
\setbookcover{fgfirst}{front flap}{
\centering
\vspace{20mm}
\parbox{40mm}{\color{white}\raggedright\small
HPMOR comes from the world of fan-fiction. With J.~K.~Rowling’s approval, it tells the story of an alternate Harry, an auto-didact rationalist who brings all his powers to bear on the strange new vistas of the world of magic.

\bigskip The books introduce the reader to the ways of thinking Yudkowsky lays out in his blog, \url{lesswrong.com}.}}

% Text on the back flap
\setbookcover{fgfirst}{back flap}{
\centering
\vspace{20mm}
\parbox{40mm}{\color{white}\small\raggedright
PUT YOUR BACK DUST-FLAP TEXT HERE!}}

\makebookcover
}
\end{document}
49 changes: 1 addition & 48 deletions hpmor-dust-jacket-1.tex
Original file line number Diff line number Diff line change
@@ -1,51 +1,4 @@
\def\bookfile{hpmor-1.pdf}
\input{hp-paper-type}

\input{hp-dust-jacket}
\input{hp-title}
\input{hpmor-title-1}

\begin{document}
{
\setbookcover{bgcolor}{whole}{color=black}
\setbookcover{fgfirst}{remark}{
\bfseries\color{blue}DUST JACKET}
\setbookcover{bgpic}{front}{cover0.jpg}
\setbookcover{fgfirst}{front}{\hptitle[\coverwidth]{\fullvolumetitle{1}}}

% Spine
\setbookcover{fgfirst}{spine}{
\centering
\color{white}\scshape
\vspace{0.5cm}\huge 1\\[2ex]\Large
\vfill
\rotatebox[origin=c]{90}{\contour[120]{black}{\volumetitle}}
\vfill}

% Back cover
\setbookcover{fgfirst}{back}{
\centering
\vspace{20mm}
\parbox{110mm}{\color{white}\Large\raggedright
Petunia married a biochemist, and Harry grew up reading science and science fiction. Then came the Hogwarts letter, and a world of intriguing new possibilities to exploit. And new friends, like Hermione Granger, and Professor McGonagall, and Professor Quirrell…
}}

% Text on the front flap
\setbookcover{fgfirst}{front flap}{
\centering
\vspace{20mm}
\parbox{40mm}{\color{white}\raggedright\small
HPMOR comes from the world of fan-fiction. With J.~K.~Rowling’s approval, it tells the story of an alternate Harry, an auto-didact rationalist who brings all his powers to bear on the strange new vistas of the world of magic.

\bigskip The books introduce the reader to the ways of thinking Yudkowsky lays out in his blog, \url{lesswrong.com}.}}

% Text on the back flap
\setbookcover{fgfirst}{back flap}{
\centering
\vspace{20mm}
\parbox{40mm}{\color{white}\small\raggedright
PUT YOUR BACK DUST-FLAP TEXT HERE!}}

\makebookcover
}
\end{document}
\input{hp-dust-jacket}
4 changes: 4 additions & 0 deletions hpmor-dust-jacket-2.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
\def\bookfile{hpmor-2.pdf}
\input{hpmor-title-2}

\input{hp-dust-jacket}
4 changes: 4 additions & 0 deletions hpmor-dust-jacket-3.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
\def\bookfile{hpmor-3.pdf}
\input{hpmor-title-3}

\input{hp-dust-jacket}
4 changes: 4 additions & 0 deletions hpmor-dust-jacket-4.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
\def\bookfile{hpmor-4.pdf}
\input{hpmor-title-4}

\input{hp-dust-jacket}
4 changes: 4 additions & 0 deletions hpmor-dust-jacket-5.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
\def\bookfile{hpmor-5.pdf}
\input{hpmor-title-5}

\input{hp-dust-jacket}
4 changes: 4 additions & 0 deletions hpmor-dust-jacket-6.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
\def\bookfile{hpmor-6.pdf}
\input{hpmor-title-6}

\input{hp-dust-jacket}

0 comments on commit c0d6e00

Please sign in to comment.