]> git.lyx.org Git - lyx.git/blobdiff - lib/layouts/linguistics.module
- aa.layout: updatesd for aa.cls version 6.1
[lyx.git] / lib / layouts / linguistics.module
index f80e41937e1d39c8cef48140a2e413430eab211a..f7a37faf9c9fb0a5c2b91b18dfc3af6aa363dd87 100644 (file)
@@ -1,8 +1,13 @@
-#\DeclareLyXModule[covington.sty]{Defines some special environments useful for linguistics (numbered examples, glosses, semantic markup).}{Linguistics}
+#\DeclareLyXModule[covington.sty]{Linguistics}
+#DescriptionBegin
+#Defines some special environments useful for linguistics (numbered examples,
+#glosses, semantic markup, tableau floats).
+#See linguistics.lyx file in examples.
+#DescriptionEnd
 
 # Author: Jürgen Spitzmüller <spitz@lyx.org>
 
-Format 5
+Format 11
 
 # single numbered example with covington.sty
 Style Numbered_Example_(multiline)
@@ -24,9 +29,7 @@ Style Numbered_Example_(multiline)
                Shape         Italic
                Color         Blue
        EndFont
-       Preamble
-               \usepackage{covington}
-       EndPreamble
+       Requires              covington
 End
 
 
@@ -49,9 +52,8 @@ Style Subexample
        LatexName             subexample
        LeftMargin            XSubexample:
        LabelString           "Subexample:"
+       Requires              covington,enumitem
        Preamble
-               \usepackage{covington}
-               \usepackage{enumitem}
                \newenvironment{subexample}{%
                        \begin{example}\begin{enumerate}[leftmargin=1.7em]
                        \renewcommand\theenumi{\alph{enumi}}
@@ -74,10 +76,12 @@ InsetLayout Custom:Glosse
          Size                Small
        EndFont
        MultiPar              true
+       CustomPars            false
+       ForcePlain            true
        PassThru              true
        FreeSpacing           true
+       Requires              covington
        Preamble
-               \usepackage{covington}
                \@ifundefined{linggloss}{%
                \newenvironment{linggloss}[1]{%
                        \gll #1}
@@ -98,10 +102,12 @@ InsetLayout Custom:Tri-Glosse
          Size                Small
        EndFont
        MultiPar              true
+       CustomPars            false
+       ForcePlain            true
        PassThru              true
        FreeSpacing           true
+       Requires              covington
        Preamble
-               \usepackage{covington}
                \@ifundefined{lingglosss}{%
                \newenvironment{lingglosss}[1]{%
                        \glll #1}
@@ -110,6 +116,7 @@ InsetLayout Custom:Tri-Glosse
 End
 
 
+# Some semantik markup for Semantics
 InsetLayout CharStyle:Expression
        LyxType               charstyle
        LabelString           expr.
@@ -143,8 +150,30 @@ InsetLayout CharStyle:Meaning
        LabelString           meaning
        LatexType             command
        LatexName             lingmeaning
+       Requires              csquotes
        Preamble
-               \usepackage{csquotes}
                \newcommand{\lingmeaning}[1]{\enquote*{#1}}
        EndPreamble
 End
+
+
+# Tableaux for Optimality Theory
+Float
+       Type                  tableau
+       GuiName               Tableau
+       Placement             tbp
+       Extension             otl
+       NumberWithin          none
+       Style                 plain
+       ListName              "List of Tableaux"
+       LaTeXBuiltin          false
+End
+
+InsetLayout tableau
+       LabelString           Tableau
+       LabelFont
+         Color               collapsable
+         Size                Small
+       EndFont
+       MultiPar              true
+End