-
Notifications
You must be signed in to change notification settings - Fork 5
/
back-cover.tex
99 lines (86 loc) · 3.02 KB
/
back-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
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
90
91
92
93
94
95
96
97
98
99
\documentclass[fontsize=11bp]{scrartcl}
% Margins: see http://practicaltypography.com/page-margins.html and
% http://practicaltypography.com/line-length.html
% We're aiming for 80-ish characters per line.
\usepackage[a5paper,
inner=0.6in,outer=0.6in,top=0.75in,bottom=0.5in,
footnotesep=11bp,
footskip=3em,
includefoot,
]{geometry}
\usepackage{fontspec}
\setmainfont[
Ligatures=TeX,
Numbers={Proportional,Lowercase},
UprightFeatures={
SizeFeatures={
{Size={-10},Font=garamondpremrpro-capt},
{Size={10-15},Font=garamondpremrpro},
{Size={15-23},Font=garamondpremrpro-subh},
{Size={23-},Font=garamondpremrpro-disp}
},
},
BoldFeatures={
SizeFeatures={
{Size={-10},Font=garamondpremrpro-smbdcapt},
{Size={10-15},Font=garamondpremrpro-smbd},
{Size={15-23},Font=garamondpremrpro-smbdsubh},
{Size={23-},Font=garamondpremrpro-smbddisp}
},
},
ItalicFeatures={
SizeFeatures={
{Size={-10},Font=garamondpremrpro-itcapt},
{Size={10-15},Font=garamondpremrpro-it},
{Size={15-23},Font=garamondpremrpro-itsubh},
{Size={23-},Font=garamondpremrpro-itdisp}
},
},
BoldItalicFeatures={
SizeFeatures={
{Size={-10},Font=garamondpremrpro-smbditcapt},
{Size={10-15},Font=garamondpremrpro-smbdit},
{Size={15-23},Font=garamondpremrpro-smbditsubh},
{Size={23-},Font=garamondpremrpro-smbditdisp}
},
},
]{Garamond Premier Pro}
\setsansfont[Ligatures=TeX,
Scale=MatchUppercase,
Style=Alternate, % Straight-legged R
UprightFont = *-55Rg,
ItalicFont = *-56It,
BoldFont = *-75Bd,
BoldItalicFont = *-76BdIt
]{NHaasGroteskTXPro}
\usepackage{polyglossia}
\setdefaultlanguage[variant=american]{english}
\usepackage{microtype} % Font expansion, protrusion, and other goodness
% Disable ligatures across grapheme boundaries
% (see the package manual for details.)
\usepackage[american]{selnolig}
\nolig{Th}{T|h}
\usepackage{xcolor}
\title{Modern LaTeX Back Cover}
\author{Matt Kline}
\date{\today}
% Spend a bit more time to get better word spacing.
% See http://tex.stackexchange.com/a/52855/92465
\emergencystretch=1ex
\begin{document}
\fontsize{11bp}{14bp}\selectfont
\pagestyle{empty}
\setlength\parindent{0pt}
\LaTeX{} is a tool for creating beautiful writing,
or a torture device that drives you to the brink of madness
every\enspace time
you\enspace see\quad
bad\quad spacing\quad for the rest of your\,life.
One of the two.
Despite origins that can be traced back four decades,
it remains one of the best typesetting programs around.
Many of its guides, however, haven't aged as well.
This short book will get you started with \LaTeX{}
without bogging you down in nonsense that lost its relevance
back in the 90s. % I was in a very famous TV show.
\end{document}