mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-15 17:53:04 +00:00
21366155e4
This way, the file names no more change without a reason.
55 lines
2.7 KiB
XML
55 lines
2.7 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!-- This DocBook file was created by LyX 2.4.0dev
|
|
See https://www.lyx.org/ for more information -->
|
|
<article xml:lang="en_US" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:xi="http://www.w3.org/2001/XInclude" version="5.2">
|
|
<info>
|
|
<title>Writing linguistic papers</title>
|
|
<author>
|
|
<personname>Jürgen Spitzmülle</personname>
|
|
</author>
|
|
</info>
|
|
<section>
|
|
<title>Linguistic structure trees</title>
|
|
<para>Here is a simple example:</para>
|
|
<mediaobject>
|
|
<imageobject>
|
|
<imagedata fileref='lyx_waUJAzFwGUKDEN7MJCcs6gYNMbJuYBkgsRTDTpIvs.png' />
|
|
</imageobject>
|
|
<textobject>
|
|
<programlisting language='latex' role='forest'>[VP [DP[John]] [V' [V[sent]] [DP[Mary]] [DP[D[a]][NP[letter]]] ] ]</programlisting>
|
|
</textobject>
|
|
</mediaobject>
|
|
<para>If you view the PDF output, you will see that the input</para>
|
|
<blockquote>
|
|
<para><code><emphasis role='size_small'>[VP [DP[John]] [V' [V[sent]] [DP[Mary]] [DP[D[a]][NP[letter]]]]]</emphasis></code></para>
|
|
</blockquote>
|
|
<para>expands to a real structure tree. To view the result within the work area, you can simply embed the Structure Tree inset into a Preview inset. If instant preview is correctly installed and activated, you should see the tree immediately (just click on the image in order to edit):</para>
|
|
<para><mediaobject>
|
|
<imageobject>
|
|
<imagedata fileref='lyx_Neo86S96tfZZQHjpBg7ADIb30ZP0DTrDTR1DEIL6dM.png' />
|
|
</imageobject>
|
|
<textobject>
|
|
<programlisting language='latex' role='forest'>[VP [DP[Mary]] [V' [V[sent]] [DP[John]] [DP[D[a]][NP[response]]] ] ]</programlisting>
|
|
</textobject>
|
|
</mediaobject></para>
|
|
<para>Roofs can be easily generated by means of the <code>roof</code> option (note that the comma has special meaning, as it marks options):</para>
|
|
<mediaobject>
|
|
<imageobject>
|
|
<imagedata fileref='lyx_Evmv0h17wY4EoBIBFZjUQJMv0cyWz6KodzrzPiY1tQ.png' />
|
|
</imageobject>
|
|
<textobject>
|
|
<programlisting language='latex' role='forest'>[VP [DP[John]] [V' [V[sent]] [DP[Mary]] [DP[another letter, roof]] ] ]</programlisting>
|
|
</textobject>
|
|
</mediaobject>
|
|
<para>In order to align nodes of the tree more elegantly, use the “tier” option. All nodes which have the same <code>tier</code> allocated get aligned. Here is an example:</para>
|
|
<mediaobject>
|
|
<imageobject>
|
|
<imagedata fileref='lyx_EafAhhREpvwrFIFUHprlnoS9qCdR7kk23QfWTsObCjg.png' />
|
|
</imageobject>
|
|
<textobject>
|
|
<programlisting language='latex' role='forest'>[VP [DP[John,tier=word]] [V' [V[sent,tier=word]] [DP[Mary,tier=word]] [DP[D[a,tier=word]][NP[letter,tier=word]]] ] ]</programlisting>
|
|
</textobject>
|
|
</mediaobject>
|
|
<para>The package supports many additional features, such as movement arrows and decorations, that cannot documented here.</para>
|
|
</section>
|
|
</article> |