]> git.lyx.org Git - lyx.git/blobdiff - lib/examples/linguistics.lyx
splash.lyx: link https://www.lyx.org/Walkthrough
[lyx.git] / lib / examples / linguistics.lyx
index f134a45be49507ac62588b744dd29c6459be1837..2e5f9efb438a6d5dd43a6260f789aced8211e1cb 100644 (file)
@@ -1,5 +1,5 @@
-#LyX 2.2 created this file. For more info see http://www.lyx.org/
-\lyxformat 504
+#LyX 2.3 created this file. For more info see http://www.lyx.org/
+\lyxformat 544
 \begin_document
 \begin_header
 \save_transient_properties true
@@ -9,6 +9,27 @@
 %% Uncomment the following for Tableaux captions on top:
 %\floatstyle{plaintop}
 %\restylefloat{tableau}
+
+% Backwards compatibility for forest 1.x
+% If you use forest 2.0.1 or later, you can delete this
+\@ifpackageloaded{forest}{%
+  \@ifpackagelater{forest}{2016/02/20}{}{%
+    \forestset{
+      roof/.style={edge path={\noexpand\path[\forestoption{edge}]%
+          (.north west)--(!u.south)--(.north east)--cycle
+          \forestoption{edge label};
+        }
+      },
+      sn edges/.style={
+        for tree={parent anchor=south, child anchor=north},
+      },
+      linguistics preamble/.style={sn edges, baseline, for tree={align=center}}
+    }
+    \preto\forest@do{%
+      \forestOpreto{\forest@root}{given options}{linguistics preamble,}%
+    }
+  }
+}{}
 \end_preamble
 \use_default_options false
 \begin_modules
@@ -29,6 +50,8 @@ linguistics
 \font_osf false
 \font_sf_scale 100 100
 \font_tt_scale 100 100
+\use_microtype false
+\use_dash_ligatures false
 \graphics default
 \default_output_format default
 \output_sync 0
@@ -50,14 +73,14 @@ linguistics
 \use_geometry false
 \use_package amsmath 1
 \use_package amssymb 1
-\use_package cancel 0
+\use_package cancel 1
 \use_package esint 1
 \use_package mathdots 1
-\use_package mathtools 0
+\use_package mathtools 1
 \use_package mhchem 1
-\use_package stackrel 0
-\use_package stmaryrd 0
-\use_package undertilde 0
+\use_package stackrel 1
+\use_package stmaryrd 1
+\use_package undertilde 1
 \cite_engine basic
 \cite_engine_type default
 \biblio_style plain
@@ -67,6 +90,7 @@ linguistics
 \suppress_date false
 \justification true
 \use_refstyle 0
+\use_minted 0
 \index Index
 \shortcut idx
 \color #008000
@@ -75,7 +99,10 @@ linguistics
 \tocdepth 3
 \paragraph_separation indent
 \paragraph_indentation default
-\quotes_language english
+\is_math_indent 0
+\math_numbering_side default
+\quotes_style english
+\dynamic_quotes 0
 \papercolumns 1
 \papersides 1
 \paperpagestyle default
@@ -103,6 +130,7 @@ Jürgen Spitzmüller
 LatexCommand href
 target "spitz@lyx.org"
 type "mailto:"
+literal "false"
 
 \end_inset
 
@@ -185,14 +213,11 @@ covington.sty
 \begin_inset CommandInset citation
 LatexCommand cite
 key "covington"
+literal "true"
 
 \end_inset
 
 : This is the base package used for numbered examples and glosses.
-\begin_inset Separator parbreak
-\end_inset
-
-
 \end_layout
 
 \begin_deeper
@@ -216,6 +241,7 @@ enumitem.sty
 \begin_inset CommandInset citation
 LatexCommand cite
 key "enumitem"
+literal "true"
 
 \end_inset
 
@@ -233,10 +259,6 @@ itemize
 description
 \emph default
 ).
-\begin_inset Separator parbreak
-\end_inset
-
-
 \end_layout
 
 \begin_deeper
@@ -260,6 +282,7 @@ csquotes.sty
 \begin_inset CommandInset citation
 LatexCommand cite
 key "csquotes"
+literal "true"
 
 \end_inset
 
