-
Notifications
You must be signed in to change notification settings - Fork 360
/
cover-lulu-paperback.tex
97 lines (77 loc) · 2.34 KB
/
cover-lulu-paperback.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
% Cover for Lulu.com
\input{opt-ustrade}
\documentclass[\OPTfontsize]{article}
\input{opt-color}
\usepackage[utf8]{inputenc}
\usepackage{rotating}
\usepackage{xcolor}
\usepackage{wallpaper}
\definecolor{covercolor}{cmyk}{\OPTcovercolor}
\definecolor{covertext}{cmyk}{\OPTcovertextcolor}
\pagecolor{covercolor}
\usepackage{soul} % Inter-letter spacing
\sodef\ugg{}{0pt plus 1fill}{1em plus 1fill}{0pt}
%%% Set the fonts
\usepackage{mathpazo}
\usepackage[scaled=0.95]{helvet}
\usepackage{courier}
\linespread{1.05} % Palatino looks better with this
\usepackage{graphicx}
\DeclareGraphicsExtensions{.png}
\input{bmpsize-hack} % for bounding boxes in dvi mode
% Some of these dimensions are reported by Lulu.com *after* you
% upload the inner PDF file.
% For casewrap hardcover see http://static.lulu.com/static/images/help_casewrap_6x9.gif
% Dimensions as reported by Lulu.com (download cover template to see)
% Total document size
\newlength{\totalwidth}
\setlength{\totalwidth}{348.085mm} % width
\newlength{\totalheight}
\setlength{\totalheight}{234.95mm} % height
% Spine width
\newlength{\spinewidth}
\setlength{\spinewidth}{36.935mm}
% Book trim size (trade)
\newlength{\coverwidth}
\setlength{\coverwidth}{152.4mm} % width
\newlength{\coverheight}
\setlength{\coverheight}{228.6mm} % height
\usepackage[margin=0pt,
papersize={\totalwidth,\totalheight},
noheadfoot]{geometry}
%\usepackage{layout}
\newcommand{\coverpage}[1]{\vbox to \coverheight{\hbox to \coverwidth{#1}}}
\newcommand{\spine}[1]{\vbox to \coverheight{\hbox to \spinewidth{#1}}}
\parindent=0pt
\parskip=0pt
\input{frontpage}
\newcommand{\spinetext}{
\begin{minipage}[b][\coverheight][t]{\spinewidth}
\begin{center}
\begin{rotate}{270}
\color{covertext}
\hspace{\OPTtopskip}
\begin{minipage}{\coverheight}
{\fontsize{\OPTcoverspinefont}{\OPTcoverspinefont}\fontseries{b}\selectfont%
Homotopy Type Theory}
\end{minipage}
\end{rotate}
\end{center}
\end{minipage}
}
\newcommand{\backpage}{
\begin{minipage}[b][\coverheight][t]{\coverwidth}
\begin{center}
\begin{minipage}[t]{0.80\coverwidth}
\color{covertext}
\vspace{\OPTtopskip}
\input{blurb.tex}
\end{minipage}
\end{center}
\end{minipage}
}
\begin{document}
%\layout
\LRCornerWallPaper{1.0}{cover-lulu-paperback}%
\mbox{\coverpage{\backpage}\spine{\spinetext}\coverpage{\frontpage}}%
\end{document}