\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}}