]> git.lyx.org Git - lyx.git/blobdiff - lib/examples/linguistics.lyx
clean up the tufte-book example file (demonstrate class's default settings, omit...
[lyx.git] / lib / examples / linguistics.lyx
index b6ecddb1f56e0040876b9a980635d956139da320..7ae1b2b5e8d9f047a762f6566762e54d470c2765 100644 (file)
@@ -1,13 +1,16 @@
-#LyX 1.6.0svn created this file. For more info see http://www.lyx.org/
-\lyxformat 308
+#LyX 1.6.2svn created this file. For more info see http://www.lyx.org/
+\lyxformat 345
 \begin_document
 \begin_header
 \textclass article
 \begin_preamble
-
+%% Uncomment the following for Tableaux captions on top:
+%\floatstyle{plaintop}
+%\restylefloat{tableau}
 \end_preamble
+\use_default_options false
 \begin_modules
-Linguistics
+linguistics
 \end_modules
 \language english
 \inputencoding auto
@@ -19,10 +22,20 @@ Linguistics
 \font_osf false
 \font_sf_scale 100
 \font_tt_scale 100
+
 \graphics default
 \paperfontsize default
 \spacing single
-\use_hyperref false
+\use_hyperref true
+\pdf_bookmarks true
+\pdf_bookmarksnumbered false
+\pdf_bookmarksopen false
+\pdf_bookmarksopenlevel 1
+\pdf_breaklinks false
+\pdf_pdfborder true
+\pdf_colorlinks false
+\pdf_backref false
+\pdf_pdfusetitle true
 \papersize default
 \use_geometry false
 \use_amsmath 1
@@ -52,15 +65,14 @@ Writing linguistic papers with LyX
 
 \begin_layout Author
 Jürgen Spitzmüller
-\newline
-
-\begin_inset Flex URL
-status open
+\begin_inset Newline newline
+\end_inset
 
-\begin_layout Standard
 
-<spitz@lyx.org>
-\end_layout
+\begin_inset CommandInset href
+LatexCommand href
+target "spitz@lyx.org"
+type "mailto:"
 
 \end_inset
 
@@ -68,13 +80,13 @@ status open
 \end_layout
 
 \begin_layout Date
-18/12/2007
+14/09/2008
 \end_layout
 
 \begin_layout Abstract
 This paper describes some features that LyX provides to linguists.
  It demonstrates how to use some native support in order to produce numbered
- examples, glosses, semantic markup, and phonetic symbols (IPA).
+ examples, glosses, OT tableaux, semantic markup, and phonetic symbols (IPA).
 \end_layout
 
 \begin_layout Section
@@ -105,7 +117,7 @@ Modules
 \family sans
 Document\SpecialChar \menuseparator
 Settings\SpecialChar \menuseparator
-Class
+Modules
 \family default
 , select 
 \begin_inset Quotes eld
@@ -193,12 +205,28 @@ Meaning
  language in use.
 \end_layout
 
+\begin_layout Enumerate
+
+\emph on
+float.sty
+\emph default
+\begin_inset CommandInset citation
+LatexCommand cite
+key "float"
+
+\end_inset
+
+: Needed for the OT tableaux floats and list of floats.
+ This package should be part of any LaTeX distribution.
+\end_layout
+
 \begin_layout Section
 Numbered examples
 \end_layout
 
 \begin_layout Standard
-Numbered examples are inserted via the layout dropdown box in the toolbar.
+Numbered examples are inserted via the layout drop-down box in the toolbar.
  There are three variants:
 \end_layout
 
@@ -254,7 +282,7 @@ And another one
 
 \begin_layout Standard
 References to examples are produced as usual: insert a label to the example
- and a crossreference via 
+ and a cross-reference via 
 \family sans
 Insert\SpecialChar \menuseparator
 Cross references
@@ -297,6 +325,11 @@ Custom:Glosse
 Custom:Tri-Glosse
 \emph default
  insets consists of three lines and a translation.
+ Each translation line might span multiple lines in the output, i.
+\begin_inset space \thinspace{}
+\end_inset
+
+e., the paragraphs are automatically broken if they exceed the text width.
  Note that the translation line is mandatory and must be preceded by the
  command 
 \family typewriter
@@ -304,7 +337,7 @@ Custom:Tri-Glosse
 \backslash
 glt
 \family default
- which should be inserted verbatim in the Glosse inset (ERT is not needed,
+ which must be inserted verbatim in the glosse inset (TeX mode is not needed,
  and in fact not even possible).
 \end_layout
 
@@ -316,15 +349,15 @@ Here is a simple example:
 \begin_inset Flex Custom:Glosse
 status open
 
-\begin_layout Standard
+\begin_layout Plain Layout
 C'est un exemple simple
 \end_layout
 
-\begin_layout Standard
+\begin_layout Plain Layout
 {This is} an example simple
 \end_layout
 
-\begin_layout Standard
+\begin_layout Plain Layout
 
 \backslash
 glt 
@@ -344,27 +377,31 @@ This is a simple example
 \end_layout
 
 \begin_layout Standard
-Note that the braces hold together multi-word expressions.
- In the same vein, we can make a three-line glosse:
+\noindent
+Note how the braces hold together multi-word expressions.
+\end_layout
+
+\begin_layout Standard
+In the same vein, we can make a three-line glosse:
 \end_layout
 
 \begin_layout Standard
 \begin_inset Flex Custom:Tri-Glosse
 status open
 
-\begin_layout Standard
+\begin_layout Plain Layout
 C'est un exemple simple
 \end_layout
 
-\begin_layout Standard
+\begin_layout Plain Layout
 {Das ist} ein Beispiel einfach
 \end_layout
 
-\begin_layout Standard
+\begin_layout Plain Layout
 {This is} an example simple
 \end_layout
 
-\begin_layout Standard
+\begin_layout Plain Layout
 
 \backslash
 glt 
@@ -384,7 +421,8 @@ This is a simple example
 \end_layout
 
 \begin_layout Standard
-If you want to have numbered glosses, you can simply insert the Glosse inset
+\noindent
+If you want to have numbered glosses, you can simply insert the glosse inset
  to a numbered examples paragraph, as follows:
 \end_layout
 
@@ -392,19 +430,19 @@ If you want to have numbered glosses, you can simply insert the Glosse inset
 \begin_inset Flex Custom:Tri-Glosse
 status open
 
-\begin_layout Standard
+\begin_layout Plain Layout
 Mein Luftkissenfahrzeug ist voller Aale
 \end_layout
 
-\begin_layout Standard
+\begin_layout Plain Layout
 My skeertuig is vol palings
 \end_layout
 
-\begin_layout Standard
+\begin_layout Plain Layout
 My hovercraft is {full of} eels
 \end_layout
 
-\begin_layout Standard
+\begin_layout Plain Layout
 
 \backslash
 glt 
@@ -421,6 +459,441 @@ Do you have matches?
 \end_inset
 
 
+\end_layout
+
+\begin_layout Standard
+Note that font changes are not allowed in glosses.
+ Hence, the 
+\family sans
+Character Style
+\family default
+ dialog is disabled.
+ Since glosses are not hyphenated, an explicit language setting in the LaTeX
+ output is not required (in fact, it would break the output, since covington
+ does not support it).
+ However, you still might want to set the language for proper spell checking.
+ Currently, you have to do this as follows: select the text, and then issue
+\begin_inset Info
+type  "shortcut"
+arg   "command-execute"
+\end_inset
+
+\family sans
+language <lang>
+\family default
+, where 
+\family sans
+<lang>
+\family default
+ should be replaced by the respective language, e.
+\begin_inset space \thinspace{}
+\end_inset
+
+g.
+\family sans
+english
+\family default
+, 
+\family sans
+french
+\family default
+ or 
+\family sans
+ngerman
+\family default
+.
+ In the LaTeX output, this setting will be supressed.
+\end_layout
+
+\begin_layout Section
+Optimality Theory Tableaux
+\end_layout
+
+\begin_layout Standard
+OT tableaux itself can of course simply be inserted as ordinary tables (for
+ specific features such as dashed lines and shaded cells, cf.
+ the 
+\emph on
+EmbeddedObjects
+\emph default
+ manual).
+ However, you might want to have the tableaux numbered throughout the document,
+ and you might want to have a 
+\emph on
+List of Tableaux
+\emph default
+, similar to the 
+\emph on
+List of Tables
+\emph default
+.
+\end_layout
+
+\begin_layout Standard
+The Linguistics module provides support for both.
+ In 
+\family sans
+Insert\SpecialChar \menuseparator
+Floats
+\family default
+, you'll find a Tableaux float:
+\end_layout
+
+\begin_layout Standard
+\begin_inset Float tableau
+placement h
+wide false
+sideways false
+status open
+
+\begin_layout Plain Layout
+\align center
+\begin_inset Tabular
+<lyxtabular version="3" rows="5" columns="5">
+<features>
+<column alignment="right" valignment="top" width="0">
+<column alignment="center" valignment="top" width="0">
+<column alignment="center" valignment="top" width="0">
+<column alignment="center" valignment="top" width="0" special="|c">
+<column alignment="center" valignment="top" width="0">
+<row>
+<cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+/atikap/
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\noun on
+Onset
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\noun on
+NoCoda
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\noun on
+Dep
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" bottomline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\noun on
+Max
+\end_layout
+
+\end_inset
+</cell>
+</row>
+<row>
+<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+\begin_inset Formula $\mbox{☞}$
+\end_inset
+
+\begin_inset Formula $\mbox{\textipa{P}}$
+\end_inset
+
+a.ti.ka
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+*
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+*
+\end_layout
+
+\end_inset
+</cell>
+</row>
+<row>
+<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+a.ti.ka
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+*!
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+*
+\end_layout
+
+\end_inset
+</cell>
+</row>
+<row>
+<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+\begin_inset Formula $\mbox{\textipa{P}}$
+\end_inset
+
+a.ti.kap
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+*!
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+*
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\end_layout
+
+\end_inset
+</cell>
+</row>
+<row>
+<cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+a.ti.kap
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+*!
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" bottomline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+*!
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\end_layout
+
+\end_inset
+</cell>
+<cell alignment="center" valignment="top" topline="true" bottomline="true" rightline="true" usebox="none">
+\begin_inset Text
+
+\begin_layout Plain Layout
+
+\end_layout
+
+\end_inset
+</cell>
+</row>
+</lyxtabular>
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Plain Layout
+\begin_inset Caption
+
+\begin_layout Plain Layout
+Example Tableau
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Standard
+Note that by default, the caption is always placed below the tableaux in
+ the output, no matter where you put it in the LyX window.
+ To get the Tableaux captions on top, put the following code in 
+\family sans
+Document\SpecialChar \menuseparator
+Settings\SpecialChar \menuseparator
+Preamble
+\family default
+:
+\end_layout
+
+\begin_layout LyX-Code
+
+\backslash
+floatstyle{plaintop}
+\end_layout
+
+\begin_layout LyX-Code
+
+\backslash
+restylefloat{tableau}
+\end_layout
+
+\begin_layout Standard
+If your using a KOMA class, use the following instead for better spacing:
+\end_layout
+
+\begin_layout LyX-Code
+
+\backslash
+floatstyle{komaabove}
+\end_layout
+
+\begin_layout LyX-Code
+
+\backslash
+restylefloat{tableau}
+\end_layout
+
+\begin_layout Standard
+A List of Tableaux inset can be found in 
+\family sans
+Insert\SpecialChar \menuseparator
+Lists & TOC
+\family default
+.
+ Even though this usually is placed at the beginning or the end of the document,
+ we do this here for exemplification purposes:
+\end_layout
+
+\begin_layout Standard
+\begin_inset FloatList tableau
+
+\end_inset
+
+
 \end_layout
 
 \begin_layout Section
@@ -437,7 +910,7 @@ Concept (in small caps):
 \begin_inset Flex CharStyle:Concepts
 status collapsed
 
-\begin_layout Standard
+\begin_layout Plain Layout
 concept
 \end_layout
 
@@ -451,7 +924,7 @@ Expression (emphasized):
 \begin_inset Flex CharStyle:Expression
 status collapsed
 
-\begin_layout Standard
+\begin_layout Plain Layout
 expression
 \end_layout
 
@@ -465,7 +938,7 @@ Meaning (in single quotes):
 \begin_inset Flex CharStyle:Meaning
 status collapsed
 
-\begin_layout Standard
+\begin_layout Plain Layout
 meaning
 \end_layout
 
@@ -560,20 +1033,87 @@ Phonetic symbols.
  
 \family default
 You get a little frame, where you can insert the symbols using the shortcut
- notation which is described in the tipa manual.
+ notation which is described in the 
+\emph on
+tipa
+\emph default
+ manual.
  Example: 
 \begin_inset Formula $\text{\textipa{[Ekspl@"neIS@n]}}$
 \end_inset
 
-.
- Given that preview-latex is installed and you have switched on instant
- preview (in 
+ (
+\emph on
+tipa
+\emph default
+ shortcut notation: 
+\family typewriter
+[Ekspl@"neIS@n
+\family default
+]).
+ Given that
+\emph on
+ preview-lat
 \family sans
-Tools\SpecialChar \menuseparator
+\emph default
+e
+\family default
+x is installed and you have switched on instant preview (in
+\family sans
+ Tools\SpecialChar \menuseparator
 Preferences\SpecialChar \menuseparator
-Graphics
+Graphi
 \family default
-), you'll get a nice preview as soon as the cursor leaves the frame.
+cs), you'll get a nice preview as soon as the cursor leaves the frame.
+\end_layout
+
+\begin_layout Standard
+Furthermore, most IPA glyphs can also be inserted (e.
+\begin_inset space \thinspace{}
+\end_inset
+
+g.
+\begin_inset space \space{}
+\end_inset
+
+via 
+\family sans
+Insert\SpecialChar \menuseparator
+Special characters\SpecialChar \menuseparator
+Symbols\SpecialChar \ldots{}
+
+\family default
+) or pasted directly into LyX: [ɛkspləˈneɪʃən].
+ In the output, they will be automatically transformed into the correct
+\emph on
+tipa
+\emph default
+ macro (if not, please inform me).
+ However, please note that the former method produces better output quality
+ for two reasons:
+\end_layout
+
+\begin_layout Enumerate
+direct input might result in a mix of fonts (in the above example, the latin
+ characters are taken from the base font, the IPA glyphs from the IPA font,
+ whereas 
+\family sans
+Insert\SpecialChar \menuseparator
+Special characters\SpecialChar \menuseparator
+Phonetic symbol
+\family default
+s uses the IPA font for all characters)
+\end_layout
+
+\begin_layout Enumerate
+the letter kerning is not preserved
+\end_layout
+
+\begin_layout Standard
+So unless you only need to insert single IPA characters, the former method
+ is recommended, and it's worth learning the (pretty intuitive) IPA shortcut
+ notation.
 \end_layout
 
 \begin_layout Section
@@ -603,7 +1143,7 @@ The covington package:
 \begin_inset Flex URL
 status collapsed
 
-\begin_layout Standard
+\begin_layout Plain Layout
 
 http://www.ctan.org/tex-archive/macros/latex/contrib/covington/
 \end_layout
@@ -624,7 +1164,7 @@ The csquotes package:
 \begin_inset Flex URL
 status collapsed
 
-\begin_layout Standard
+\begin_layout Plain Layout
 
 http://www.ctan.org/tex-archive/macros/latex/contrib/csquotes/
 \end_layout
@@ -645,7 +1185,7 @@ The enumitem package:
 \begin_inset Flex URL
 status collapsed
 
-\begin_layout Standard
+\begin_layout Plain Layout
 
 http://www.ctan.org/tex-archive/macros/latex/contrib/enumitem/
 \end_layout
@@ -655,6 +1195,27 @@ http://www.ctan.org/tex-archive/macros/latex/contrib/enumitem/
 .
 \end_layout
 
+\begin_layout Bibliography
+\begin_inset CommandInset bibitem
+LatexCommand bibitem
+key "float"
+
+\end_inset
+
+The float package: 
+\begin_inset Flex URL
+status collapsed
+
+\begin_layout Plain Layout
+
+http://www.ctan.org/tex-archive/macros/latex/contrib/float/
+\end_layout
+
+\end_inset
+
+.
+\end_layout
+
 \begin_layout Bibliography
 \begin_inset CommandInset bibitem
 LatexCommand bibitem
@@ -666,9 +1227,9 @@ Maria Gouskova, Stacia Hartleben and Jürgen Spitzmüller: Using LyX for Linguis
 c Papers.
  
 \begin_inset Flex URL
-status open
+status collapsed
 
-\begin_layout Standard
+\begin_layout Plain Layout
 
 http://wiki.lyx.org/LyX/LinguistLyX
 \end_layout
@@ -689,7 +1250,7 @@ The preview-latex package:
 \begin_inset Flex URL
 status collapsed
 
-\begin_layout Standard
+\begin_layout Plain Layout
 
 http://www.ctan.org/tex-archive/macros/latex/contrib/preview/
 \end_layout
@@ -710,7 +1271,7 @@ The tipa package and fonts:
 \begin_inset Flex URL
 status collapsed
 
-\begin_layout Standard
+\begin_layout Plain Layout
 
 http://www.ctan.org/tex-archive/fonts/tipa/
 \end_layout