-
Notifications
You must be signed in to change notification settings - Fork 0
/
verb-prefixes-expex.tex
113 lines (96 loc) · 3.5 KB
/
verb-prefixes-expex.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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
%!TEX root = ./verb-prefixes.tex
%!TEX encoding = UTF-8 Unicode
%%%
%%% ExPex for numbered linguistic examples.
%%%
%% FIXME: This is a hack. Somewhere in expex (\judge ?) there's a hardcoded \rm that memoir dislikes.
\renewcommand{\rm}{\rmfamily}
%% FIXME: This is also a hack. Memoir also dislikes a hardcoded \tt which is caused by \getref.
\renewcommand{\tt}{\ttfamily}
%% FIXME: Hack number three. This is in conflict with something in unicode-math.
\let\gla\relax
\usepackage{expex}
\lingset{%
% Type of numbering.
exnotype=arabic,
% Formatting of \glpreamble line.
everyglpreamble={\normalfont},
% Formatting of \gla line.
everygla={\normalfont},
% Formatting of \glb line.
everyglb={\normalfont},
% Formatting of \glc line.
everyglc={\condensed\small},
% Formatting of \glft line.
everyglft={\raggedright},
% Formatting of a \trailingcitation{...}.
everytrailingcitation={\footnotesize},
% Horizontal space between aligned columns.
glspace=1ex plus 0.25ex minus 0.625ex,
% Vertical space above a \glb line.
aboveglbskip=0pt,
% Vertical space above a \glc line.
aboveglcskip=0pt,
% Vertical space above a \glb line.
aboveglbskip=0pt,
% Vertical space above a \glc line.
aboveglcskip=0pt,
% Vertical skip above a \glft line.
aboveglftskip=0ex,
% Vertical skip below a \glpreamble line.
belowglpreambleskip=!-1ex,
% Extra skip between interlinear gloss lines.
extraglskip=0pt,
% Vertical skip above an \ex ... \xe (whole example).
aboveexskip=0.4375em plus 0.375em minus 0.5em,
% Vertical skip below an \ex ... \xe (whole example).
belowexskip=0.4375em plus 0.375em minus 0.5em,
% Vertical skip between \a ... elements (example subparts).
interpartskip=0.125em plus 0.125em minus 0.25em,
% Horizontal offset of subpart labels.
labeloffset=0.5em,
% Horizontal offset of text (example content).
textoffset=0.75em,
% Minimum horizontal space before \trailingcitation.
% If there is less than this before hitting the margin,
% then it is shifted to the next line.
mincitesep=0.5em,
% Horizontal space for a stigma in \ljudge.
*=\ck,
}
%\gathertags
%% Define additional gloss lines for spacing and formatting control.
\defineglwlevels{d,e}
\lingset{%
% Same settings as glc.
everygld={\condensed\small},
abovegldskip=0pt,
% Same settings as glb.
everygle={\normalfont},
abovegleskip=0pt,
}
%% Generate a fake \ex label, for use in e.g. \halign tables.
\ProvideDocumentCommand{\exfakelablel}{m}{#1.\hspace{\linglabeloffset}}
%% Set the ExPex example counter to a particular value.
\ProvideDocumentCommand{\setexcnt}{m}{\excnt=#1}
%% Resetting the ExPex example counter.
\ProvideDocumentCommand{\resetexcnt}{}{\setexcnt{1}}
%% Style for multipart examples with no glossing.
\definelingstyle{compact}{interpartskip=0em}
%% Style for word-order labels.
\definelingstyle{wordorder}{labelwidth=1.75em,labelformat={A:}}
%% Style for question-answer labels.
\definelingstyle{q-a-pair}{labelformat={A:}}
%% A ombination of the above two styles.
\definelingstyle{compact-wordorder}{labelwidth=1.75em,labelformat={A:},interpartskip=0em}
%% Style for two column multipart examples.
\definelingstyle{twocols}{textoffset=0.75em}
\definelingstyle{compact-twocols}{interpartskip=0em, textoffset=0.75em}
%% Style for three column multipart examples.
\definelingstyle{threecols}{textoffset=0.75em}
%% Style for four column multipart examples.
\definelingstyle{fourcols}{textoffset=0.75em}
%% Style for trees in examples.
\definelingstyle{tree}{textoffset=0em}
%% Style for tables in examples.
\definelingstyle{table}{textoffset=0.5em}