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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
|
\documentclass[spinewidth=25mm,coverwidth=15cm,coverheight=20cm,flapwidth=6cm]{bookcover}
\newbookcovercomponenttype{center rotate}{
\parbox[t][\partheight][c]{\partwidth}{
\begin{center}
\rotatebox[origin=c]{90}{#1}
\end{center}}}
\usepackage[outline]{contour}% It doesn't work with xelatex and lualatex
\contourlength{1pt}
\definecolor{lightbrown}{RGB}{176,88,0}
\colorlet{title}{yellow!60!black}
\usepackage[latin]{babel}
\usepackage{lipsum}
\begin{document}
\begin{bookcover}
% Remark
\begin{bookcoverelement}{center}{above front}
\textcolor{blue}{A DUST JACKET}
\end{bookcoverelement}
% Black background color on the whole cover
\begin{bookcoverelement}{color}{bg whole}
black
\end{bookcoverelement}
% Brown background picture on the whole cover, without the flaps
\begin{bookcoverelement}{picture}{bg whole without flaps}
./figures/bg.jpg
\end{bookcoverelement}
% Vertical light brown transparent trails on the back cover by a tikz code
\begin{bookcoverelement}{tikz}{bg back}
\fill[opacity=0.3,color=lightbrown]
(0mm,0mm) rectangle (20mm,210mm) (100mm,0mm) rectangle (150mm,210mm);
\end{bookcoverelement}
% Vertical light brown transparent trails on the front cover by a tikz code
\begin{bookcoverelement}{tikz}{bg front}
\fill[opacity=0.3,color=lightbrown]
(0mm,0mm) rectangle (50mm,210mm) (130mm,0mm) rectangle (150mm,210mm);
\end{bookcoverelement}
% Picture on the front, behind the title
\begin{bookcoverelement}{normal}{front}
\vspace{70mm}
\centering
\includegraphics[width=8cm]{./figures/cards.png}
\end{bookcoverelement}
% Text on the front cover
\begin{bookcoverelement}{normal}{front}
\centering
\vspace{60mm}
\color{title}\sffamily\bfseries
\resizebox*{50mm}{8mm}{\contour{black}{Rose Taylor}}
\par\vspace{20mm}
\resizebox*{90mm}{40mm}{\parbox{35mm}{
\centering
\contour{black}{PROBABILITY}\\
\contour{black}{THEORY}\\}}
\end{bookcoverelement}
% Text on the spine
\begin{bookcoverelement}{center rotate}{spine}
\contour{black}{%
\color{title}\huge\sffamily\bfseries
Rose Taylor -- Probability Theory}
\end{bookcoverelement}
% Text on the back cover
\begin{bookcoverelement}{normal}{back}
\centering
\vspace{20mm}
\parbox{110mm}{\color{white}\lipsum[1]}
\end{bookcoverelement}
% Text and picture on the front flap
\begin{bookcoverelement}{normal}{front flap}
\centering
\vspace{20mm}
\parbox{40mm}{\color{white}\lipsum[2]}
\vfill
\includegraphics[width=30mm]{./figures/dice.png}
\vspace{10mm}
\end{bookcoverelement}
% Text on the back flap
\begin{bookcoverelement}{normal}{back flap}
\centering
\vspace{20mm}
\parbox{40mm}{\color{white}\lipsum[2]}
\end{bookcoverelement}
\end{bookcover}
\end{document}
|