]> git.lyx.org Git - features.git/commitdiff
Fix label display in linguistic examples
authorJuergen Spitzmueller <spitz@lyx.org>
Fri, 21 Oct 2016 17:20:23 +0000 (19:20 +0200)
committerJuergen Spitzmueller <spitz@lyx.org>
Fri, 21 Oct 2016 17:20:23 +0000 (19:20 +0200)
lib/layouts/linguistics.module
status.22x

index c2f3df1e335dd022ef510216be6b5885b2f5f118..5c7288244e143a0f71870c79a61e7d702d726f4d 100644 (file)
@@ -9,6 +9,29 @@
 
 Format 60
 
+# These are no real counters, but they are needed
+# to get proper labels for the enumerate-like
+# example styles.
+Counter example
+       Within               chapter
+       LabelString          "Examples:"
+End
+
+Counter examplei
+       Within               chapter
+       LabelString          "Examples:"
+End
+
+Counter subexample
+       Within               examplei
+       LabelString          "Subexample:"
+End
+
+Counter subexamplei
+       Within               examplei
+       LabelString          "Subexample:"
+End
+
 # single numbered example with covington.sty
 Style Numbered_Example_(multiline)
        LatexType             Environment
@@ -46,7 +69,8 @@ Style Numbered_Examples_(consecutive)
        CopyStyle             Numbered_Example_(multiline)
        LatexType             Item_Environment
        LatexName             covexamples
-       LabelString           "Examples:"
+       LabelType             Enumerate
+       LabelCounter          "example"
        Argument item:1
                LabelString   "Custom Numbering|s"
                Tooltip       "Customize the numeration"
@@ -65,7 +89,7 @@ End
 Style Subexample
        CopyStyle             Numbered_Examples_(consecutive)
        LatexName             subexample
-       LabelString           "Subexample:"
+       LabelCounter          "subexample"
        Requires              covington,enumitem
        Preamble
                \newenvironment{subexample}{%
index 42fd11c1d8794e98c3619c227c6691025f83e248..111426ffa404b8d33cf0a5c0a7ce4c346dc9a610 100644 (file)
@@ -51,6 +51,8 @@ What's new
 
 - Fix logic of OK/Apply buttons in cross-references dialog (bug 10376).
 
+- Fix display of Examples and Sub-Examples labels in linguistics module.
+
 
 * INTERNALS