-
Notifications
You must be signed in to change notification settings - Fork 0
/
cover.tex
104 lines (75 loc) · 2.04 KB
/
cover.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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
\documentclass[
pageWidth = 135mm,
pageHeight = 120mm,
spineWidth = 7.5mm,
%varnishmask,
showtrims,
%showframe,
]{anecdote-cover}
% spine width:
% (122 pages / 2) * 0.106 + 1mm = 7.466mm
\usepackage{cover-local}
\makeatletter
% Use \colorbox{bgcolor}{ ... } from xcolor for a page with background color.
% === Back ============================================================
\SetCoverBack{%
\ifvarnishmask\mbox{}%
\else
\centering
\mbox{}\vfill
EDIZIONI SANTACITTARAMA
\vspace*{4mm}
\emph{in distribuzione gratuita}
\vspace*{9mm}
\fi}
% === Spine ===========================================================
\SetCoverSpine{%
\ifvarnishmask\mbox{}%
\else
%
\hspace*{10mm}%
%
Ajahn Munindo\hfill Riflessioni sul Dhammapada\hspace*{4mm}%
%
{\volumeFont\volumeSize\color[gray]{0.75} Vol 3.}%
%
\hspace*{10mm}%
%
\fi}
% === Set Coffins =====================================================
\SetCoverCoffins
% === Front ===========================================================
\NewCoffin\Photo
\NewCoffin\Title
\NewCoffin\Author
\newlength\photoWidth
\newlength\authorWidth
\setlength{\photoWidth}{95mm}
\setlength{\authorWidth}{38mm}
\SetHorizontalCoffin\Photo{%
\placeholder{\includegraphics[width=\photoWidth,keepaspectratio]{cover_photo.jpg}}%
}
\SetHorizontalCoffin\Title{%
\resizebox{\photoWidth}{!}{\titleFont\titleSize\color[gray]{0.35}\soTitle{Riflessioni sul Dhammapada}}%
}
\SetHorizontalCoffin\Author{%
\begin{minipage}{\linewidth}%
\centering
\resizebox{\authorWidth}{!}{\authorFont\color[gray]{0.35}\soAuthor{Ajahn Munindo}}\\
{\color[gray]{0.3}\rule[6pt]{\authorWidth}{0.25pt}}\\
\vspace*{-7pt}%
{\volumeFont\volumeSize\color[gray]{0.75}\soVolume{Terzo Volume}}
\end{minipage}%
}
\JoinCoffins*\coverFront[hc,t]\Photo[hc,b](0pt,-61.5mm)
\ifvarnishmask\relax
\else
\JoinCoffins*\coverFront[hc,t]\Title[hc,t](0pt,-64mm)
\JoinCoffins*\coverFront[hc,t]\Author[hc,t](0pt,-102mm)
\fi
% === Join Coffins ====================================================
\JoinCoverCoffins
\makeatother
\begin{document}
\CoverPage
\end{document}