|
1 | 1 | \documentclass[
|
| 2 | + % bleed is added to the final result |
2 | 3 | coverheight=9.25in,
|
3 |
| - coverwidth=6.125in, % (pagesize - spinewidth) / 2 |
4 |
| - spinewidth=1.014in, |
| 4 | + coverwidth=6.125in, % (pagesize - spinewidth) / 2 == (13.042 - 1.042) / 2 |
| 5 | + spinewidth=1.042in, |
5 | 6 | bleedwidth=0in,
|
6 | 7 | 11pt,
|
7 |
| - marklength=0pt, |
| 8 | + marklength=0in, |
8 | 9 | ]{bookcover}
|
9 | 10 |
|
10 | 11 | \usepackage{fancybox}
|
11 | 12 | \usepackage{wrapfig}
|
12 | 13 | \usepackage[many]{tcolorbox}
|
13 | 14 | \usetikzlibrary{calc,positioning, shadings}
|
14 | 15 | \usepackage[T1]{fontenc}
|
15 |
| - \usepackage{Alegreya} %% Option 'black' gives heavier bold face |
16 |
| - |
17 |
| - \setmainfont{Alegreya Sans}[ |
18 |
| - UprightFeatures={SmallCapsFont=* SC}, |
19 |
| - ItalicFeatures={SmallCapsFont=* SC Italic}, |
20 |
| - BoldFeatures={SmallCapsFont=* SC Bold}, |
21 |
| - BoldItalicFeatures={SmallCapsFont=* SC Bold Italic}, |
22 |
| - ] |
| 16 | + \usepackage{fontspec} |
| 17 | + |
| 18 | + % \setmainfont{AlegreyaSans-Regular}[ |
| 19 | + % BoldFont={AlegreyaSans-Bold}, |
| 20 | + % ItalicFont={AlegreyaSans-Italic}, |
| 21 | + % UprightFeatures={SmallCapsFont=AlegreyaSansSC-Regular}, |
| 22 | + % ItalicFeatures={SmallCapsFont=AlegreyaSansSC-Italic}, |
| 23 | + % BoldFeatures={SmallCapsFont=AlegreyaSansSC-Bold}, |
| 24 | + % BoldItalicFeatures={SmallCapsFont=AlegreyaSansSC-BoldItalic}, |
| 25 | + % ] |
| 26 | + \setmainfont[ |
| 27 | + Path=fonts/, |
| 28 | + Extension=.otf, |
| 29 | + UprightFont=*-Regular, |
| 30 | + ItalicFont=*-Italic, |
| 31 | + BoldFont=*-Bold, |
| 32 | + UprightFeatures={SmallCapsFont=*SC-Regular}, |
| 33 | + ItalicFeatures={SmallCapsFont=*SC-Italic}, |
| 34 | + BoldFeatures={SmallCapsFont=*SC-Bold}, |
| 35 | + BoldItalicFeatures={SmallCapsFont=*SC-BoldItalic}, |
| 36 | + ]{AlegreyaSans} |
23 | 37 |
|
24 | 38 | \newcommand{\olpath}{../}
|
25 | 39 | \newcommand{\whitebg}[1]{%
|
|
76 | 90 | \begin{center}
|
77 | 91 | \vspace{1cm}
|
78 | 92 | \includegraphics[width=.8\coverwidth]{bunnies}
|
79 |
| - \begin{minipage}[t]{.8\coverwidth} |
| 93 | + \begin{minipage}[t]{.75\coverwidth} |
80 | 94 | \input{blurb}
|
81 |
| - \vspace{.5cm} |
| 95 | + \vspace{0.6cm} |
82 | 96 | \end{minipage}
|
83 | 97 |
|
84 | 98 | \begin{minipage}{.85\textwidth}
|
85 | 99 | \rule{\textwidth}{.5pt}
|
86 | 100 |
|
87 | 101 | \begin{tabular}[h]{p{3.4cm} p{\textwidth}}
|
| 102 | + \vspace{5pt} |
88 | 103 | \bartosz
|
89 | 104 | &
|
90 |
| - \vspace{5pt} |
| 105 | + \vspace{10pt} |
91 | 106 | \begin{minipage}[b]{.58\coverwidth}
|
92 | 107 | \fontsize{11pt}{1.4em}\selectfont\textit{Category Theory for Programmers}
|
93 | 108 | is a series of blog posts by Bartosz Milewski, originally posted on bartoszmilewski.com.\\
|
|
0 commit comments