blob: a0e75ae0a067a076ee8d63e29143da11f3ba37df (
plain)
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
|
\ProvidesPackage{learninglahu}
\usepackage{fontspec} % for easy xetex font selection
\usepackage{xltxtra} % some extras for xetex
\usepackage{xunicode}
\usepackage{tipa} % for phonetic characters
\usepackage{covington} % for examples
\usepackage{multicol} % multiple columns
%\usepackage{lastpage} % used by fancyheader
\usepackage{bbding} % for pencil symbol
\usepackage{appendix} % appendices
\usepackage{float} % for floating exercises etc
\usepackage{tabularx} % for the custom column widths
\usepackage{marginnote} % for margin notes
\usepackage{eqlist} % for definition lists
\usepackage{parallel} % parallel text
%\usepackage{microtype} % for margin kerning
\usepackage{makeidx} % create an index
% float config
\floatstyle{ruled}
\newfloat{float-exercise}{hbt}{loq}[section] % exercises go at the bottom of a page
\floatname{float-exercise}{\PencilLeftDown~Exercise}
\newfloat{float-vocab}{ht}{loq}[chapter] % exercises go at the bottom of a page
\floatname{float-vocab}{\HandRight~Vocabulary}
% make definition labels bold
\renewcommand{\eqlistlabel}[1]{\textbf{#1}}
\newenvironment{lahu-vocab}[1]%
{\begin{float-vocab}\caption{#1}\medskip%
\begin{multicols}{2}\begin{eqlist*}%
}%
{\end{eqlist*}\end{multicols}%
\end{float-vocab}}
% margins
\renewcommand*{\raggedleftmarginnote}{}
\renewcommand*{\raggedrightmarginnote}{\centering}
% fonts
% this is need for smart-quotes etc
\defaultfontfeatures{Mapping=tex-text}
\setmainfont{Charis SIL}
%\setromanfont[BoldFont=Charis SIL Bold, ItalicFont=Charis SIL Italic]{Charis SIL:mapping=tex-text}
\setsansfont{Bitstream Vera Sans}
\setmonofont{Bitstream Vera Sans Mono}
\font\T="Loma" at 12pt\T
\frenchspacing
\newcommand{\thai}[1]{\Large\T#1\normalsize}
\renewcommand*{\marginfont}{\sffamily\footnotesize}
\usepackage[dvipdfm]{hyperref}
\hypersetup{colorlinks,pdfauthor={Felix McCoey},pdftitle={Learning Lahu}}
|