forked from rrthomas/hpmor
-
Notifications
You must be signed in to change notification settings - Fork 1
/
hp-header.tex
36 lines (27 loc) · 1.25 KB
/
hp-header.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
\usepackage{lettrine} % Used for the fancy caps at each start of each chapter.
\usepackage{xspace} % Takes care of spaces after macros
\usepackage{amsmath} % Provides the align environment, used in chapter 13 for the notes
\usepackage[protrusion=true]{microtype}
\usepackage{fontspec} % For the many fonts
\usepackage{xunicode}
\usepackage{xstring}
\usepackage{eso-pic,picture}
\usepackage[bookmarks=true,unicode=true,pdfborder={0 0 0},
pdftitle={Harry Potter et les Méthodes de la Rationalité},
pdfauthor={Eliezer Yudkowsky}, breaklinks={true},
pdfkeywords={Harry Potter, rationalité, hpmor},pdfencoding=auto
]{hyperref}
\input{hp-markup}
\input{hp-format}
\hyphenation{Her-mi-o-ne Gran-ger bru-shes Gryf-fon- Le-stran-ge Win-gar-di-um Le-vio-sa
Ser-dai-gle Ser-dai-gles Pouf-souf-fle Pouf-souf-fles Poud-lard Ve-ri-ta-se-rum
re-pli-cat-ed ran-dom sta-tis-ti-cal É-pou-van-tard É-pou-van-tards Grin-gotts
Ma-gen-ma-got an-aly-se an-aly-sis remem-ber Ser-pen-tard Ser-pen-tards
Se-ve-rus Mc-Go-na-gall Dum-ble-do-re Chou-ra-ve Quir-rell Mal-foy }
% Redefine \textls for XeTeX
\usepackage{calc}
\newcounter{hpletterspacing}
\renewcommand{\textls}[2][100]{%
\setcounter{hpletterspacing}{#1 / \real{10.0}}%
\addfontfeature{LetterSpace=\thehpletterspacing}#2%
}