]> git.lyx.org Git - lyx.git/blobdiff - lib/layouts/linguistics.module
Catalan mathed.lyx: move outdated file to attic/ca/mathed.lyx
[lyx.git] / lib / layouts / linguistics.module
index a3a4002cc286e53ff8bdd61fb1c13ad1488956b2..655705cc250235e0d3ba61c12a3213d69adc1607 100644 (file)
@@ -7,14 +7,37 @@
 
 # Author: Jürgen Spitzmüller <spitz@lyx.org>
 
-Format 60
+Format 65
+
+Counter example
+       Within               chapter
+       LabelString          "(\arabic{example})"
+End
+
+Counter examplei
+       Within               chapter
+       LabelString          "(\arabic{examplei})"
+End
+
+Counter subexample
+       Within               examplei
+       LabelString          "\theexamplei (\alph{subexample})"
+End
+
+Counter subexamplei
+       Within               examplei
+       LabelString          "\theexamplei (\alph{subexamplei})"
+End
+
+OutlinerName tableau    "Tableaux" #no AddToToc (built-in)
 
 # single numbered example with covington.sty
 Style Numbered_Example_(multiline)
        LatexType             Environment
        LatexName             covexample
        NextNoIndent          1
-       Margin                Dynamic
+       Margin                First_Dynamic
+       ParIndent             (1)x
        LabelSep              xx
        ParSkip               0.0
        ItemSep               0.2
@@ -24,9 +47,8 @@ Style Numbered_Example_(multiline)
        Align                 Block
        AlignPossible         Block, Left
        LabelType             Static
-       LabelString           "Example:"
+       LabelCounter          "examplei"
        LabelFont
-               Shape         Italic
                Color         Blue
        EndFont
        Requires              covington
@@ -35,7 +57,7 @@ Style Numbered_Example_(multiline)
        % This code can be removed eventually
        \@ifundefined{covexample}{%
            \newenvironment{covexample}{\begin{example}}{\end{example}}%
-       }
+       }{}
        EndPreamble
        Category              Linguistics
 End
@@ -46,7 +68,9 @@ Style Numbered_Examples_(consecutive)
        CopyStyle             Numbered_Example_(multiline)
        LatexType             Item_Environment
        LatexName             covexamples
-       LabelString           "Examples:"
+       LabelType             Enumerate
+       LabelCounter          "example"
+       ResumeCounter         true
        Argument item:1
                LabelString   "Custom Numbering|s"
                Tooltip       "Customize the numeration"
@@ -56,7 +80,7 @@ Style Numbered_Examples_(consecutive)
        % This code can be removed eventually
        \@ifundefined{covexamples}{%
            \newenvironment{covexamples}{\begin{examples}}{\end{examples}}%
-       }
+       }{}
        EndPreamble
 End
 
@@ -65,7 +89,8 @@ End
 Style Subexample
        CopyStyle             Numbered_Examples_(consecutive)
        LatexName             subexample
-       LabelString           "Subexample:"
+       LabelCounter          "subexample"
+       StepMasterCounter     true
        Requires              covington,enumitem
        Preamble
                \newenvironment{subexample}{%
@@ -232,6 +257,8 @@ End
 
 
 # Tableaux for Optimality Theory
+OutlinerName tableau        "Tableaux" #no AddToToc
+
 Float
        Type                  tableau
        GuiName               Tableau