]> git.lyx.org Git - features.git/commitdiff
Remove covington backwards compatibility code
authorJuergen Spitzmueller <spitz@lyx.org>
Tue, 4 Jun 2019 06:20:02 +0000 (08:20 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 18 Jun 2020 13:48:32 +0000 (15:48 +0200)
The new environments are out now long enough, and we are going to require
covington 2.0 for the glosses in 2.4 anyway.

lib/layouts/linguistics.module

index 33d6c09ed5bc2254dd0fce7dfdfbb14221160eb7..1ab6db418f69b503580d0b52ca23b67fc63c5779 100644 (file)
@@ -53,15 +53,6 @@ Style Numbered_Example_(multiline)
                Color         Blue
        EndFont
        Requires              covington
-       Preamble
-       % Backwards compatibility with covington < 1.1
-       % This code can be removed eventually
-       \AtBeginDocument{%
-               \@ifundefined{covexample}{%
-                   \newenvironment{covexample}{\begin{example}}{\end{example}}%
-               }{}
-       }
-       EndPreamble
        Category              Linguistics
 End
 
@@ -88,15 +79,6 @@ Style Numbered_Examples_(consecutive)
                LabelString   "Custom Numbering|s"
                Tooltip       "Customize the numeration"
        EndArgument
-       Preamble
-       % Backwards compatibility with covington < 1.1
-       % This code can be removed eventually
-       \AtBeginDocument{%
-               \@ifundefined{covexamples}{%
-                   \newenvironment{covexamples}{\begin{examples}}{\end{examples}}%
-               }{}
-       }
-       EndPreamble
 End
 
 
@@ -107,22 +89,6 @@ Style Subexample
        LabelCounter          "subexample"
        StepMasterCounter     true
        Requires              covington
-       Preamble
-               % Backwards compatibility with covington < 1.6
-               % This code can be removed eventually
-               \AtBeginDocument{%
-                       \@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