@@ -270,10 +293,6 @@ Meaning
  character style.
  The package provides context sensitive quotation marks, depending on the
  language in use.
-\begin_inset Separator parbreak
-\end_inset
-
-
 \end_layout
 
 \begin_deeper
@@ -297,16 +316,13 @@ float.sty
 \begin_inset CommandInset citation
 LatexCommand cite
 key "float"
+literal "true"
 
 \end_inset
 
 : Needed for the OT tableaux floats and list of floats.
  This package should be part of any \SpecialChar LaTeX
  distribution.
-\begin_inset Separator parbreak
-\end_inset
-
-
 \end_layout
 
 \begin_deeper
@@ -330,14 +346,11 @@ forest.sty
 \begin_inset CommandInset citation
 LatexCommand cite
 key "forest"
+literal "true"
 
 \end_inset
 
 : This package is used to generate structure trees.
-\begin_inset Separator parbreak
-\end_inset
-
-
 \end_layout
 
 \begin_deeper
@@ -724,10 +737,6 @@ Settings\SpecialChar menuseparator
 LaTeX Preamble
 \family default
 :
-\begin_inset Separator parbreak
-\end_inset
-
-
 \end_layout
 
 \begin_layout Quote
@@ -912,16 +921,48 @@ Using Glosses (and Examples) in a Beamer Presentation
 \end_layout
 
 \begin_layout Standard
-The 
+If you use the linguistics module with 
+\emph on
+beamer
+\emph default
+ presentations, there are some caveats:
+\end_layout
+
+\begin_layout Itemize
+If you want to use glosses in 
+\emph on
+beamer
+\emph default
+, you need to put it in a 
+\begin_inset Quotes eld
+\end_inset
+
+fragile
+\begin_inset Quotes erd
+\end_inset
+
+ frame.
+\end_layout
+
+\begin_layout Itemize
+Older versions of the 
 \emph on
 covington
 \emph default
- package and the 
+ package (before version 1.1) do not play with the 
+\emph on
+beamer
+\emph default
+ class out of the box, since both 
 \emph on
 beamer
 \emph default
- class do not work together out of the box, since they both try to define
- the commands 
+ and 
+\emph on
+covington
+\emph default
+ try to define the commands 
 \family typewriter
 
 \backslash
@@ -933,9 +974,14 @@ example
 \backslash
 examples
 \family default
-, which results in a \SpecialChar LaTeX
+.
+ In these older versions of 
+\emph on
+covington
+\emph default
+, this results in a \SpecialChar LaTeX
  error.
- You can work around the problem by inserting the following code in 
+ You can work around this problem by inserting the following code in 
 \family sans
 Document\SpecialChar menuseparator
 Settings\SpecialChar menuseparator
@@ -944,6 +990,7 @@ Local Layout
 :
 \end_layout
 
+\begin_deeper
 \begin_layout Quote
 \begin_inset listings
 lstparams "basicstyle={\footnotesize\ttfamily},tabsize=4"
@@ -1039,27 +1086,48 @@ OK
 \end_inset
 
 .
- This effectively defuncts beamer's example(s) environment in favour of
- covington's.
-\end_layout
-
-\begin_layout Standard
-Furthermore, if you want to use glosses in 
+ This effectively defuncts 
 \emph on
-beamer
+beamer's
 \emph default
-, you need to put it in a 
-\begin_inset Quotes eld
+ example(s) environment in favor of 
+\emph on
+covington's
+\emph default
+ (i.
+\begin_inset space \thinspace{}
 \end_inset
 
-fragile
-\begin_inset Quotes erd
-\end_inset
+e., you can use the 
+\family sans
+Numbered Example
+\family default
+ styles, but not 
+\emph on
+beamer's
+\emph default
+\family sans
+Example
+\family default
+ and 
+\family sans
+Examples
+\family default
+).
+\end_layout
 
- frame.
+\begin_layout Standard
+As of v.
+ 1.1 of 
+\emph on
+covington
+\emph default
+, this problem is solved.
  
 \end_layout
 
+\end_deeper
 \begin_layout Section
 Optimality Theory Tableaux
 \end_layout
@@ -1639,7 +1707,7 @@ If you view the PDF output, you will see that the input
 \begin_layout Standard
 expands to a real structure tree.
  To view the result within the \SpecialChar LyX
