]> git.lyx.org Git - lyx.git/blobdiff - lib/examples/linguistics.lyx
whitespace.
[lyx.git] / lib / examples / linguistics.lyx
index b8aec22e13af402a5e8a67951b92963cd46a7ce8..d143374e4907576d0c966512dfafeb4a96cd77c7 100644 (file)
@@ -1,12 +1,35 @@
 #LyX 2.2 created this file. For more info see http://www.lyx.org/
-\lyxformat 488
+\lyxformat 508
 \begin_document
 \begin_header
+\save_transient_properties true
+\origin /systemlyxdir/examples/
 \textclass article
 \begin_preamble
 %% 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
@@ -17,16 +40,16 @@ linguistics
 \language_package default
 \inputencoding auto
 \fontencoding global
-\font_roman lmodern
-\font_sans default
-\font_typewriter default
-\font_math auto
+\font_roman "lmodern" "FreeSerif"
+\font_sans "default" "FreeSans"
+\font_typewriter "default" "default"
+\font_math "auto" "auto"
 \font_default_family default
 \use_non_tex_fonts false
 \font_sc false
 \font_osf false
-\font_sf_scale 100
-\font_tt_scale 100
+\font_sf_scale 100 100
+\font_tt_scale 100 100
 \graphics default
 \default_output_format default
 \output_sync 0
@@ -187,10 +210,6 @@ key "covington"
 \end_inset
 
 : This is the base package used for numbered examples and glosses.
-\begin_inset Separator parbreak
-\end_inset
-
-
 \end_layout
 
 \begin_deeper
@@ -231,10 +250,6 @@ itemize
 description
 \emph default
 ).
-\begin_inset Separator parbreak
-\end_inset
-
-
 \end_layout
 
 \begin_deeper
@@ -268,10 +283,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
@@ -301,10 +312,6 @@ key "float"
 : 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
@@ -332,10 +339,6 @@ key "forest"
 \end_inset
 
 : This package is used to generate structure trees.
-\begin_inset Separator parbreak
-\end_inset
-
-
 \end_layout
 
 \begin_deeper
@@ -394,7 +397,7 @@ Consecutive single examples get their own numbers
 This is a subexample
 \begin_inset CommandInset label
 LatexCommand label
-name "sub:subexample"
+name "subsec:subexample"
 
 \end_inset
 
@@ -427,7 +430,7 @@ reference "exa:single-example"
  and 
 \begin_inset CommandInset ref
 LatexCommand ref
-reference "sub:subexample"
+reference "subsec:subexample"
 
 \end_inset
 
@@ -722,10 +725,6 @@ Settings\SpecialChar menuseparator
 LaTeX Preamble
 \family default
 :
-\begin_inset Separator parbreak
-\end_inset
-
-
 \end_layout
 
 \begin_layout Quote
@@ -874,21 +873,84 @@ textwidth
  in the example code) to fit the glosses to your actual page width.
 \end_layout
 
+\begin_layout Subsubsection*
+Footnotes in Glosses
+\end_layout
+
+\begin_layout Standard
+Although you can insert a footnote in a 
+\emph on
+Glosse
+\emph default
+ inset, LaTeX compilation will not succeed.
+ If you need footnotes, put 
+\family typewriter
+
+\backslash
+footnotemark
+\family default
+ in TeX mode in the glosse at the point where the footnote number should
+ appear, and
+\family typewriter
+\backslash
+footnotetext{Actual footnote ...}
+\family default
+, also in TeX mode, right behind the 
+\emph on
+Glosse
+\emph default
+ inset.
+ If you need several footnotes, just insert multiple of these constructs.
+\end_layout
+
 \begin_layout Subsubsection*
 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
@@ -900,9 +962,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
@@ -911,6 +978,7 @@ Local Layout
 :
 \end_layout
 
+\begin_deeper
 \begin_layout Quote
 \begin_inset listings
 lstparams "basicstyle={\footnotesize\ttfamily},tabsize=4"
@@ -1006,27 +1074,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
@@ -1606,7 +1695,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
@@ -1644,11 +1733,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
@@ -1656,8 +1792,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
@@ -1898,7 +2033,7 @@ after
 \begin_inset space ~
 \end_inset
 
-<space>+<Lingolabial from the IPA toolbar>
+<space>+<Linguolabial from the IPA toolbar>
 \family default
 ).
 \end_layout
@@ -1913,10 +2048,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
@@ -2101,7 +2244,7 @@ status collapsed
 
 \begin_layout Plain Layout
 
-http://www.ctan.org/tex-archive/macros/latex/contrib/forest/
+http://www.ctan.org/tex-archive/graphics/pgf/contrib/forest
 \end_layout
 
 \end_inset