forked from HoTT/book
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cover-a4.tex
61 lines (49 loc) · 1.39 KB
/
cover-a4.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
% Cover for home-made copies. Print this with a color printer.
\input{opt-a4}
\input{opt-color}
\documentclass[\OPTfontsize]{article}
\usepackage[utf8]{inputenc}
\usepackage{xcolor}
\usepackage{wallpaper}
\definecolor{covercolor}{cmyk}{\OPTcovercolor}
\definecolor{covertext}{cmyk}{\OPTcovertextcolor}
\pagecolor{covercolor}
%%% 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
\newlength{\coverheight}
\setlength{\coverheight}{297mm} % Reported as total cover height
\newlength{\coverwidth}
\setlength{\coverwidth}{210mm} % Reported as "spine begins at"
\usepackage[margin=0pt,
papersize={\OPTpagesize},
noheadfoot]{geometry}
%\usepackage{layout}
\newcommand{\coverpage}[1]{\vbox to \coverheight{\hbox to \coverwidth{#1}}}
\parindent=0pt
\parskip=0pt
\input{frontpage}
\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
\ThisLRCornerWallPaper{1.1}{\OPThifrontimage}
\coverpage{\frontpage}
\newpage
\ThisLRCornerWallPaper{0.7}{\OPThibackimage}
\coverpage{\backpage}
\end{document}