commit 5e4e1c74e7efa693a401bec927a7e2eb0c6578df
Author: Juergen Spitzmueller <[email protected]>
Date:   Tue Apr 21 20:38:47 2015 +0200

    Document new Glosse inset and some further minor changes.

diff --git a/lib/examples/de/linguistics.lyx b/lib/examples/de/linguistics.lyx
index 9fcbebe..45d2dfe 100644
--- a/lib/examples/de/linguistics.lyx
+++ b/lib/examples/de/linguistics.lyx
@@ -1,5 +1,5 @@
 #LyX 2.2 created this file. For more info see http://www.lyx.org/
-\lyxformat 487
+\lyxformat 488
 \begin_document
 \begin_header
 \textclass article
@@ -108,7 +108,7 @@ type "mailto:";
 \end_layout
 
 \begin_layout Date
-20.04.2015
+21.04.2015
 \end_layout
 
 \begin_layout Abstract
@@ -319,6 +319,37 @@ arg   "float"
 \end_layout
 
 \end_deeper
+\begin_layout Enumerate
+
+\emph on
+forest.sty
+\emph default
+ 
+\begin_inset CommandInset citation
+LatexCommand cite
+key "forest"
+
+\end_inset
+
+: Dieses Paket wird zur Erzeugung von Strukturbäumen verwendet.
+\begin_inset Separator parbreak
+\end_inset
+
+
+\end_layout
+
+\begin_deeper
+\begin_layout Itemize
+Auf Ihrem System installiert: 
+\begin_inset Info
+type  "package"
+arg   "forest"
+\end_inset
+
+.
+\end_layout
+
+\end_deeper
 \begin_layout Section
 Nummerierte Beispiele
 \end_layout
@@ -441,30 +472,31 @@ Benutzerdefinierte Einfügungen
 \emph on
 Glosse
 \emph default
- besteht aus zwei Zeilen und einer weiteren Zeile für die Paraphrase, eignet
- sich folglich für zweisprachige Glossen, die 
+ besteht aus zwei Zeilen für das Glossenpaar und einer weiteren Zeile für
+ die Paraphrase, die 
 \emph on
 Tri-Glosse
 \emph default
- besteht aus drei Zeilen und einer Zeile für die Paraphrase, erlaubt also
- die Verwendung einer dritten Sprache in der Glosse.
+ besteht aus drei Zeilen und einer Zeile für die Paraphrase (die dritte
+ Zeile wird zumeist für morphologische oder phonologische Angaben verwendet).
  Die einzelnen Zeilen können länger sein als die Textbreite, sie werden
  dann einfach automatisch und korrekt umbrochen.
- Bitte beachten Sie, dass die Zeile für die Paraphrase notwendig ist.
- Wenn sie fehlt, wird die entsprechende Glosse einen Fehler generieren.
- Die Paraphrase muss derzeit noch manuell durch den Befehl 
-\family typewriter
-
-\backslash
-glt
+ Die Paraphrase wird über 
+\family sans
+Einfügen\SpecialChar menuseparator
+Glossen-Übersetzung
 \family default
- eingeleitet werden, der direkt (also nicht im \SpecialChar TeX
--Modus) eingegeben werden
- muss.
+ eingegeben.
+ Ungeachtet wo Sie diese innerhalb der Glosse einfügen, wird die Paraphrase
+ immer als letzte Zeile ausgegeben.
 \end_layout
 
 \begin_layout Standard
-Hier ist ein einfaches Beispiel:
+Hier ist ein einfaches Beispiel für eine 
+\emph on
+Glosse
+\emph default
+:
 \end_layout
 
 \begin_layout Standard
@@ -472,20 +504,33 @@ Hier ist ein einfaches Beispiel:
 status open
 
 \begin_layout Plain Layout
-
-C'est un exemple simple
+C'est       un exemple simple
 \end_layout
 
 \begin_layout Plain Layout
+\begin_inset Flex GroupGlossedWords
+status open
+
+\begin_layout Plain Layout
+Dies ist
+\end_layout
 
-{Dies ist} ein Beispiel einfach
+\end_inset
+
+ ein Beispiel einfach
 \end_layout
 
 \begin_layout Plain Layout
+\begin_inset Argument 1
+status open
+
+\begin_layout Plain Layout
+Dies ist ein einfaches Beispiel
+\end_layout
+
+\end_inset
 
 
-\backslash
-glt Dies ist ein einfaches Beispiel
 \end_layout
 
 \end_inset
@@ -495,11 +540,49 @@ glt Dies ist ein einfaches Beispiel
 
 \begin_layout Standard
 \noindent
