-
Notifications
You must be signed in to change notification settings - Fork 0
/
cover-lulu-paperback.tex
89 lines (71 loc) · 2.21 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
% 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}
% 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
\newlength{\totalwidth}
\setlength{\totalwidth}{978.81pt} % Reported as total cover width
\newlength{\totalheight}
\setlength{\totalheight}{666pt} % Reported as total cover height
\newlength{\spinewidth}
\setlength{\spinewidth}{96.81pt} % Reported as spine width
\newlength{\coverheight}
\setlength{\coverheight}{666pt} % Height of text area
\newlength{\coverwidth}
\setlength{\coverwidth}{441pt} % Width of text area
\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{0.87}{cover-hires}%
\mbox{\coverpage{\backpage}\spine{\spinetext}\coverpage{\frontpage}}%
\end{document}