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
|
%%
%% This is file `forest-lib-linguistics.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% forest-libs.dtx (with options: `linguistics')
%%
%% `forest-libs' is a collection of libraries for package `forest'.
%%
%% Copyright (c) 2012-2017 Saso Zivanovic
%% (Sa\v{s}o \v{Z}ivanovi\'{c})
%% saso.zivanovic@guest.arnes.si
%%
%% This work may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either version 1.3
%% of this license or (at your option) any later version.
%% The latest version of this license is in
%%
%% http://www.latex-project.org/lppl.txt
%%
%% and version 1.3 or later is part of all distributions of LaTeX
%% version 2005/12/01 or later.
%%
%% This work has the LPPL maintenance status `author-maintained'.
%%
%% This file is a part of package `forest'. For the list of files
%% constituting the package see main source file of the package,
%% `forest.dtx', or the derived `forest.sty'.
%%
\RequirePackage{forest}
\ProvidesForestLibrary{linguistics}[2017/07/14 v0.1.2]
\forestset{
linguistics@set@baseline/.style={
if phantom={for next node=linguistics@set@baseline}{baseline}
},
libraries/linguistics/defaults/.style={
default preamble={
sn edges,
before drawing tree={
if nodewalk valid={name=forest@baseline@node}{}{linguistics@set@baseline},
},
for tree={align=center},
},
},
}
\forestset{
define long step={c-commanded}{style}{branch'={siblings,descendants}},
define long step={c-commanders}{style}{while nodewalk valid={parent}{siblings,fake=parent}},
}
\forestset{
sn edges/.style={
for tree={
parent anchor=children, child anchor=parent
}
},
}
\forestset{
roof/.style={edge path'={%
(.parent first)--(!u.children)--(.parent last)--cycle
}
},
}
\forestset{
nice empty nodes/.style={
for tree={calign=fixed edge angles},
delay={where content={}{shape=coordinate,
for current and siblings={anchor=north}}{}}
},
}
\providecommand\text[1]{\mbox{\scriptsize#1}}
\forestset{
draw brackets compact/.code={\let\drawbracketsspace\relax},
draw brackets wide/.code={\let\drawbracketsspace\space},
draw brackets/.style={
for tree'={
TeX={[%
\edef\forestdrawbracketscontentformat{\foresteoption{content format}}%
},
if n children=0{
TeX={\drawbracketsspace\forestdrawbracketscontentformat\drawbracketsspace}
}{
TeX={\textsubscript{\text{\forestdrawbracketscontentformat}}\drawbracketsspace}
},
}{
TeX={]\drawbracketsspace},
}
},
draw brackets wide
}
\newbox\standardnodestrutbox
\setbox\standardnodestrutbox=\hbox to 0pt{\phantom{\forestOve{standard node}{content}}}
\def\standardnodestrut{\copy\standardnodestrutbox}
\forestset{
GP1/.style 2 args={
for n={1}{baseline},
s sep=0pt, l sep=0pt,
for descendants={
l sep=0pt, l={#1},
anchor=base,calign=first,child anchor=north,
inner xsep=1pt,inner ysep=2pt,outer sep=0pt,s sep=0pt,
},
delay={
if content={}{phantom}{for children={no edge}},
for tree={
if content={O}{tier=OR}{},
if content={R}{tier=OR}{},
if content={N}{tier=N}{},
if content={x}{
tier=x,content={$\times$},outer xsep={#2},
for tree={calign=center},
for descendants={content format={\noexpand\standardnodestrut\forestoption{content}}},
before drawing tree={outer xsep=0pt,delay={typeset node}},
s sep=4pt
}{},
},
},
before drawing tree={where content={}{parent anchor=center,child anchor=center}{}},
},
GP1/.default={5ex}{8.0pt},
associate/.style={%
tikz+={\draw[densely dotted](!)--(!#1);}},
spread/.style={
before drawing tree={tikz+={\draw[dotted](!)--(!#1);}}},
govern/.style={
before drawing tree={tikz+={\draw[->](!)--(!#1);}}},
p-govern/.style={
before drawing tree={tikz+={\draw[->](.north) to[out=150,in=30] (!#1.north);}}},
no p-govern/.style={
before drawing tree={tikz+={\draw[->,loosely dashed](.north) to[out=150,in=30] (!#1.north);}}},
encircle/.style={before drawing tree={circle,draw,inner sep=0pt}},
fen/.style={pin={[font=\footnotesize,inner sep=1pt,pin edge=<-]10:\textsc{Fen}}},
el/.style={content=\textsc{\textbf{##1}}},
head/.style={content=\textsc{\textbf{\underline{##1}}}}
}
\endinput
%%
%% End of file `forest-lib-linguistics.sty'.
|