-Beachten Sie, dass die geschweiften Klammern Mehrwortelemente zusammenhalten.
+Verwenden Sie 
+\family sans
+Bearbeiten\SpecialChar menuseparator
+Textstil\SpecialChar menuseparator
+Glossierte Wortgruppen
+\family default
+, um Mehrwortelemente zusammenzuhalten (alternativ können Sie auch im TeX-Modus
+ 
+\begin_inset ERT
+status open
+
+\begin_layout Plain Layout
+
+{
+\end_layout
+
+\end_inset
+
+diese Wörter geschweift einklammern
+\begin_inset ERT
+status open
+
+\begin_layout Plain Layout
+
+}
+\end_layout
+
+\end_inset
+
+).
+ Beachten Sie, dass Sie im \SpecialChar LyX
+-Fenster mehrere Leerzechen nacheinander einfügen
+ können, um die Glossen dort schöner auszurichten.
+ Die Ausgabe wird davon nicht berührt.
 \end_layout
 
 \begin_layout Standard
-Eine Tri-Glosse wird analog erzeugt:
+Hier ist eine dreizeilige Glosse (
+\emph on
+Tri-Glosse
+\emph default
+).
+ Sie wird analog erzeugt:
 \end_layout
 
 \begin_layout Standard
@@ -507,25 +590,46 @@ Eine Tri-Glosse wird analog erzeugt:
 status open
 
 \begin_layout Plain Layout
-
-C'est un exemple simple
+C'est      un   exemple simple
 \end_layout
 
 \begin_layout Plain Layout
+\begin_inset Flex GroupGlossedWords
+status open
+
+\begin_layout Plain Layout
+This is
+\end_layout
 
-{This is} an example simple
+\end_inset
+
+  an   example simple
 \end_layout
 
 \begin_layout Plain Layout
+\begin_inset Flex GroupGlossedWords
+status open
 
-{Dies ist} ein Beispiel einfach
+\begin_layout Plain Layout
+Dies ist
+\end_layout
+
+\end_inset
+
+ ein Beispiel  einfach
 \end_layout
 
 \begin_layout Plain Layout
+\begin_inset Argument 1
+status open
+
+\begin_layout Plain Layout
+Dies ist ein einfaches Beispiel
+\end_layout
+
+\end_inset
 
 
-\backslash
-glt Dies ist ein einfaches Beispiel
 \end_layout
 
 \end_inset
@@ -548,185 +652,54 @@ Nummeriertes Beispiel
 status open
 
 \begin_layout Plain Layout
-
-Mein Luftkissenfahrzeug ist voller Aale
+Mein Luftkissenfahrzeug ist voller  Aale
 \end_layout
 
 \begin_layout Plain Layout
-
-My skeertuig is vol palings
+My    skeertuig                   is   vol      palings
 \end_layout
 
 \begin_layout Plain Layout
-
-My hovercraft is {full of} eels
-\end_layout
+My    hovercraft                 is 
+\begin_inset Flex GroupGlossedWords
+status open
 
 \begin_layout Plain Layout
-
-
-\backslash
-glt Do you have matches?
+full of
 \end_layout
 
 \end_inset
 
-
+  eels
 \end_layout
 
-\begin_layout Subsection*
-Beschränkungen von \SpecialChar LyX
--Glossen
-\end_layout
+\begin_layout Plain Layout
+\begin_inset Argument 1
+status open
 
-\begin_layout Standard
-Die Unterstützung von Glossen in \SpecialChar LyX
- steckt noch in den Kinderschuhen.
- Es gibt einige Beschränkungen, die in zukünftigen \SpecialChar LyX
--Versionen möglicherweise
- behoben werden:
+\begin_layout Plain Layout
+Do you have matches?
 \end_layout
 
-\begin_layout Enumerate
-Schriftänderungen sind in den Glossen nicht möglich.
- Der Textstil-Dialog ist daher auch deaktiviert.
- Da Wörter in Glossen niemals getrennt werden, ist eine explizite Bestimmung
- der Sprache in der \SpecialChar LaTeX
--Ausgabe nicht nötig (und sie würde auch zu Fehlern
- führen, da das 
-\emph on
-covington
-\emph default
--Paket dies nicht unterstützt).
- Dennoch wollen Sie vielleicht die Sprache in den Glossen festlegen, damit
- die Rechtschreibprüfung in \SpecialChar LyX
- richtig funktioniert.
- Um das zu tun, müssen Sie folgendermaßen vorgehen: Markieren Sie den Text
- und führen Sie dann 
-\family sans
-
-\begin_inset Info
-type  "shortcut"
-arg   "command-execute"
-\end_inset
-
- language <lang> 
-\family default
-aus (
-\family sans
-
-\begin_inset Info
-type  "shortcut"
-arg   "command-execute"
-\end_inset
-
-
-\family default
- öffnet den 
-\begin_inset Quotes gls
 \end_inset
 
-Minibuffer
-\begin_inset Quotes grs
-\end_inset
 
-, in den Sie dann 
-\family sans
-language <lang>
-\family default
- eingeben), wobei Sie 
-\family sans
-<lang>
-\family default
- durch die gewünschte Sprache ersetzen, also etwa 
-\family sans
-ngerman
-\family default
-, 
-\family sans
-english
-\family default
- oder 
-\family sans
-french
-\family default
-.
- In der \SpecialChar LaTeX
--Ausgabe werden die Sprachumschaltungen nun zwar weiterhin unterdrückt,
- aber die Rechtschreibprüfung erkennt die Sprache.
 \end_layout
 
