forked from langsci/83
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlsp-gb4e.sty
526 lines (438 loc) · 18.8 KB
/
lsp-gb4e.sty
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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
\ProvidesPackage{lsp-gb4e}[2000/09/05]
\def\gbVersion{4e}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Version 4export (= v. 4 minus the compatibility code)
% Based on hpk's gb.sty, revised for GM syllabus by ct,
% and incorporating macros adapted from J.Frampton, M. de Groot en M.
% Covington. Full documentation soon to come in gb4doc.tex. Bug-reports
% and suggestions for improvements, other used features, please!
%
% Notes:
%
% Various styles for X-bar levels; can be changed, but note that {picture}
% environements (e.g. trees) will then come out wrong and have to be
% fixed
%
% This file allows _ and ^ to be used in ordinary text, hence must be
% loaded AFTER any file that uses them in their TeX meaning. Hence
% cgloss(n).sty is loaded early in this file.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%
% Format of examples: %
%%%%%%%%%%%%%%%%%%%%%%%%
% \begin{exe} or \exbegin
% <examples> (arab.)
% \begin{xlist} or \xlist
% <subexamples> (1st embedding, alph.)
% \begin{xlisti} or \xlisti
% <subsubexamples> (2st embedding, rom.)
% \end{xlisti} or \endxlisti
% <more examples>
% \end{xlist} or \endxlist
% <still more examples>
% \end{exe} or \exend
%
% Other sublist-styles: xlistA (Alph.), xlistI (Rom.), xlistn (arab)
%
% \ex (produces Number)
% \ex <sentence> (numbered example)
% \ex[jdgmt]{sentence} (numbered example with judgement)
%
% \exi{ident} (produces identifier)
% \exi{ident} <sentence> (example numbered with identifier)
% \exi{ident}[jdgmt]{sentence} (dito with judgement)
% (\exr, \exp and \sn are defined in terms of \exi)
%
% \exr{label} (produces cross-referenced Num.)
% \exr{label} <sentence> (cross-referenced example)
% \exr{label}[jdgmt]{sentence} (cross-referenced example with judgement)
%
% \exp{label} (same as
% \exp{label} <sentence> \exr but
% \exp{label}[jdgmt]{sentence} with prime)
%
% \sn <sentence> (unnumbered example)
% \sn[jdgmt]{sentence} (unnumbered example with judgement)
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% For my own lazyness (HANDLE WITH CARE---this works only
% in boringly normal cases.... ):
%
% \ea works like \begin{exe}\ex or \begin{xlist}\ex,
% depending on context
% \z works like \end{exe} or \end{xlist}, dep on context
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\@ifundefined{new@fontshape}{\def\reset@font{}\let\mathrm\rm\let\mathit\mit}{}
\let\prmbrs=0
\def\primebars{\let\prmbrs=1}
\def\obar#1{\ifmmode#1^{0}\else#1$^{0}$\fi} %% FIX
\def\mbar#1{\ifmmode#1^{\mathrm{max}}\else#1$^{\mathrm{max}}$\fi}
\def\ibar#1{\ifx\prmbrs0%
\ifmmode\overline{\mathrm{#1}}\else$\overline{\mbox{#1}}$\fi%
\else\ifmmode#1^{'}\else#1$^{'}$\fi\fi}
\def\iibar#1{\ifx\prmbrs0%
\ifmmode\overline{\overline{\mathrm{#1}}}%
\else$\overline{\overline{\mbox{#1}}}$\fi%
\else #1P\fi}
% This breaks icelandic \thorn
%\def\th{\ifmmode\theta\else$\theta$\fi}
\def\al{\ifmmode\alpha\else$\alpha$\fi}
\def\be{\ifmmode\beta\else$\beta$\fi}
\def\ga{\ifmmode\gamma\else$\gamma$\fi}
\def\de{\ifmmode\delta\else$\delta$\fi}
\def\spec#1{[Spec,#1]} %Def. of "Specifier of #1"
\def\ct#1{{\em #1\/}} %Citation of linguistic material with alternative style:
%\def\ct#1{`#1'}
\def\tx{\bf} %Introduction of technical terms with alternative style:
%\def\tx{\em}
%\input{my-cgloss\gbVersion.sty}
% This is the hacked version by Alexis Dimitriadis
% that allows for \jambox interaction
\input{lsp-cgloss.sty}
%%% NEWSTUFF:
\newcommand{\indexgroupmark}[1]{\item{\bf #1}} % ?? -CT
% this allows _ to be used in horizontal mode (from J.Frampton):
% This is basically nonsense since it breaks the mathmode functionality
%\catcode`_=\active
%\def_#1{\ifmmode\mathit{\sb{#1}}\else${}\sb{#1}$\fi}
%\catcode`^=\active
%\def^#1{\ifmmode\mathit{\sp{#1}}\else${}\sp{#1}$\fi}
\def\lb#1{\@ifnextchar [{\@glarph{#1}}{\@bl{#1}}}
\def\@glarph#1[#2]{\ifmmode{[}\sb{{\mathrm{#1}}\sb{#2}}\else%
${[}\sb{{\mathrm{#1}}\sb{#2}}$\fi}
\def\@bl#1{\ifmmode{[}\sb{\mathrm{#1}}\;\else${[}\sb{\mathrm{#1}}\;$\fi}
\def\rb#1{\@ifnextchar [{\@grarph{#1}}{\@br{#1}}}
\def\@grarph#1[#2]{\ifmmode{]}\sb{{\mathrm{#1}}\sb{#2}}\else%
${]}\sb{{\mathrm{#1}}\sb{#2}}$\fi}
\def\@br#1{\ifmmode{]}\sb{\mathrm{#1}}\;\else${]}\sb{\mathrm{#1}}\;$\fi}
%%% END_NEWSTUFF.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Macros for examples, roughly following Linguistic Inquiry style. %
% From here on best not to tamper, else all the examples and cross- %
% references will come out scrambled! (see also note below) - CT %
% Completely rewritten for more robustness and flexibility. (hpk) %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\def\qlist{\begin{list}{\Alph{xnum}.}{\usecounter{xnum}%
\setlength{\rightmargin}{\leftmargin}}}
\def\endqlist{\end{list}}
\newif\if@noftnote\@noftnotetrue
\newif\if@xrec\@xrecfalse
\@definecounter{fnx}
%%%% adapted from latex.tex to get examples in footnotes right
\long\def\@footnotetext#1{%
\@noftnotefalse\setcounter{fnx}{0}%
\insert\footins{\reset@font\footnotesize
\interlinepenalty\interfootnotelinepenalty
\splittopskip\footnotesep
\splitmaxdepth \dp\strutbox \floatingpenalty \@MM
\hsize\columnwidth \@parboxrestore
\edef\@currentlabel{\csname p@footnote\endcsname\@thefnmark}\@makefntext
{\rule{\z@}{\footnotesep}\ignorespaces
#1\strut}}\@noftnotetrue}
\newcount\@xnumdepth \@xnumdepth = 0
\@definecounter{xnumi}
\@definecounter{xnumii}
\@definecounter{xnumiii}
\@definecounter{xnumiv}
%\@definecounter{equation}
%\setcounter{equation}{0}
% book
%\renewcommand\theequation
% {\ifnum \c@chapter>\z@ \thechapter.\fi \@arabic\c@equation}
%\def\thexnumi{\@xsi{xnumi}}
\def\thexnumi
{\if@noftnote%
\@arabic\@xsi{xnumi}%
\else%
\@roman\@xsi{xnumi}%
\fi%
}
\def\thexnumii{\@xsii{xnumii}}
\def\thexnumiii{\@xsiii{xnumiii}}
\def\thexnumiv{\@xsiv{xnumiv}}
\def\p@xnumii{\thexnumi%
\if@noftnote%
\else%
.%
\fi}
\def\p@xnumiii{\thexnumi\thexnumii-}
\def\p@xnumiv{\thexnumi\thexnumii-\thexnumiii-}
\def\xs@default#1{\csname @@xs#1\endcsname}
\def\@@xsi{\let\@xsi\arabic}
\def\@@xsii{\let\@xsii\alph}
\def\@@xsiii{\let\@xsiii\roman}
\def\@@xsiv{\let\@xsi\arabic}
\@definecounter{rxnumi}
\@definecounter{rxnumii}
\@definecounter{rxnumiii}
\@definecounter{rxnumiv}
\def\save@counters{%
\setcounter{rxnumi}{\value{xnumi}}%
\setcounter{rxnumii}{\value{xnumii}}%
\setcounter{rxnumiii}{\value{xnumiii}}%
\setcounter{rxnumiv}{\value{xnumiv}}}%
\def\reset@counters{%
\setcounter{xnumi}{\value{rxnumi}}%
\setcounter{xnumii}{\value{rxnumii}}%
\setcounter{xnumiii}{\value{rxnumiii}}%
\setcounter{xnumiv}{\value{rxnumiv}}}%
\def\exewidth#1{\def\@exwidth{#1}}
%\exewidth{(234)}
\exewidth{(34)}
%% St. M�. 02.05.2004
\def\gblabelsep#1{\def\@gblabelsep{#1}}
\gblabelsep{1em}
\def\exe{\@ifnextchar [{\@exe}{\@exe[\@exwidth]}}
\def\@exe[#1]{\ifnum \@xnumdepth >0%
\if@xrec\@exrecwarn\fi%
\if@noftnote\@exrecwarn\fi%
\@xnumdepth0\@listdepth0\@xrectrue%
\save@counters%
\fi%
\advance\@xnumdepth \@ne \@@xsi%
\if@noftnote%
\begin{list}{(\thexnumi)}%
{\usecounter{xnumi}\@subex{#1}{\@gblabelsep}{0em}%
\setcounter{xnumi}{\value{equation}}}%
\else%
\begin{list}{(\roman{xnumi})}%
% 1em is the indentation of footnotes in koma-script
% if this does not work for everybody, use parameters ...
{\usecounter{xnumi}\@subex{(iiv)}{\@gblabelsep}{1.5em}%
\setcounter{xnumi}{\value{fnx}}}%
\fi}
% \begin{list}{(\thexnumi)}%
% {\usecounter{xnumi}\@subex{#1}{1em}%
% \if@noftnote%
% \setcounter{xnumi}{\value{equation}}%
% \else%
% \setcounter{xnumi}{\value{fnx}}%
% \fi}}
\def\endexe{\if@noftnote\setcounter{equation}{\value{xnumi}}%
\else\setcounter{fnx}{\value{xnumi}}%
\reset@counters\@xrecfalse\fi\end{list}}
\def\@exrecwarn{\typeout{*** Recursion on "exe"---your
example numbering will probably be screwed up!}}
\def\xlist{\@ifnextchar [{\@xlist{}}{\@xlist{}[iv.]}}
\def\xlista{\@ifnextchar [{\@xlist{\alph}}{\@xlist{\alph}[m.]}}
\def\xlistabr{\@ifnextchar [{\@xlist{(\alph)}}{\@xlist{(\alph)}[m.]}}
\def\xlisti{\@ifnextchar [{\@xlist{\roman}}{\@xlist{\roman}[iv.]}}
\def\xlistn{\@ifnextchar [{\@xlist{\arabic}}{\@xlist{\arabic}[9.]}}
\def\xlistA{\@ifnextchar [{\@xlist{\Alph}}{\@xlist{\Alph}[M.]}}
\def\xlistI{\@ifnextchar [{\@xlist{\Roman}}{\@xlist{\Roman}[IV.]}}
\def\endxlist{\end{list}}
\def\endxlista{\end{list}}
\def\endxlistabr{\end{list}}
\def\endxlistn{\end{list}}
\def\endxlistA{\end{list}}
\def\endxlistI{\end{list}}
\def\endxlisti{\end{list}}
%% St. M�. 02.05.2004
\def\subexsep#1{\def\@subexsep{#1}}
\subexsep{1.5ex}
%%% a generic sublist-styler
\def\@xlist#1[#2]{\ifnum \@xnumdepth >3 \@toodeep\else%
\advance\@xnumdepth \@ne%
\edef\@xnumctr{xnum\romannumeral\the\@xnumdepth}%
\def\@bla{#1}
\ifx\@bla\empty\xs@default{\romannumeral\the\@xnumdepth}\else%
\expandafter\let\csname @xs\romannumeral\the\@xnumdepth\endcsname#1\fi
\begin{list}{\csname the\@xnumctr\endcsname.}%
{\usecounter{\@xnumctr}\@subex{#2}{\@subexsep}{0em}}\fi}
%% Added third argument to be able to add some more space to leftmargin
%% for footnotes that have bigger indentation.
%% St. M�. 07.01.2007
\def\@subex#1#2#3{\settowidth{\labelwidth}{#1}\itemindent\z@\labelsep#2%
\ifnum\the\@xnumdepth=1%
\topsep 7\p@ plus2\p@ minus3\p@\itemsep3\p@ plus2\p@\else%
\topsep1.5\p@ plus\p@\itemsep1.5\p@ plus\p@\fi%
\parsep\p@ plus.5\p@ minus.5\p@%
\leftmargin\labelwidth\advance\leftmargin#2\advance\leftmargin#3\relax}
%%% the example-items
\def\ex{\@ifnextchar [{\@ex}{\item}}
\def\@ex[#1]#2{\item\@exj[#1]{#2}}
\def\@exj[#1]#2{\@exjbg{#1} #2 \end{list}}
% without understanding anything:
\def\exs#1{\item\begin{samepage}#1\end{samepage}}
%-- end
\def\exi#1{\item[#1]\@ifnextchar [{\@exj}{}}
\def\judgewidth#1{\def\@jwidth{#1}}
\judgewidth{??}
\def\@exjbg#1{\begin{list}{#1}{\@subex{\@jwidth}{.5ex}{0em}}\item}
\def\exr#1{\exi{{(\ref{#1})}}}
\def\exp#1{\exi{{(\ref{#1}$'$)}}}
\def\sn{\exi{}}
\def\bu{\item[$\bullet$]}
%%% Lazy abbrevs (HANDLE WITH CARE!)
%\def\ea{\ifnum\@xnumdepth=0\begin{exe}[(34)]\else\begin{xlist}[iv.]\fi\raggedright\ex} steht unten noch mal
%\def\ea{\ifnum\@xnumdepth=0\begin{exe}[(\theequation)]\else\begin{xlist}[iv.]\fi\raggedright\ex}
\def\easragged{\ifnum\@xnumdepth=0\begin{exe}[(34)]\else\begin{xlist}[iv.]\fi\raggedright\ex\begin{tabular}[t]{@{}b{\linewidth}@{}}}
\def\eas{\ifnum\@xnumdepth=0\begin{exe}[(34)]\else\begin{xlist}[iv.]\fi\ex\begin{tabular}[t]{@{}b{\linewidth}@{}}}
\def\eaa{\ifnum\@xnumdepth=0\begin{exe}[(\theequation)]\else\begin{xlist}[iv.]\fi\raggedright\ex}
% copied from here:
% http://tex.stackexchange.com/questions/23677/command-for-paragraph-indentation-after-equations
%% As Barbara Beeton has commented, forcing the first paragraph after an equation environment to
%% indent can be achieved with \aftergroup -- use this command to add a \par after the group
%% established by the environment.
%% Forcing the first paragraph after an environment not to indent isn't that straightforward. I came
%% up with the following:
%% I defined a new macro \@doendeq that will redefine \everypar so that it a) removes the
%% indentation from the first paragraph following it b) reverts to its original (empty)
%% definition. (\@doendeq is an abridged version of LaTeX's \@doendpe which is used after
%% paragraph-making environments.)
%% To change every instance of the equation environment to remove indents after it, one could
%% simply add \aftergroup\@doendeq to the definition of \endequation. As you are looking for a
%% command to modify only some instances of equation, I used \csappto from the etoolbox package
%% to locally add\aftergroup\@doendeq to \end<\@currenvir> (\@currenvir being the name of the
%% current environment).
%% I suspect that there are more elegant ways to do this.
%% \newcommand*{\@doendeq}{%
%% \everypar{{\setbox\z@\lastbox}\everypar{}}%
%% }
%% \newcommand*{\eqcntd}{%
%% \csappto{end\@currenvir}{%
%% \aftergroup\@doendeq
%% }%
%% }
\def\z{\ifnum\@xnumdepth=1\end{exe}\else\end{xlist}\fi}
\def\zs{\end{tabular}\ifnum\@xnumdepth=1\end{exe}\else\end{xlist}\fi}
%\def\zt{\ifnum\@xnumdepth=1\end{exe}\else\end{xlist}\fi\end{tabular}}
% if an example is final in a footnote
\def\zlast{\ifnum\@xnumdepth=1\end{exe}\else\end{xlist}\fi\vspace{-\baselineskip}}
% St. Mue. 26.02.00
\def\eaf#1{\begin{exe}[(iv)]\exi{(#1)}}
%\def\eal{\begin{exe}[(\theequation)]\ex\begin{xlist}[iv.]}
%\def\eal{\begin{exe}\ex\begin{xlist}[iv.]\raggedright} steht unten noch mal
\def\eafl#1{\begin{exe}[(iv)]\exi{(#1)}\begin{xlist}[iv.]}
\def\eaal{\begin{exe}[(\theequation)]\ex\begin{xlist}[iv.]}
\def\zl{\end{xlist}\end{exe}}
% if an example is final in a footnote
\def\zllast{\end{xlist}\end{exe}\removelastskip}
%%%%%%% \lcomment for breaks in (example-)lists (leaves all counters
%%%%%%% as they are) (hpk)
\newlength{\lcommentsep}
\lcommentsep = 1ex
\long\def\lcomment#1%
{\vspace{\lcommentsep}
\item[]\hspace*{-\leftmargin}%
\@tempskipa=\linewidth%
\addtolength{\@tempskipa}{\rightmargin}%
\addtolength{\@tempskipa}{\leftmargin}%
\parbox{\@tempskipa}{#1}%
\vspace{\lcommentsep}%
}
%%%%%% control the alignment of exampleno. and (picture-)example
%%%%%% (by Lex Holt <[email protected]>).
\def\attop#1{\leavevmode\vtop{\strut\vskip-\baselineskip\vbox{#1}}}
\def\atcenter#1{$\vcenter{#1}$}
%%%%%%
%-------------------Move Arrows (from J.Frampton):
\def\leaderfill{\leaders\hrule\hfil}
\def\pointerup{\hbox to 0pt{\hss
\vbox{\offinterlineskip\vskip-1pt\hbox{\elevenex\char'170}\null}\hss}}
\def\pointerdown{\hbox to 0pt{\hss
\vtop{\offinterlineskip\null\hbox{\elevenex\char'171}\vskip-1pt}\hss}}
\let\pu=\pointerup
\let\pd=\pointerdown
\let\lf=\leaderfill
\def\spacer{\hskip4.5pt}
\def\fillright#1{\hfil#1\leaderfill}
\def\fillleft#1{\leaderfill#1\hfil}
% Changed spelling to \centr, else conflicts with LaTeX \center{} -CT
\def\centr#1{\leaderfill#1\leaderfill}
\def\link#1{\multispan#1\leaderfill}
\def\arrowalign#1{\vtop{\baselineskip=0pt \lineskiplimit=0pt \lineskip=2pt
\halign{&##\cr#1}}}
\font\elevenex=cmex10 scaled\magstephalf % just for the arrow!
%PS: this may not work on some installations, not sure why. CT
%%PPS: (e.g., PCTeX, but it works find works fine with EmTeX)
%----------------END Move Arrows
\def\pijl{$\rightarrow$\ }
% Special accents for Vata & Gbadi; Navajo coming soon, I hope...:
%\def\bb#1{$\mathrm{\overline{#1}}$} Following looks better:
\def\bb#1{\ifmmode\overline{\mathrm{#1}}\else$\bar{\mathrm{#1}}$\fi}
\def\boven#1#2{\raisebox{-0.2pt}{$\stackrel{#1}{\mathrm{#2}}$}}
\def\bovenop#1#2{\raisebox{-0.06ex}[0ex][0ex]{$\stackrel{#1}{\mathrm{#2}}$}}
\def\vl{\rule{0.05em}{0.30em}}
\def\|#1{\ifmmode\vert#1\else\bovenop{\vl}{#1}\fi}
%%---------------------------------------------------------------------
%% von Detmar
% Define commands for fonts to be used:
%
% 1) regular
% a. example line
\newcommand{\exfont}{\normalsize\itshape}
% b. glossing line
\newcommand{\glossfont}{\normalsize\upshape}
% c. translation font
\newcommand{\transfont}{\normalsize\upshape} % 08.01.2014 changed small to normalsize (Martin Haspelmath)
% d. example number
\newcommand{\exnrfont}{\exfont\upshape}
%
% 2) in footnote
% a. example line
\newcommand{\fnexfont}{\footnotesize\itshape}
% b. glossing line
\newcommand{\fnglossfont}{\footnotesize\upshape}
% c. translation font
\newcommand{\fntransfont}{\scriptsize\upshape}
% d. example number
\newcommand{\fnexnrfont}{\fnexfont\upshape}
% new user command for specifying translations:
%\newcommand{\mytrans}[1]{{\trans`#1'}\vskip.6\baselineskip}
% ---------------------------------------------------------------
% only internal stuff below this line:
% -------------------
% define internal commands relative to these new font specifications
\def\ex{\@ifnextchar [{\exnrfont\@ex}{\exnrfont\item\exfont}}
\def\@ex[#1]#2{\item\@exj[#1]{\exfont#2}}
\def\@exjbg#1{\begin{list}{{\exnrfont#1}}{\@subex{\@jwidth}{.5ex}{0em}}\item}
\def\exi#1{\item[{\exnrfont#1}]\@ifnextchar [{\exnrfont\@exj}{}}
\def\ea{\ifnum\@xnumdepth=0\begin{exe}\else\begin{xlist}[iv.]\fi\raggedright\ex}
\def\eal{\begin{exe}\exnrfont\ex\begin{xlist}[iv.]\raggedright}
\def\eanoraggedright{\ifnum\@xnumdepth=0\begin{exe}\else\begin{xlist}[iv.]\fi\ex}
%\renewcommand\trans{\nopagebreak\vskip.17\baselineskip\transfont\parindent0ex}
% Note that we have also set parindent to 0 in our redefinition of \trans
\def\glt{\nopagebreak\vskip.17\baselineskip\transfont\parindent0ex}
\renewcommand{\eachwordone}{\exfont}
\renewcommand{\eachwordtwo}{\glossfont}
\renewcommand{\eachwordthree}{\glossfont} % same font for both gloss lines
% make examples in footnotes smaller:
\let\beforeExFootnote\footnote
\renewcommand{\footnote}[1]{\begingroup%
\let\exfont\fnexfont%
\let\glossfont\fnglossfont%
\let\transfont\fntransfont%
\let\exnrfont\fnexnrfont%
%\renewcommand{\@@xsi}{\let\@xsi\roman}% set example numbering to roman
\beforeExFootnote{#1}%
\endgroup}
\newcommand{\smallexamples}{\renewcommand{\exfont}{\small\upshape}\renewcommand{\glossfont}{\small\upshape}%
\exewidth{\exnrfont (\theequation)}}
\newcommand{\footnotesizeexamples}{\renewcommand{\exfont}{\footnotesize\upshape}%
\exewidth{\exnrfont (\theequation)}}
\newcommand{\tinyexamples}{\renewcommand{\exfont}{\tiny\upshape}%
\exewidth{\exnrfont (\theequation)}}
% set initial sizes of example number and judgement sizes
\exewidth{\exnrfont (35)}
\judgewidth{*} % if wider judgements are needed, enlarge within papers
\newcommand{\langinfo}[3]{{\rm #1\il{#1}~(%
\ifx\\#2\\%
\else%
#2;
\fi%
#3)}\nopagebreak[4]\ignorespaces}
% same as above but with linebreak
% fix me!!! Please!!
\newcommand{\langinfobreak}[3]{{\rm #1\il{#1}~(%
\ifx\\#2\\%
\else%
#2;
\fi%
#3)}\\\nopagebreak[4]\ignorespaces}
\newcommand{\xbox}[2]{\noindent\parbox[t]{#1}{#2}\noindent}
%\newcommand{\nobreakbox}[1]{\xbox{\linewidth}{#1}}
% Local variables:
% mode: font-lock
% End: