X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=lib%2Flayouts%2Flinguistics.module;h=a3a4002cc286e53ff8bdd61fb1c13ad1488956b2;hb=1a89f89337413adb6188e6265c6e1c49e0969f65;hp=5cfa3bf4739f1c45a792e4e5b462eef99b574004;hpb=4d6f9eb089bfa664374e599db17d9f671a22f968;p=lyx.git diff --git a/lib/layouts/linguistics.module b/lib/layouts/linguistics.module index 5cfa3bf473..a3a4002cc2 100644 --- a/lib/layouts/linguistics.module +++ b/lib/layouts/linguistics.module @@ -7,12 +7,12 @@ # Author: Jürgen Spitzmüller -Format 58 +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 @@ -151,6 +165,12 @@ InsetLayout Flex:Structure_Tree Requires forest ResetsFont true PassThruChars [] + Preamble + % Load forest linguistics library, if available + \@ifpackagelater{forest}{2016/02/20}{% + \useforestlibrary*{linguistics} + }{} + EndPreamble End @@ -167,7 +187,7 @@ InsetLayout Flex:Expression \newcommand{\lingexpr}[1]{\emph{#1}} EndPreamble InToc true - ResetsFont true + ResetsFont true End @@ -183,7 +203,7 @@ InsetLayout Flex:Concepts \newcommand{\lingconcept}[1]{\textsc{#1}} EndPreamble InToc true - ResetsFont true + ResetsFont true End @@ -197,7 +217,7 @@ InsetLayout Flex:Meaning \newcommand{\lingmeaning}[1]{\enquote*{#1}} EndPreamble InToc true - ResetsFont true + ResetsFont true End