-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcover.tex
45 lines (40 loc) · 1.14 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
\documentclass{article}
\makeatletter
\usepackage{calc}
\newlength\onePageWidth
\newlength\onePageHeight
\newlength\spineWidth
% pagesize: 5.125in x 8.25in
% spinewidth: 9.374mm
\setlength{\onePageWidth}{5.125in}
\setlength{\onePageHeight}{8.25in}
\setlength{\spineWidth}{9.374mm}
\newlength\geoPaperWidth
\setlength\geoPaperWidth{2\onePageWidth+\spineWidth}
\newlength\frontCoverX
\setlength\frontCoverX{\onePageWidth+\spineWidth}
\usepackage[
paperwidth=\geoPaperWidth,
paperheight=\onePageHeight,
nohead,
nofoot,
margin=0pt]{geometry}
\usepackage[cmyk]{xcolor}
\usepackage{graphicx}
\usepackage{eso-pic}
\graphicspath{{./}}
\makeatother
\begin{document}
\mbox{}
\pagecolor[RGB]{137, 101, 82}
%
\AddToShipoutPictureFG*{\put(\LenToUnit{0mm},\LenToUnit{0mm})%
{\includegraphics[keepaspectratio, height=\paperheight]{cover_back.pdf}}}
%
\AddToShipoutPictureFG*{\put(\LenToUnit{\onePageWidth},\LenToUnit{0mm})%
{\includegraphics[keepaspectratio, height=\paperheight]{cover_spine_L.pdf}}}
%
\AddToShipoutPictureFG*{\put(\LenToUnit{\frontCoverX},\LenToUnit{0mm})%
{\includegraphics[keepaspectratio, height=\paperheight]{cover_front.pdf}}}
%
\end{document}