-\begin_layout Enumerate
-Da der Inhalt von Glossen unverändert an \SpecialChar LaTeX
- weitergegeben wird, passt \SpecialChar LyX
- die
- Textkodierung nicht an den Inhalt an.
- Das heißt, dass Sie, wenn Sie in der Glosse Zeichen verwenden, die die
- aktuelle Kodierung nicht abdeckt, eine Fehlermeldung bekommen werden.
- Folgendermaßen können Sie das Problem umgehen:
-\begin_inset Separator parbreak
 \end_inset
 
 
 \end_layout
 
-\begin_deeper
-\begin_layout Itemize
-Geben Sie entweder den Text außerhalb der Glosse ein, öffnen Sie dann 
-\family sans
-Ansicht\SpecialChar menuseparator
-Quelle ansehen
-\family default
- und kopieren Sie den \SpecialChar LaTeX
--Code von dort in die Glosse,
-\end_layout
-
-\begin_layout Itemize
-oder markieren Sie die ganze Glosse (von außen) und stellen Sie über 
-\family sans
-Bearbeiten\SpecialChar menuseparator
-Sprache\SpecialChar menuseparator
-Weitere Sprachen\SpecialChar ldots
- 
-\family default
-die angemessene Sprache ein,
+\begin_layout Subsection*
+Tipps & Tricks
 \end_layout
 
-\begin_layout Itemize
-oder ändern Sie in 
-\family sans
-Dokument\SpecialChar menuseparator
-Einstellungen\SpecialChar ldots
-\SpecialChar menuseparator
-Sprache
-\family default
- die Kodierung auf 
-\emph on
-Unicode (utf8
-\emph default
-),
+\begin_layout Subsubsection*
+Seitenumbrüche innerhalb von Glossen vermeiden
 \end_layout
 
-\begin_layout Itemize
-oder wählen Sie in 
-\family sans
-Dokument\SpecialChar menuseparator
-Einstellungen\SpecialChar ldots
-\SpecialChar menuseparator
-Schriften
-\family default
- 
-\emph on
-Nicht-\SpecialChar TeX
--Schriften verwenden (via Xe\SpecialChar TeX
-/Lua\SpecialChar TeX
-)
-\emph default
-.
-\end_layout
-
-\end_deeper
-\begin_layout Enumerate
+\begin_layout Standard
 Innerhalb von Glossen können Seiten umbrochen werden, was natürlich nicht
  erwünscht ist.
  Um dies zu umgehen, können Sie Glossen in Boxen packen (über 
@@ -753,10 +726,9 @@ Einstellungen\SpecialChar ldots
 
 \end_layout
 
-\begin_deeper
-\begin_layout LyX-Code
+\begin_layout Quote
 \begin_inset listings
-lstparams "basicstyle={\footnotesize},language={[LaTeX]TeX}"
+lstparams "language={[LaTeX]TeX},basicstyle={\footnotesize\ttfamily}"
 inline false
 status open
 
@@ -776,14 +748,18 @@ AtBeginDocument{%
 
 
 \backslash
-@ifundefined{linggloss}{}{%
+renewenvironment{linggloss}[2][]{%
 \end_layout
 
 \begin_layout Plain Layout
 
 
 \backslash
-renewenvironment{linggloss}[1]{%
+def
+\backslash
+glosstr{
+\backslash
+glt #1}%
 \end_layout
 
 \begin_layout Plain Layout
@@ -799,11 +775,13 @@ textwidth}
 
 
 \backslash
-gll #1}{
+gll #2}{
+\backslash
+glosstr
 \backslash
 glend
 \backslash
-end{minipage}}}
+end{minipage}}
 \end_layout
 
 \begin_layout Plain Layout
@@ -816,9 +794,9 @@ end{minipage}}}
 
 \end_layout
 
-\begin_layout LyX-Code
+\begin_layout Quote
 \begin_inset listings
-lstparams "basicstyle={\footnotesize},language={[LaTeX]TeX}"
+lstparams "language={[LaTeX]TeX},basicstyle={\footnotesize\ttfamily}"
 inline false
 status open
 
@@ -838,14 +816,18 @@ AtBeginDocument{%
 
 
 \backslash
-@ifundefined{lingglosss}{}{%
+renewenvironment{lingglosss}[2][]{%
 \end_layout
 
 \begin_layout Plain Layout
 
 
 \backslash
-renewenvironment{linggloss}[1]{%
+def
+\backslash
+glosstr{
+\backslash
+glt #1}%
 \end_layout
 
 \begin_layout Plain Layout
@@ -861,11 +843,13 @@ textwidth}
 
 
 \backslash
-glll #1}{
+glll #2}{
+\backslash
+glosstr
 \backslash
 glend
 \backslash
-end{minipage}}}
+end{minipage}}
 \end_layout
 
 \begin_layout Plain Layout
@@ -888,7 +872,147 @@ textwidth
  im Beispielcode) ändern, damit sie zur Seitenbreite Ihres Dokuments passt.
 \end_layout
 
