File: gb4e.plt

package info (click to toggle)
tralics 2.14.4-2
  • links: PTS
  • area: main
  • in suites: bullseye, buster, jessie, jessie-kfreebsd, sid, stretch, wheezy
  • size: 17,152 kB
  • ctags: 8,260
  • sloc: cpp: 49,403; xml: 18,145; sh: 140; makefile: 118
file content (76 lines) | stat: -rw-r--r-- 2,160 bytes parent folder | download
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
%% TRALICS, copyright (C) INRIA/apics (Jose' Grimm) 2006, 2007
%% Licensed under the CeCILL free software license 
%% (See the file COPYING in the main directory for details)
%% $Id: gb4e.plt,v 2.3 2007/05/22 09:46:32 grimm Exp $

% this file may or may not work.



\gdef\gll#1\\ #2\\{% #1 = first line, #2 = second line
\xbox{gll}{%
  \xbox{line1}{#1}
  \xbox{line2}{#2}
}}

\gdef\glll#1\\ #2\\ #3\\{% #1 = first line, #2 = second line, #3 = third
\xbox{glll}{%
  \xbox{line1}{#1}
  \xbox{line2}{#2}
  \xbox{line3}{#3}
}}
\RequirePackage{cgloss4e}



%%%%%%%%%%%%%%%%%%%%%%%%%%%
% gb4e


\def\exewidth#1{\def\@exwidth{#1}} \exewidth{(234)}
\def\exe{\@ifnextchar [{\@exe}{\@exe[\@exwidth]}}
\def\exi#1{\item[#1]\@ifnextchar [{\@exj}{}}

\def\@exe[#1]{\ifnum \@xnumdepth >0%
                 \if@xrec\@exrecwarn\fi%
                 \if@noftnote\@exrecwarn\fi%
                 \@xnumdepth0\@listdepth0\@xrectrue%
                 \save@counters%
              \fi%
                 \advance\@xnumdepth \@ne \@@xsi%
                 \begin{list}{(\thexnumi)}%
                             {\usecounter{xnumi}\@subex{#1}{1em}%
                              \if@noftnote%
                                 \setcounter{xnumi}{\value{exx}}%
                              \else%
                                 \setcounter{xnumi}{\value{fnx}}%
                              \fi}}

\def\endexe{\if@noftnote\setcounter{exx}{\value{xnumi}}%
                   \else\setcounter{fnx}{\value{xnumi}}%
                        \reset@counters\@xrecfalse\fi\end{list}}



\newcounter{xnumi}
\newcounter{xnumii}
\newcounter{exx}
\newcounter{rxnumi}


\def\@exe[#1]{\begin{list}{\thexnumi}{\usecounter{xnumi}\setcounter{xnumi}{\value{exx}}}}
\def\endexe{\setcounter{exx}{\value{xnumi}}\end{list}}

\def\xlist{\begin{list}{\thexnumi.\alph{xnumii}}{\usecounter{xnumii}}}
\def\endxlist{\end{list}}
\def\xlista{\begin{list}{\thexnumi.\alph{xnumii}}{\usecounter{xnumii}}}
\def\endxlista{\end{list}}




\def\ex{\@ifnextchar [{\@ex}{\item}}
\def\@ex[#1]#2{\item\@exj[#1]{#2}}
\def\@exj[#1]#2{\@exjbg{#1} #2 \end{list}}
\def\@exjbg#1{\begin{list}{#1}{\@subex{\@jwidth}{.5ex}}\item}