]> git.lyx.org Git - lyx.git/blob - autotests/export/docbook/Linguistics_forest.lyx
DocBook: export the preview images to the right format.
[lyx.git] / autotests / export / docbook / Linguistics_forest.lyx
1 #LyX 2.4 created this file. For more info see https://www.lyx.org/
2 \lyxformat 608
3 \begin_document
4 \begin_header
5 \save_transient_properties true
6 \origin unavailable
7 \textclass article
8 \begin_preamble
9 %% Uncomment the following for Tableaux captions on top:
10 %\floatstyle{plaintop}
11 %\restylefloat{tableau}
12
13 % Backwards compatibility for forest 1.x
14 % If you use forest 2.0.1 or later, you can delete this
15 \@ifpackageloaded{forest}{%
16   \@ifpackagelater{forest}{2016/02/20}{}{%
17     \forestset{
18       roof/.style={edge path={\noexpand\path[\forestoption{edge}]%
19           (.north west)--(!u.south)--(.north east)--cycle
20           \forestoption{edge label};
21         }
22       },
23       sn edges/.style={
24         for tree={parent anchor=south, child anchor=north},
25       },
26       linguistics preamble/.style={sn edges, baseline, for tree={align=center}}
27     }
28     \preto\forest@do{%
29       \forestOpreto{\forest@root}{given options}{linguistics preamble,}%
30     }
31   }
32 }{}
33 \end_preamble
34 \use_default_options false
35 \begin_modules
36 linguistics
37 \end_modules
38 \maintain_unincluded_children no
39 \language english
40 \language_package default
41 \inputencoding utf8
42 \fontencoding auto
43 \font_roman "lmodern" "FreeSerif"
44 \font_sans "default" "FreeSans"
45 \font_typewriter "default" "FreeMono"
46 \font_math "auto" "auto"
47 \font_default_family default
48 \use_non_tex_fonts false
49 \font_sc false
50 \font_roman_osf false
51 \font_sans_osf false
52 \font_typewriter_osf false
53 \font_sf_scale 100 100
54 \font_tt_scale 100 100
55 \use_microtype false
56 \use_dash_ligatures false
57 \graphics default
58 \default_output_format default
59 \output_sync 0
60 \bibtex_command default
61 \index_command default
62 \float_placement class
63 \float_alignment class
64 \paperfontsize default
65 \spacing single
66 \use_hyperref true
67 \pdf_bookmarks true
68 \pdf_bookmarksnumbered false
69 \pdf_bookmarksopen false
70 \pdf_bookmarksopenlevel 1
71 \pdf_breaklinks false
72 \pdf_pdfborder true
73 \pdf_colorlinks false
74 \pdf_backref false
75 \pdf_pdfusetitle true
76 \papersize default
77 \use_geometry false
78 \use_package amsmath 1
79 \use_package amssymb 1
80 \use_package cancel 1
81 \use_package esint 1
82 \use_package mathdots 1
83 \use_package mathtools 1
84 \use_package mhchem 1
85 \use_package stackrel 1
86 \use_package stmaryrd 1
87 \use_package undertilde 1
88 \cite_engine basic
89 \cite_engine_type default
90 \biblio_style plain
91 \use_bibtopic false
92 \use_indices false
93 \paperorientation portrait
94 \suppress_date false
95 \justification true
96 \use_refstyle 0
97 \use_minted 0
98 \use_lineno 0
99 \index Index
100 \shortcut idx
101 \color #008000
102 \end_index
103 \secnumdepth 3
104 \tocdepth 3
105 \paragraph_separation indent
106 \paragraph_indentation default
107 \is_math_indent 0
108 \math_numbering_side default
109 \quotes_style english
110 \dynamic_quotes 0
111 \papercolumns 1
112 \papersides 1
113 \paperpagestyle default
114 \tablestyle default
115 \tracking_changes false
116 \output_changes false
117 \change_bars false
118 \postpone_fragile_content false
119 \html_math_output 0
120 \html_css_as_file 0
121 \html_be_strict false
122 \docbook_table_output 0
123 \docbook_mathml_prefix 1
124 \end_header
125
126 \begin_body
127
128 \begin_layout Title
129 Writing linguistic papers
130 \end_layout
131
132 \begin_layout Author
133 Jürgen Spitzmülle
134 \end_layout
135
136 \begin_layout Section
137 Linguistic structure trees
138 \end_layout
139
140 \begin_layout Standard
141 Here is a simple example:
142 \end_layout
143
144 \begin_layout Standard
145 \begin_inset Flex Structure Tree
146 status open
147
148 \begin_layout Plain Layout
149 [VP [DP[John]] [V' [V[sent]] [DP[Mary]] [DP[D[a]][NP[letter]]] ] ]
150 \end_layout
151
152 \end_inset
153
154
155 \end_layout
156
157 \begin_layout Standard
158 \noindent
159 If you view the PDF output, you will see that the input
160 \end_layout
161
162 \begin_layout Quote
163
164 \family typewriter
165 \size small
166 [VP [DP[John]] [V' [V[sent]] [DP[Mary]] [DP[D[a]][NP[letter]]]]]
167 \end_layout
168
169 \begin_layout Standard
170 expands to a real structure tree.
171  To view the result within the work area, you can simply embed the Structure
172  Tree inset into a Preview inset.
173  If instant preview is correctly installed and activated, you should see
174  the tree immediately (just click on the image in order to edit):
175 \end_layout
176
177 \begin_layout Standard
178 \begin_inset Preview
179
180 \begin_layout Standard
181 \begin_inset Flex Structure Tree
182 status open
183
184 \begin_layout Plain Layout
185 [VP [DP[Mary]] [V' [V[sent]] [DP[John]] [DP[D[a]][NP[response]]] ] ]
186 \end_layout
187
188 \end_inset
189
190
191 \end_layout
192
193 \end_inset
194
195
196 \end_layout
197
198 \begin_layout Standard
199 \noindent
200 Roofs can be easily generated by means of the 
201 \family typewriter
202 roof
203 \family default
204  option (note that the comma has special meaning, as it marks options):
205 \end_layout
206
207 \begin_layout Standard
208 \begin_inset Flex Structure Tree
209 status open
210
211 \begin_layout Plain Layout
212 [VP [DP[John]] [V' [V[sent]] [DP[Mary]] [DP[another letter, roof]] ] ]
213 \end_layout
214
215 \end_inset
216
217
218 \end_layout
219
220 \begin_layout Standard
221 \noindent
222 In order to align nodes of the tree more elegantly, use the 
223 \begin_inset Quotes eld
224 \end_inset
225
226 tier
227 \begin_inset Quotes erd
228 \end_inset
229
230  option.
231  All nodes which have the same 
232 \family typewriter
233 tier
234 \family default
235  allocated get aligned.
236  Here is an example:
237 \end_layout
238
239 \begin_layout Standard
240 \begin_inset Flex Structure Tree
241 status open
242
243 \begin_layout Plain Layout
244 [VP [DP[John,tier=word]] [V' [V[sent,tier=word]] [DP[Mary,tier=word]] [DP[D[a,ti
245 er=word]][NP[letter,tier=word]]] ] ]
246 \end_layout
247
248 \end_inset
249
250
251 \end_layout
252
253 \begin_layout Standard
254 \noindent
255 The package supports many additional features, such as movement arrows and
256  decorations, that cannot documented here.
257 \end_layout
258
259 \end_body
260 \end_document