-\end_deeper
+\begin_layout Subsubsection*
+Glossen (und Beispiele) in Beamer-Präsentationen
+\end_layout
+
+\begin_layout Standard
+Leider arbeiten das Paket 
+\emph on
+covington
+\emph default
+ und die 
+\emph on
+Beamer
+\emph default
+-Klasse von Haus aus nicht gut zusammen, da beide die Befehle 
+\family typewriter
+
+\backslash
+example
+\family default
+ und 
+\family typewriter
+
+\backslash
+examples
+\family default
+ zu definieren versuchen, was eine \SpecialChar LaTeX
+-Fehlermeldung erzeugt.
+ Sie können das Problem beheben, indem Sie in 
+\family sans
+Dokument\SpecialChar menuseparator
+Einstellungen\SpecialChar menuseparator
+Lokales Format
+\family default
+ folgenden Code kopieren:
+\end_layout
+
+\begin_layout Quote
+\begin_inset listings
+lstparams "basicstyle={\footnotesize\ttfamily},tabsize=4"
+inline false
+status open
+
+\begin_layout Plain Layout
+Provides covington 1
+\end_layout
+
+\begin_layout Plain Layout
+AddToPreamble
+\end_layout
+
+\begin_layout Plain Layout
+               
+\backslash
+let
+\backslash
+example
+\backslash
+relax
+\end_layout
+
+\begin_layout Plain Layout
+               
+\backslash
+let
+\backslash
+endexample
+\backslash
+relax
+\end_layout
+
+\begin_layout Plain Layout
+               
+\backslash
+let
+\backslash
+examples
+\backslash
+relax
+\end_layout
+
+\begin_layout Plain Layout
+               
+\backslash
+let
+\backslash
+endexamples
+\backslash
+relax
+\end_layout
+
+\begin_layout Plain Layout
+               
+\backslash
+usepackage{covington}
+\end_layout
+
+\begin_layout Plain Layout
+EndPreamble
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Standard
+Drücken Sie 
+\begin_inset Quotes gld
+\end_inset
+
+Validieren
+\begin_inset Quotes grd
+\end_inset
+
+ und dann 
+\begin_inset Quotes gld
+\end_inset
+
+OK
+\begin_inset Quotes grd
+\end_inset
+
+.
+ Dies hat den Effekt, dass die Beispiel-Umgebungen von Beamer deaktiviert
+ werden (und also nicht mehr verwendet werden können), dafür können Sie
+ dann aber die des Linguistik-Moduls verwenden.
+\end_layout
+
+\begin_layout Standard
+Beachten Sie auch, dass Sie für Glossen in Beamer einen 
+\begin_inset Quotes gld
+\end_inset
+
+fragilen
+\begin_inset Quotes grd
+\end_inset
+
+ Rahmen verwenden müssen.
+ 
+\end_layout
+
 \begin_layout Section
 Tableaux für Optimalitätstheorie
 \end_layout
@@ -1235,7 +1359,7 @@ name "tab:Beispiel-Tableau"
 Bitte beachten Sie, dass die Legende in der Standardeinstellung immer unter
  dem Tableau ausgegeben wird, egal, wohin Sie sie im \SpecialChar LyX
 -Arbeitsfenster setzen.
- Um die Legende über die Tableaux zu setzen, müssen Sie den folgenden Code
+ Um die Legende über das Tableau zu setzen, müssen Sie den folgenden Code
  in 
 \family sans
 Dokument\SpecialChar menuseparator
@@ -1245,35 +1369,57 @@ Präambel
 eingeben:
 \end_layout
 
-\begin_layout LyX-Code
+\begin_layout Quote
+\begin_inset listings
+lstparams "language={[LaTeX]TeX},basicstyle={\footnotesize\ttfamily}"
+inline false
+status open
+
+\begin_layout Plain Layout
 
 \backslash
 floatstyle{plaintop}
 \end_layout
 
-\begin_layout LyX-Code
+\begin_layout Plain Layout
 
 \backslash
 restylefloat{tableau}
 \end_layout
 
+\end_inset
+
+
+\end_layout
+
 \begin_layout Standard
 Wenn Sie eine KOMA-Klasse verwenden, nehmen Sie statt dessen das Folgende
  (welches im Kontext der KOMA-Klassen bessere Abstände erzeugt):
 \end_layout
 
-\begin_layout LyX-Code
+\begin_layout Quote
+\begin_inset listings
+lstparams "language={[LaTeX]TeX},basicstyle={\footnotesize\ttfamily}"
+inline false
+status open
+
+\begin_layout Plain Layout
 
 \backslash
 floatstyle{komaabove}
 \end_layout
 
-\begin_layout LyX-Code
+\begin_layout Plain Layout
 
 \backslash
 restylefloat{tableau}
 \end_layout
 
+\end_inset
+
+
+\end_layout
+
 \begin_layout Standard
 Ein Verzeichnis der Tableaux geben Sie, wie bei normalen Tabellen auch,
  über 
