]> git.lyx.org Git - features.git/commitdiff
Covington now provides subexamples itself
authorJuergen Spitzmueller <spitz@lyx.org>
Sat, 8 Sep 2018 07:50:48 +0000 (09:50 +0200)
committerJuergen Spitzmueller <spitz@lyx.org>
Sun, 9 Sep 2018 17:17:46 +0000 (19:17 +0200)
Candidate for stable.

(cherry picked from commit ab16bb7eb98731be25413f9410e61e7d4fe75439)

lib/layouts/linguistics.module
status.23x

index 67ea7e4b7db42e4bc403c0e5626c327b924e74c9..9e52b95b9c3b6be9f884a775715d50b190adce72 100644 (file)
@@ -85,20 +85,26 @@ Style Numbered_Examples_(consecutive)
 End
 
 
-# multiple numbered example with covington.sty
+# multiple numbered examples with covington.sty
 Style Subexample
        CopyStyle             Numbered_Examples_(consecutive)
-       LatexName             subexample
+       LatexName             covsubexamples
        LabelCounter          "subexample"
        StepMasterCounter     true
-       Requires              covington,enumitem
+       Requires              covington
        Preamble
-               \newenvironment{subexample}{%
-                       \begin{example}\begin{enumerate}[leftmargin=1.7em]
-                       \renewcommand\theenumi{\alph{enumi}}
-                       \renewcommand\labelenumi{(\theenumi)}
-                       \renewcommand\p@enumi{\theequation\,}}%
-                       {\end{enumerate}\end{example}}
+               % Backwards compatibility with covington < 1.6
+               % This code can be removed eventually
+               \@ifundefined{covsubexamples}{%
+                       \newenvironment{covsubexamples}{%
+                               \addtolength{\examplenumbersep}{-0.5em}%
+                               \begin{covexample}%
+                               \begin{enumerate}
+                               \renewcommand\theenumi{\alph{enumi}}
+                               \renewcommand\labelenumi{(\theenumi)}
+                               \renewcommand\p@enumi{\theequation\,}}%
+                       {\end{enumerate}\end{covexample}}
+               }{}
        EndPreamble
 End
 
index c5b23bfdeb60f59b213d851f2e93d6081cc5c1a6..d33c3d1e4e1cd08dbb1f05ff5ad6cd38783b8d2d 100644 (file)
@@ -21,6 +21,8 @@ What's new
 
 - Add support for LyX logo in RTL output (bug 10423).
 
+- Update support for linguistic subexamples.
+
 
 * MISCELLANEOUS
 
@@ -48,7 +50,7 @@ What's new
 
 * DOCUMENTATION AND LOCALIZATION
 
-- Update German user interface localization.
+- Update German ans Slovak user interface localization.
 
 
 * BUILD/INSTALLATION