summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/bookcover/example1.tex
blob: 36a2a7626b3eff24d24266dde07b056b89dff7ae (plain)
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[11pt,spinewidth=25mm,coverwidth=150mm,coverheight=200mm,flapwidth=60mm]{bookcover}
\usepackage{contour}
\contourlength{1pt}
\definecolor{lightbrown}{RGB}{176,88,0}
\colorlet{title}{yellow!60!black}
\begin{document}

% Black background color on the whole cover
\setbookcover{bgcolor}{whole}{color=black}

% Brown background picture on the whole cover, without the flaps
\setbookcover{bgpic}{whole without flaps}{./figures/bg.jpg}

% Vertical light brown transparent trails on the back cover by a tikz code
\setbookcover{bgtikz}{back}{
    \fill[opacity=0.3,color=lightbrown] 
    (0mm,0mm) rectangle (20mm,210mm)
    (100mm,0mm) rectangle (150mm,210mm);}
    
% Vertical light brown transparent trails on the front cover by a tikz code
\setbookcover{bgtikz}{front}{
    \fill[opacity=0.3,color=lightbrown] 
    (0mm,0mm) rectangle (50mm,210mm)
    (130mm,0mm) rectangle (150mm,210mm);}
    
% Remark
\setbookcover{fgfirst}{remark}{
    \bfseries\color{blue}SAMPLE DUST JACKET}
    
% Text on the front cover
\setbookcover{fgfirst}{front}{
    \centering
    \vspace{60mm}
    \color{title}\sffamily\bfseries
    \resizebox*{50mm}{8mm}{\contour[120]{black}{Rose Taylor}}
    \par
    \vspace{20mm}
    \resizebox*{90mm}{40mm}{\parbox{35mm}{
        \centering
        \contour[120]{black}{PROBABILITY}\\
        \contour[120]{black}{THEORY}\\}}}
        
% Picture (cards.png) on the front, behind the title
\setbookcover{fgsecond}{front}{
    \vspace{70mm}
    \centering
    \includegraphics[width=8cm]{./figures/cards.png}}  

% Text on the spine
\setbookcover{fgfirst}{spine}{
    \vfill
    \centering
    \rotatebox[origin=c]{90}{\contour[120]{black}{
        \color{title}\huge\sffamily\bfseries 
        Rose Taylor -- Probability Theory}}
    \vfill}
    
% Text on the back cover
\setbookcover{fgfirst}{back}{
    \centering
    \vspace{20mm}
    \parbox{110mm}{\color{white}
        Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor 
        incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis 
        nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. 
        Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore 
        eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, 
        sunt in culpa qui officia deserunt mollit anim id est laborum.}}
        
% Text and picture (dice.png) on the front flap
\setbookcover{fgfirst}{front flap}{
    \centering
    \vspace{20mm}
    \parbox{40mm}{\color{white}
        Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor 
        incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis 
        nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. 
        Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore 
        eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, 
        sunt in culpa qui officia deserunt mollit anim id est laborum.}
    \vfill
    \includegraphics[width=30mm]{./figures/dice.png}
    \vspace{10mm}}
    
% Text on the back flap
\setbookcover{fgfirst}{back flap}{
    \centering
    \vspace{20mm}
    \parbox{40mm}{\color{white}
        Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor 
        incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis 
        nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. 
        Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore 
        eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, 
        sunt in culpa qui officia deserunt mollit anim id est laborum.}}
        
% Making the dust jucket
\makebookcover

\end{document}