@@ -1283,9 +1429,7 @@ Liste\SpecialChar breakableslash
 Inhaltsverzeichnis
 \family default
  ein.
- Normalerweise werden Sie dieses Verzeichnis an den Beginn oder ans Ende
- ihres Dokuments setzen, zu Demonstrationszwecken machen wir es aber an
- dieser Stelle:
+ Dies sieht dann so aus:
 \end_layout
 
 \begin_layout Standard
@@ -1367,7 +1511,13 @@ Präambel
  ein:
 \end_layout
 
-\begin_layout LyX-Code
+\begin_layout Quote
+\begin_inset listings
+lstparams "language={[LaTeX]TeX},basicstyle={\footnotesize\ttfamily}"
+inline false
+status open
+
+\begin_layout Plain Layout
 
 \backslash
 renewcommand
@@ -1377,6 +1527,11 @@ lingexpr[1]{
 textbf{#1}}
 \end_layout
 
+\end_inset
+
+
+\end_layout
+
 \begin_layout Standard
 Auf ähnliche Weise kann auch das Aussehen von 
 \emph on
@@ -1696,6 +1851,20 @@ aktivieren.
  Notation eingeben können.
  Wenn Sie in dem Eingabebereich sind, wird eine Symbolleiste aktiviert,
  die die wichtigsten IPA-Symbole (nach den IPA-Kategorien sortiert) 
bereitstellt.
+\begin_inset Foot
+status collapsed
+
+\begin_layout Plain Layout
+Es fehlt ein Symbol: der (2005 in das IPA aufgenommene) labiodentale Flap.
+ Dieses Zeichen unterstützt das 
+\emph on
+Tipa-
+\emph default
+Pakete noch nicht; daher kann es auch nicht von LyX unterstützt werden.
+\end_layout
+
+\end_inset
+
  Jeder Symbolbereich dieser Symbolleiste kann durch Klicken auf die 
gestrichelte
  Linie abgetrennt werden.
  Dadurch kann phonetische Notation recht komfortabel eingegeben werden:
@@ -1710,7 +1879,7 @@ aktivieren.
 
 .
 \begin_inset Foot
-status open
+status collapsed
 
 \begin_layout Plain Layout
 Wenn Sie ein diakritisches Zeichen einfügen möchten, müssen Sie das Diakritikum
diff --git a/lib/examples/linguistics.lyx b/lib/examples/linguistics.lyx
index a944fd8..b8aec22 100644
--- a/lib/examples/linguistics.lyx
+++ b/lib/examples/linguistics.lyx
@@ -1,5 +1,5 @@
 #LyX 2.2 created this file. For more info see http://www.lyx.org/
-\lyxformat 487
+\lyxformat 488
 \begin_document
 \begin_header
 \textclass article
@@ -108,7 +108,7 @@ type "mailto:";
 \end_layout
 
 \begin_layout Date
-20/04/2015
+21/04/2015
 \end_layout
 
 \begin_layout Abstract
@@ -457,32 +457,37 @@ Custom Insets
 \family default
 : The standard 
 \emph on
-Custom:Glosse
+Glosse
 \emph default
- provides a gloss that consists of two lines and a translation, the 
+ provides a gloss that consists of two lines (a gloss pair) and a translation,
+ the 
 \emph on
-Custom:Tri-Glosse
+Tri-Glosse
 \emph default
- insets consists of three lines and a translation.
+ insets consists of three lines and a translation (the third line is usually
+ needed to give morphological or phonological information next to the gloss
+ pair).
  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
-
-\backslash
-glt
+ The translation line is inserted by means of 
+\family sans
+Insert\SpecialChar menuseparator
+Glosse Translation
 \family default
- which must be inserted verbatim in the gloss inset (\SpecialChar TeX
- mode is not needed,
- and in fact not even possible).
+.
+ It does not matter where you insert the translation, it is always printed
+ as the last line.
 \end_layout
 
 \begin_layout Standard
-Here is a simple example:
+Here is a simple example for a 
+\emph on
+Glosse
+\emph default
+:
 \end_layout
 
 \begin_layout Standard
@@ -490,20 +495,40 @@ Here is a simple example:
 status open
 
 \begin_layout Plain Layout
-
-C'est un exemple simple
+C'est     un exemple simple
 \end_layout
 
 \begin_layout Plain Layout
+\begin_inset Flex GroupGlossedWords
+status open
+
+\begin_layout Plain Layout
+This is
+\end_layout
+
+\end_inset
 
-{This is} an example simple
+ an example simple
 \end_layout
 
 \begin_layout Plain Layout
+\begin_inset Argument 1
+status open
+
+\begin_layout Plain Layout
+\begin_inset Quotes els
+\end_inset
+
+This is a simple example
+\begin_inset Quotes ers
+\end_inset
+
+
+\end_layout
+
+\end_inset
 
 
-\backslash
-glt This is a simple example
 \end_layout
 
 \end_inset
@@ -513,11 +538,47 @@ glt This is a simple example
 
 \begin_layout Standard
 \noindent
-Note how the braces hold together multi-word expressions.
+Use 
+\family sans
+Edit\SpecialChar menuseparator
+Text Style\SpecialChar menuseparator
+GroupGlossedWords
+\family default
+ in order to hold together multi-word expressions (or alternatively just
+ put braces in TeX mode 
+\begin_inset ERT
+status open
+
+\begin_layout Plain Layout
+
+{
+\end_layout
+
+\end_inset
+
+around those words
+\begin_inset ERT
+status open
+
+\begin_layout Plain Layout
+
+}
+\end_layout
+
+\end_inset
+
+).
+ Note that you can enter multiple spaces to align the glosses in the 
\SpecialChar LyX
+ work
+ area; this will not affect the output.
 \end_layout
 
 \begin_layout Standard
-In the same vein, we can make a three-line gloss:
+Here is a three-line gloss (
+\emph on
+Tri-Glosse
+\emph default
+); the procedure is the same:
 \end_layout
 
 \begin_layout Standard
@@ -525,25 +586,53 @@ In the same vein, we can make a three-line gloss:
 status open
 
 \begin_layout Plain Layout
-
-C'est un exemple simple
+C'est      un exemple simple
 \end_layout
 
 \begin_layout Plain Layout
+\begin_inset Flex GroupGlossedWords
+status open
+
+\begin_layout Plain Layout
+Das ist
+\end_layout
+
+\end_inset
 
-{Das ist} ein Beispiel einfach
+ ein Beispiel einfach
 \end_layout
 
 \begin_layout Plain Layout
+\begin_inset Flex GroupGlossedWords
+status open
+
+\begin_layout Plain Layout
+This is
+\end_layout
+
+\end_inset
 
-{This is} an example simple
+ an  example simple
 \end_layout
 
 \begin_layout Plain Layout
+\begin_inset Argument 1
+status open
+
+\begin_layout Plain Layout
+\begin_inset Quotes els
+\end_inset
+
+This is a simple example
+\begin_inset Quotes ers
+\end_inset
+
+
+\end_layout
+
+\end_inset
 
 
-\backslash
-glt This is a simple example
 \end_layout
 
 \end_inset
@@ -553,8 +642,8 @@ glt This is a simple example
 
 \begin_layout Standard
 \noindent
-If you want to have numbered glosses, you can simply insert the gloss inset
- to a numbered examples paragraph, as follows:
+If you want to have numbered glosses, simply insert the gloss inset to a
+ numbered examples paragraph, as follows:
 \end_layout
 
 \begin_layout Numbered Examples (consecutive)
@@ -562,165 +651,62 @@ If you want to have numbered glosses, you can simply 
insert the gloss inset
 status open
 
 \begin_layout Plain Layout
-
-Mein Luftkissenfahrzeug ist voller Aale
+Mein Luftkissenfahrzeug ist voller  Aale
 \end_layout
 
 \begin_layout Plain Layout
-
-My skeertuig is vol palings
+My    skeertuig                   is  vol       palings
 \end_layout
 
 \begin_layout Plain Layout
-
-My hovercraft is {full of} eels
-\end_layout
+My    hovercraft                 is 
+\begin_inset Flex GroupGlossedWords
+status open
 
 \begin_layout Plain Layout
-
-
-\backslash
-glt Do you have matches?
+full of
 \end_layout
 
 \end_inset
 
-
-\end_layout
-
-\begin_layout Subsection*
-Shortcomings of \SpecialChar LyX
-'s glosses
-\end_layout
-
-\begin_layout Standard
-\SpecialChar LyX
-'s glosse support is rather basic, and thus has some shortcomings, which
- might be addressed in further releases:
+ eels
 \end_layout
 
-\begin_layout Enumerate
-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 
\SpecialChar LaTeX
+\begin_layout Plain Layout
+\begin_inset Argument 1
+status open
 
- 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"
+\begin_layout Plain Layout
+\begin_inset Quotes els
 \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{}
+Do you have matches?
+\begin_inset Quotes ers
 \end_inset
 
-g.
- 
-\family sans
-english
-\family default
-, 
-\family sans
-french
-\family default
- or 
-\family sans
-ngerman
-\family default
-.
- In the \SpecialChar LaTeX
- output, this setting will be suppressed.
+
 \end_layout
 
-\begin_layout Enumerate
-Since the content of glosses is passed verbatim to \SpecialChar LaTeX
-, \SpecialChar LyX
- does not adapt the
- encoding to the contents.
- That means that if you use characters in the glosse which are not covered
- by the current encoding, you will run into an error message.
- Here are the possible workarounds to this problem:
-\begin_inset Separator parbreak
 \end_inset
 
 
 \end_layout
 
-\begin_deeper
-\begin_layout Itemize
-Either enter the text outside the glosse, open 
-\family sans
-View\SpecialChar menuseparator
-View Source
-\family default
- and copy the \SpecialChar LaTeX
- code into the glosse,
-\end_layout
+\end_inset
 
-\begin_layout Itemize
-or mark the whole glosse (from outside) and set the appropriate language
- via 
-\family sans
-Edit\SpecialChar menuseparator
-Language\SpecialChar menuseparator
-More Languages\SpecialChar ldots
 
-\family default
-,
 \end_layout
 
-\begin_layout Itemize
-or set the document encoding to 
-\emph on
-Unicode (utf8)
-\emph default
- via 
-\family sans
-Document\SpecialChar menuseparator
-Settings\SpecialChar ldots
-\SpecialChar menuseparator
-Language
-\family default
-,
+\begin_layout Subsection*
+Tips & Tricks
 \end_layout
 
-\begin_layout Itemize
-or check 
-\emph on
-Use non-\SpecialChar TeX
- fonts (via Xe\SpecialChar TeX
-/Lua\SpecialChar TeX
-)
-\emph default
- in 
-\family sans
-Document\SpecialChar menuseparator
-Settings\SpecialChar ldots
-\SpecialChar menuseparator
-Fonts
-\family default
-.
+\begin_layout Subsubsection*
+Avoiding Page Breaks within Glosses
 \end_layout
 
-\end_deeper
-\begin_layout Enumerate
-Page breaks can occur within glosses, which is of course not desirable.
+\begin_layout Standard
+Page breaks might occur within glosses, which is not desirable.
  A workaround is to wrap glosses into boxes (via 
 \family sans
 Insert\SpecialChar menuseparator
@@ -733,8 +719,7 @@ Frameless
 \family sans
 Document\SpecialChar menuseparator
 Settings\SpecialChar menuseparator
-\SpecialChar LaTeX
- Preamble
+LaTeX Preamble
 \family default
 :
 \begin_inset Separator parbreak
@@ -743,10 +728,9 @@ Settings\SpecialChar menuseparator
 
 \end_layout
 
-\begin_deeper
-\begin_layout LyX-Code
+\begin_layout Quote
 \begin_inset listings
-lstparams "basicstyle={\footnotesize},language={[LaTeX]TeX}"
+lstparams "language={[LaTeX]TeX},basicstyle={\footnotesize\ttfamily}"
 inline false
 status open
 
@@ -766,14 +750,18 @@ AtBeginDocument{%
 
 
 \backslash
-@ifundefined{linggloss}{}{%
+renewenvironment{linggloss}[2][]{%
 \end_layout
 
 \begin_layout Plain Layout
 
 
 \backslash
-renewenvironment{linggloss}[1]{%
+def
+\backslash
+glosstr{
+\backslash
+glt #1}%
 \end_layout
 
 \begin_layout Plain Layout
@@ -789,11 +777,13 @@ textwidth}
 
 
 \backslash
-gll #1}{
+gll #2}{
+\backslash
+glosstr
 \backslash
 glend
 \backslash
-end{minipage}}}
+end{minipage}}
 \end_layout
 
 \begin_layout Plain Layout
@@ -806,9 +796,9 @@ end{minipage}}}
 
 \end_layout
 
-\begin_layout LyX-Code
+\begin_layout Quote
 \begin_inset listings
-lstparams "basicstyle={\footnotesize},language={[LaTeX]TeX}"
+lstparams "language={[LaTeX]TeX},basicstyle={\footnotesize\ttfamily}"
 inline false
 status open
 
@@ -828,14 +818,18 @@ AtBeginDocument{%
 
 
 \backslash
-@ifundefined{lingglosss}{}{%
+renewenvironment{lingglosss}[2][]{%
 \end_layout
 
 \begin_layout Plain Layout
 
 
 \backslash
-renewenvironment{linggloss}[1]{%
+def
+\backslash
+glosstr{
+\backslash
+glt #1}%
 \end_layout
 
 \begin_layout Plain Layout
@@ -851,11 +845,13 @@ textwidth}
 
 
 \backslash
-glll #1}{
+glll #2}{
+\backslash
+glosstr
 \backslash
 glend
 \backslash
-end{minipage}}}
+end{minipage}}
 \end_layout
 
 \begin_layout Plain Layout
@@ -875,10 +871,162 @@ You might have to adapt the minipage width (
 \backslash
 textwidth
 \family default
- in the example code) to fit your actual page width.
+ in the example code) to fit the glosses to your actual page width.
+\end_layout
+
+\begin_layout Subsubsection*
+Using Glosses (and Examples) in a Beamer Presentation
+\end_layout
+
+\begin_layout Standard
+The 
+\emph on
+covington
+\emph default
+ package and the 
+\emph on
+beamer
+\emph default
+ class do not work together out of the box, since they both try to define
+ the commands 
+\family typewriter
+
+\backslash
+example
+\family default
+ and 
+\family typewriter
+
+\backslash
+examples
+\family default
+, which results in a \SpecialChar LaTeX
+ error.
+ You can work around the problem by inserting the following code in 
+\family sans
+Document\SpecialChar menuseparator
+Settings\SpecialChar menuseparator
+Local Layout
+\family default
+:
+\end_layout
+
+\begin_layout Quote
+\begin_inset listings
+lstparams "basicstyle={\footnotesize\ttfamily},tabsize=4"
+inline false
+status open
+
+\begin_layout Plain Layout
+
+Provides covington 1
+\end_layout
+
+\begin_layout Plain Layout
+
+AddToPreamble
+\end_layout
+
+\begin_layout Plain Layout
+
+               
+\backslash
+let
+\backslash
+example
+\backslash
+relax
+\end_layout
+
+\begin_layout Plain Layout
+
+               
+\backslash
+let
+\backslash
+endexample
+\backslash
+relax
+\end_layout
+
+\begin_layout Plain Layout
+
+               
+\backslash
+let
+\backslash
+examples
+\backslash
+relax
+\end_layout
+
+\begin_layout Plain Layout
+
+               
+\backslash
+let
+\backslash
+endexamples
+\backslash
+relax
+\end_layout
+
+\begin_layout Plain Layout
+
+               
+\backslash
+usepackage{covington}
+\end_layout
+
+\begin_layout Plain Layout
+
+EndPreamble
+\end_layout
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Standard
+Press 
+\begin_inset Quotes eld
+\end_inset
+
+validate
+\begin_inset Quotes erd
+\end_inset
+
+ and 
+\begin_inset Quotes eld
+\end_inset
+
+OK
+\begin_inset Quotes erd
+\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 
+\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
 
-\end_deeper
 \begin_layout Section
 Optimality Theory Tableaux
 \end_layout
@@ -911,7 +1059,7 @@ The Linguistics module provides support for both.
 Insert\SpecialChar menuseparator
 Floats
 \family default
-, you'll find a Tableaux float:
+, you will find a Tableaux float:
 \end_layout
 
 \begin_layout Standard
@@ -1212,7 +1360,7 @@ Example Tableau
 Note that by default, the caption is always placed below the tableaux in
  the output, no matter where you put it in the \SpecialChar LyX
  window.
- To get the Tableaux captions on top, put the following code in 
+ To get the Tableau captions on top, put the following code in 
 \family sans
 Document\SpecialChar menuseparator
 Settings\SpecialChar menuseparator
@@ -1221,34 +1369,60 @@ Preamble
 :
 \end_layout
 
-\begin_layout LyX-Code
+\begin_layout Quote
+\begin_inset listings
+lstparams "language={[LaTeX]TeX},basicstyle={\footnotesize\ttfamily}"
+inline false
+status open
+
+\begin_layout Plain Layout
+
 
 \backslash
 floatstyle{plaintop}
 \end_layout
 
-\begin_layout LyX-Code
+\begin_layout Plain Layout
+
 
 \backslash
 restylefloat{tableau}
 \end_layout
 
+\end_inset
+
+
+\end_layout
+
 \begin_layout Standard
-If your using a KOMA class, use the following instead for better spacing:
+If you use a KOMA class, use the following code instead:
 \end_layout
 
-\begin_layout LyX-Code
+\begin_layout Quote
+\begin_inset listings
+lstparams "language={[LaTeX]TeX},basicstyle={\footnotesize\ttfamily}"
+inline false
+status open
+
+\begin_layout Plain Layout
+
 
 \backslash
 floatstyle{komaabove}
 \end_layout
 
-\begin_layout LyX-Code
+\begin_layout Plain Layout
+
 
 \backslash
 restylefloat{tableau}
 \end_layout
 
+\end_inset
+
+
+\end_layout
+
 \begin_layout Standard
 A List of Tableaux inset can be found in 
 \family sans
@@ -1256,8 +1430,7 @@ 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:
+ It looks like this:
 \end_layout
 
 \begin_layout Standard
@@ -1331,7 +1504,14 @@ Text Style
  To make expressions bold, for instance, insert:
 \end_layout
 
-\begin_layout LyX-Code
+\begin_layout Quote
+\begin_inset listings
+lstparams "language={[LaTeX]TeX},basicstyle={\footnotesize\ttfamily}"
+inline false
+status open
+
+\begin_layout Plain Layout
+
 
 \backslash
 renewcommand
@@ -1341,6 +1521,11 @@ lingexpr[1]{
 textbf{#1}}
 \end_layout
 
+\end_inset
+
+
+\end_layout
+
 \begin_layout Standard
 Similarly, concept (
 \family typewriter
@@ -1628,6 +1813,21 @@ inset
  (inline) and multiple paragraphs of phonetic notation.
  While the cursor is inside the box, a toolbar opens, which provides the
  basic set of phonetic symbols (sorted by the IPA categories).
+\begin_inset Foot
+status collapsed
+
+\begin_layout Plain Layout
+Currently, there is one symbol missing: the labiodental flap (added to the
+ IPA in 2005).
+ This symbol is not yet supported by the 
+\emph on
+tipa
+\emph default
+ package and thus cannot be supported by LyX.
+\end_layout
+
+\end_inset
+
  Each of the toolbar's panels can be torn off the bar by clicking on the
  dashed line on its top.
  This way, you can insert most symbols quite comfortably: 

Reply via email to