X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=lib%2Flayouts%2Flinguistics.module;h=a3a4002cc286e53ff8bdd61fb1c13ad1488956b2;hb=1a89f89337413adb6188e6265c6e1c49e0969f65;hp=947ef5c8cea7a4d85218edc093547d9c4b451882;hpb=6196645ccefa4a03a0617e2741a824156ed9404f;p=lyx.git diff --git a/lib/layouts/linguistics.module b/lib/layouts/linguistics.module index 947ef5c8ce..a3a4002cc2 100644 --- a/lib/layouts/linguistics.module +++ b/lib/layouts/linguistics.module @@ -1,4 +1,4 @@ -#\DeclareLyXModule[covington.sty,elocalloc.sty,enumitem.sty,forest.sty,pgfopts.sty,trimspaces.sty]{Linguistics} +#\DeclareLyXModule[covington.sty,enumitem.sty,forest.sty]{Linguistics} #DescriptionBegin #Defines some special environments useful for linguistics (numbered examples, #glosses, semantic markup, tableau floats). @@ -12,7 +12,7 @@ Format 60 # single numbered example with covington.sty Style Numbered_Example_(multiline) LatexType Environment - LatexName example + LatexName covexample NextNoIndent 1 Margin Dynamic LabelSep xx @@ -30,6 +30,13 @@ Style Numbered_Example_(multiline) Color Blue EndFont Requires covington + Preamble + % Backwards compatibility with covington < 1.1 + % This code can be removed eventually + \@ifundefined{covexample}{% + \newenvironment{covexample}{\begin{example}}{\end{example}}% + } + EndPreamble Category Linguistics End @@ -38,12 +45,19 @@ End Style Numbered_Examples_(consecutive) CopyStyle Numbered_Example_(multiline) LatexType Item_Environment - LatexName examples + LatexName covexamples LabelString "Examples:" Argument item:1 LabelString "Custom Numbering|s" Tooltip "Customize the numeration" EndArgument + Preamble + % Backwards compatibility with covington < 1.1 + % This code can be removed eventually + \@ifundefined{covexamples}{% + \newenvironment{covexamples}{\begin{examples}}{\end{examples}}% + } + EndPreamble End