-
Notifications
You must be signed in to change notification settings - Fork 0
/
localcommands.tex
84 lines (63 loc) · 2.14 KB
/
localcommands.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
% \setmainfont{Linux Libertine O}
% set page margins here
\RequirePackage[left=1in,right=1in,top=1in,bottom=1in]{geometry}
\usepackage{blindtext}
\usepackage{listings}
\usepackage{xcolor}
\lstset{ backgroundcolor = \color{lightgray}, xleftmargin = 2cm, xrightmargin = 2cm, language = TeX,
framexleftmargin = 1em, framexbottommargin = .25em, framextopmargin = .25em,
aboveskip = 1em, belowskip = 1em
}
\usepackage{soul}
\usepackage{tipa}
\newcommand{\schwa}{\textschwa}
\newcommand{\eps}{\textepsilon}
\usepackage{enumerate}
\usepackage{booktabs}
\usepackage{multirow}
% \newcolumntype{P}[1]{>{\centering\arraybackslash}p{#1}}
% \newcolumntype{M}[1]{>{\centering\arraybackslash}m{#1}}
% \newcolumntype{L}[1]{>{\raggedright\arraybackslash}p{#1}}
\usepackage{makecell}
\usepackage{textcomp}
\usepackage{xspace}
\usepackage[width=0.8\textwidth]{caption}
\usepackage{natbib}
\bibpunct[:~]{(}{)}{,}{a}{}{,}
\newcommand{\BIBand}{\&}
\setlength{\bibsep}{0pt}
\setlength{\bibhang}{2em}
\bibliographystyle{glossa}
\renewcommand{\bibsection}{}
\newcommand\namecite{\citet}
\newcommand\citeboth{\citealt}
\newcommand{\quotecite}[2][]{\citeauthor{#2}'s (\citeyear[#1]{#2})}
\renewcommand\cite{\citep}
\newcommand{\high}{\textsc{high}\xspace}
\newcommand{\low}{\textsc{low}\xspace}
\newcommand{\level}{\textsc{level}\xspace}
\newcommand{\gloss}[1]{\textsc{\lowercase{#1}}}
\newcommand{\gl}[1]{\textsc{\lowercase{#1}}}
\newcommand{\REF}[2][]{(\ref{#2}#1)}
\newcommand{\tabref}[1]{Table~\ref{tab:#1}}
\newcommand{\figref}[1]{Figure~\ref{fig:#1}}
\newcommand{\from}{\textless\xspace}
%\usepackage[hidelinks]{hyperref}
\usepackage{hyperref}
\hypersetup{colorlinks=true,
urlcolor=cyan,linkcolor=black,citecolor=black}
% control hyphenation
\pretolerance4000
\tolerance7000
\emergencystretch0pt
\righthyphenmin4
\lefthyphenmin4
\usepackage{graphicx}
\graphicspath{{figures/}} % figures in the figures folder
\usepackage{titlesec}
\titleformat{\chapter}[hang]{\bfseries\huge}
{Chapter \ \thechapter:} % label
{1ex}{}[]
\titleformat{\paragraph}[hang]{\normalfont\bfseries}{\theparagraph.}{0.5ex}{}
\setcounter{tocdepth}{4}
\setcounter{secnumdepth}{4}