- workarea, you can simply embed the Structure
+ work area, you can simply embed the Structure
  Tree inset into a Preview inset (
 \family sans
 Insert\SpecialChar menuseparator
@@ -1677,11 +1745,58 @@ Roofs can be easily generated by means of the
 \begin_inset Quotes eld
 \end_inset
 
+roof
+\begin_inset Quotes erd
+\end_inset
+
+ option
+\begin_inset Foot
+status collapsed
+
+\begin_layout Plain Layout
+\noindent
+Note that the 
+\begin_inset Quotes eld
+\end_inset
+
+roof
+\begin_inset Quotes erd
+\end_inset
+
+ option only exists as of 
+\family sans
+forest
+\family default
+ version 2.0.
+ We have added some code to the preamble of this manual to support previous
+ versions.
+ If you use a 
+\family sans
+forest
+\family default
+ version < 2.0, you either need to copy this code to your preamble or use
+ the old option 
+\begin_inset Quotes eld
+\end_inset
+
 triangle
 \begin_inset Quotes erd
 \end_inset
 
- option (note that the comma has special meaning, as it marks options):
+ instead of 
+\begin_inset Quotes eld
+\end_inset
+
+roof
+\begin_inset Quotes erd
+\end_inset
+
+.
+\end_layout
+
+\end_inset
+
+ (note that the comma has special meaning, as it marks options):
 \end_layout
 
 \begin_layout Standard
@@ -1689,8 +1804,7 @@ triangle
 status open
 
 \begin_layout Plain Layout
-[VP [DP[John]] [V' [V[sent]] [DP[Mary]] [DP[another letter, triangle]] ]
- ]
+[VP [DP[John]] [V' [V[sent]] [DP[Mary]] [DP[another letter, roof]] ] ]
 \end_layout
 
 \end_inset
@@ -1743,6 +1857,7 @@ The package supports many additional features, such as movement arrows and
 \begin_inset CommandInset citation
 LatexCommand cite
 key "forest"
+literal "true"
 
 \end_inset
 
@@ -1775,17 +1890,14 @@ tipa
 \begin_inset CommandInset citation
 LatexCommand cite
 key "tipa"
+literal "true"
 
 \end_inset
 
-.
-\begin_inset Foot
-status collapsed
-
-\begin_layout Plain Layout
-If you use Xe\SpecialChar TeX
- or Lua\SpecialChar TeX
- (i.
+, which is automatically loaded by \SpecialChar LyX
+ if you follow the procedure described
+ below.
+ If you use Unicode fonts (i.
 \begin_inset space \thinspace{}
 \end_inset
 
@@ -1804,13 +1916,98 @@ Document\SpecialChar menuseparator
 Settings\SpecialChar menuseparator
 Fonts
 \family default
-), no extra package is needed.
+), the package 
+\emph on
+xunicode
+\emph default
+ is loaded instead (since 
+\emph on
+tipa
+\emph default
+ does not work in this context).
+\begin_inset Foot
+status open
+
+\begin_layout Plain Layout
+See also https://github.com/wspr/fontspec/issues/280 and the discussion in
+ docutils-devel (https://www.mail-archive.com/search?l=mid&q=1487664738.2405.6.camel%
+40lyx.org).
 \end_layout
 
 \end_inset
 
- Additionally, if you want to have instant preview, you should have the
+ The 
+\emph on
+xunicode
+\emph default
+ package emulates the 
+\emph on
+tipa
+\emph default
+ output, but is not perfect at that, so some things might not look as expected.
+ Furthermore, you need to take care in this case to use a font that includes
+ the IPA glyphs (such as 
+\emph on
+CMU Serif
+\emph default
+ or 
+\emph on
+SIL Doulos
+\emph default
+).
+ You can also specify an extra font only for IPA by adding the following
+ to 
+\family sans
+Document\SpecialChar menuseparator
+Settings\SpecialChar menuseparator
+LaTeX Preamble
+\family default
+:
+\end_layout
+
+\begin_layout Standard
+\begin_inset listings
+lstparams "language={[LaTeX]TeX},basicstyle={\footnotesize\ttfamily}"
+inline false
+status open
+
+\begin_layout Plain Layout
+
+
+\backslash
+AtBeginDocument{%
+\end_layout
+
+\begin_layout Plain Layout
+
+
+\backslash
+newfontfamily{
+\backslash
+ipafont}{CMU Serif}% or another font
+\end_layout
+
+\begin_layout Plain Layout
+
+
+\backslash
+def
+\backslash
+useTIPAfont{
+\backslash
+ipafont}
+\end_layout
+
+\begin_layout Plain Layout
+
+}
+\end_layout
+
+\end_inset
+
+Additionally, and independent from which of the above approaches you use,
+ if you want to have instant preview, you should have the 
 \emph on
 preview-latex
 \emph default
@@ -1818,6 +2015,7 @@ preview-latex
 \begin_inset CommandInset citation
 LatexCommand cite
 key "preview"
+literal "true"
 
 \end_inset
 
@@ -1931,7 +2129,7 @@ after
 \begin_inset space ~
 \end_inset
 
-<space>+<Lingolabial from the IPA toolbar>
+<space>+<Linguolabial from the IPA toolbar>
 \family default
 ).
 \end_layout
@@ -1946,10 +2144,18 @@ after
 \family sans
  Tools\SpecialChar menuseparator
 Preferences\SpecialChar menuseparator
-Graphi
+Look
+\begin_inset space ~
+\end_inset
+
+&
+\begin_inset space ~
+\end_inset
+
+Feel\SpecialChar menuseparator
+Display
 \family default
-cs), you'll get a nice WYSIWYG preview as soon as the cursor leaves the
- box.
+), you'll get a nice WYSIWYG preview as soon as the cursor leaves the box.
  Alternatively to the toolbar, you can also insert the symbols directly
  via the shortcut notation which is described in the 
 \emph on
@@ -2031,6 +2237,7 @@ For a detailed description of specific possibilities for linguists, please
 \begin_inset CommandInset citation
 LatexCommand cite
 key "linguistlyx"
+literal "true"
 
 \end_inset
 
@@ -2041,6 +2248,7 @@ key "linguistlyx"
 \begin_inset CommandInset bibitem
 LatexCommand bibitem
 key "covington"
+literal "true"
 
 \end_inset
 
@@ -2062,6 +2270,7 @@ http://www.ctan.org/tex-archive/macros/latex/contrib/covington/
 \begin_inset CommandInset bibitem
 LatexCommand bibitem
 key "csquotes"
+literal "true"
 
 \end_inset
 
@@ -2083,6 +2292,7 @@ http://www.ctan.org/tex-archive/macros/latex/contrib/csquotes/
 \begin_inset CommandInset bibitem
 LatexCommand bibitem
 key "enumitem"
+literal "true"
 
 \end_inset
 
@@ -2104,6 +2314,7 @@ http://www.ctan.org/tex-archive/macros/latex/contrib/enumitem/
 \begin_inset CommandInset bibitem
 LatexCommand bibitem
 key "float"
+literal "true"
 
 \end_inset
 
@@ -2125,6 +2336,7 @@ http://www.ctan.org/tex-archive/macros/latex/contrib/float/
 \begin_inset CommandInset bibitem
 LatexCommand bibitem
 key "forest"
+literal "true"
 
 \end_inset
 
@@ -2146,6 +2358,7 @@ http://www.ctan.org/tex-archive/graphics/pgf/contrib/forest
 \begin_inset CommandInset bibitem
 LatexCommand bibitem
 key "linguistlyx"
+literal "true"
 
 \end_inset
 
@@ -2158,7 +2371,7 @@ status collapsed
 
 \begin_layout Plain Layout
 
-http://wiki.lyx.org/LyX/LinguistLyX
+https://wiki.lyx.org/LyX/LinguistLyX
 \end_layout
 
 \end_inset
@@ -2170,6 +2383,7 @@ http://wiki.lyx.org/LyX/LinguistLyX
 \begin_inset CommandInset bibitem
 LatexCommand bibitem
 key "preview"
+literal "true"
 
 \end_inset
 
@@ -2191,6 +2405,7 @@ http://www.ctan.org/tex-archive/macros/latex/contrib/preview/
 \begin_inset CommandInset bibitem
 LatexCommand bibitem
 key "tipa"
+literal "true"
 
 \end_inset