-
Notifications
You must be signed in to change notification settings - Fork 91
/
sofp-cover-parameters.tex
74 lines (62 loc) · 3.4 KB
/
sofp-cover-parameters.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
\usepackage{wallpaper}
\usepackage{amsmath}
\usepackage{mathpazo}
\usepackage{helvet}
\renewcommand{\ttdefault}{cmtt}
\usepackage{newtxmath}
\usepackage[T2A,T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{tipa}
\usepackage{tipx}
%% ----------------------------------------------------------------------------
%% Book Parameters - Included in body and cover
%% ----------------------------------------------------------------------------
\usepackage{pgf}% Fancy math
% Note that some printers require specific page count multiples:
% -- Createspace: page count MUST be divisible by 2.
% -- Ingram: page count MUST be divisible by 2.
% -- Blurb : page count MUST be divisible by 6.
% Add blank pages as needed in final PDF generations!
\pgfmathsetmacro\TotalPageCount{TOTALPAGES}% Must be manually entered
\pgfmathsetmacro\PaperWidthPt{7.444in}%
\pgfmathsetmacro\PaperHeightPt{9.68in}%
%% ----------------------------------------------------------------------------
%% Computed parameters for cover and jacket design
% CreateSpace and Ingram, use different paper stock so the spine width must
% be adjusted to refect that.
% For example Createspace, White paper: multiply page count by 0.002252
%
% Use Createspace parameters for Lulu.com
\pgfmathsetmacro\SinglePageThicknessPt{0.002252in}% Createspace, White B&W Paper
%\pgfmathsetmacro\SinglePageThicknessPt{0.002143in}% Blurb, Standard and Economy B&W Paper
%\pgfmathsetmacro\SinglePageThicknessPt{0.002602in}% Blurb, Standard and Economy Color Paper
%\pgfmathsetmacro\SinglePageThicknessPt{0.002110in}% Ingram, Standard White B&W Paper (50lb)
%\pgfmathsetmacro\SinglePageThicknessPt{0.002110in}% Ingram, Standard Color Paper (50lb)
%\pgfmathsetmacro\SinglePageThicknessPt{0.002720in}% Ingram, Premium Color Paper (70lb)
\pgfmathsetmacro\HorBleedPt{0.125in}%
\pgfmathsetmacro\VerBleedPt{0.125in}%
\pgfmathsetmacro\FoldVariancePt{0.0625in}%
%% Every book will vary slightly when bound. Allow for 0.0625" variance on either
%% side of the fold lines for your cover. For example, if your spine width is 1",
%% your text should be no wider than 0.875". Because of this variance, avoid hard
%% edges or lines that end on the fold line.
%% Cover Width calculation at 6" x 9" cover with 60 B&W pages on white paper:
%% 0.125" + 6" + (60 * 0.002252)" + 6" + .125" = 12.385"
%% Cover Height calculation: 6" x 9": 0.125" + 9" + .125" = 9.25"
\pgfmathsetmacro\SpineWidthPt{\SinglePageThicknessPt*\TotalPageCount}%
\pgfmathsetmacro\CoverWidthPt{\PaperWidthPt+\HorBleedPt}%
\pgfmathsetmacro\JacketWidthPt{\CoverWidthPt+\SpineWidthPt+\CoverWidthPt}%
\pgfmathsetmacro\CoverHeightPt{\VerBleedPt+\PaperHeightPt+\VerBleedPt}%
\pgfmathsetmacro\PtsPerInch{72.27}% Slightly more than 72 - odd.
\pgfmathsetmacro\SpineWidth{\SpineWidthPt / \PtsPerInch}%
\pgfmathsetmacro\PaperWidth{\PaperWidthPt / \PtsPerInch}%
\pgfmathsetmacro\CoverWidth{\CoverWidthPt / \PtsPerInch}%
\pgfmathsetmacro\JacketWidth{\JacketWidthPt / \PtsPerInch}%
\pgfmathsetmacro\PaperHeight{\PaperHeightPt / \PtsPerInch}%
\pgfmathsetmacro\CoverHeight{\CoverHeightPt / \PtsPerInch}%
\pgfmathsetmacro\HorBleed{\HorBleedPt / \PtsPerInch}%
\pgfmathsetmacro\VerBleed{\VerBleedPt / \PtsPerInch}%
\pgfmathsetmacro\FoldVariance{\FoldVariancePt/ \PtsPerInch}%
%% ----------------------------------------------------------------------------
%% End of Book Parameters.
%% ----------------------------------------------------------------------------