forked from rrthomas/hpmor
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathhp-dust-jacket.tex
76 lines (64 loc) · 2.61 KB
/
hp-dust-jacket.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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
\input{hp-paper-type}
% N.B. All text and images should be 6mm away from all edges
\newcounter{bookpagecount}
\setcounter{bookpagecount}{\XeTeXpdfpagecount"\bookfile"}
\RequirePackage{calc} % This line must be after the previous to avoid an error
\newlength{\hppaperwidth} % no. of pages ÷ 2 × width per sheet
\setlength{\hppaperwidth}{\bookpaper * \value{bookpagecount} / \real{2.0}}
\newlength{\hpspinewidth} % paper thickness + 5mm
\setlength{\hpspinewidth}{\hppaperwidth + 5mm}
\makeatletter
\setbox\z@=\hbox{\XeTeXpdffile"\bookfile"\relax}
\newlength{\hpcoverwidth} % paper width + 8mm
\setlength{\hpcoverwidth}{\the\wd\z@ + 8mm}
\newlength{\hpcoverheight} % coverheight: paper height + 1mm
\setlength{\hpcoverheight}{\the\ht\z@ + 1mm}
\makeatother
% flapwidth: 60mm+3mm each side
\documentclass[12pt,coverwidth=\the\hpcoverwidth,coverheight=\the\hpcoverheight,spinewidth=\the\hpspinewidth,marklength=0mm,bleedwidth=5mm,flapwidth=63mm, french]{bookcover}
% traduction FR
\usepackage{polyglossia}
\setmainlanguage{french}
\input{hp-header}
\usepackage{contour}
\input{hp-title}
\begin{document}
{
\definecolor{backgroundcover}{HTML}{272c36}
\setbookcover{bgcolor}{whole}{color=backgroundcover}
\setbookcover{fgfirst}{remark}{
\bfseries\color{blue}DUST JACKET}
\setbookcover{bgpic}{front}{cover1.pdf}
\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}