-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path03-typography.tex
47 lines (38 loc) · 1.5 KB
/
03-typography.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
% Provides: Font styling and spacing
% Requires: /
% Font selection and acces to system fonts
\usepackage[no-math]{fontspec}
% Provides the ‘\xspace’ command, which conditionally inserts a space, depending on the following symbol.
% Needed by some other headers.
\usepackage{xspace}
% Similar to ‘xspace’, provides ‘\xcomma’, ‘\xperiod’ and ‘\xperiodcomma’.
\usepackage{xpunctuate}
% Always follow i.e. and e.g. by a comma (Chicago Manual of Style says so)
\iftoggle{02-language-english}{
\newcommand\eg{e.g.\xcomma}
\newcommand\ie{i.e.\xcomma}
\newcommand\wrt{w.r.t.\ }
}{}
% Separates paragraphs by a vertical space instead of (or in addition to) indenting them.
% To keep the indentation of new paragraphs, supply the ‘indent’ option.
% In KOMA-class documents the `parskip`-option should be used
\iftoggle{is-koma-class}{}{
\usepackage{parskip}
}
% For ‘inspirational’ quotes at the start of chapter or section.
\usepackage{epigraph}
% Dummy text (lorem ipsum …)
\usepackage{lipsum}
% Underlining and strikethrough of text
% option ‘normalem’ makes sure that emphesis is still done via italics
\usepackage[normalem]{ulem}
% Some packages misbehave with beamer.
\iftoggle{is-beamer}{}{
% Very slightly adjusts spacing
\usepackage{microtype}
% Prevents widows and orphans.
% At least three lines before a page break and at least 3 after it sound fine.
% The ‘all’-option applies it to the whole document.
\usepackage[defaultlines=3, all]{nowidow}
}
\toggletrue{03-typography}