]> git.lyx.org Git - lyx.git/blobdiff - lib/layouts/linguistics.module
Const.
[lyx.git] / lib / layouts / linguistics.module
index c887e239f1c0e475ecb8205e4a7a7fe2f7540a7a..c911a5942365e84ffea0631b8c995da7d4dde6c5 100644 (file)
@@ -1,4 +1,4 @@
-#\DeclareLyXModule[covington.sty,enumitem.sty,forest.sty]{Linguistics}
+#\DeclareLyXModule[covington.sty,elocalloc.sty,enumitem.sty,forest.sty,pgfopts.sty,trimspaces.sty]{Linguistics}
 #DescriptionBegin
 #Defines some special environments useful for linguistics (numbered examples,
 #glosses, semantic markup, tableau floats).
@@ -7,7 +7,7 @@
 
 # Author: Jürgen Spitzmüller <spitz@lyx.org>
 
-Format 54
+Format 59
 
 # single numbered example with covington.sty
 Style Numbered_Example_(multiline)
@@ -148,9 +148,15 @@ InsetLayout Flex:Structure_Tree
        CustomPars            false
        ParbreakIsNewline     true
        FreeSpacing           true
-       Requires              forest
+       Requires              forest
        ResetsFont            true
-        PassThruChars         []
+       PassThruChars         []
+       Preamble
+       % Load forest linguistics library, if available
+       \@ifpackagelater{forest}{2016/02/20}{%
+       \useforestlibrary*{linguistics}
+       }{}
+       EndPreamble
 End
 
 
@@ -167,7 +173,7 @@ InsetLayout Flex:Expression
                \newcommand{\lingexpr}[1]{\emph{#1}}
        EndPreamble
        InToc                 true
-       ResetsFont true
+       ResetsFont            true
 End
 
 
@@ -183,7 +189,7 @@ InsetLayout Flex:Concepts
                \newcommand{\lingconcept}[1]{\textsc{#1}}
        EndPreamble
        InToc                 true
-       ResetsFont true
+       ResetsFont            true
 End
 
 
@@ -197,7 +203,7 @@ InsetLayout Flex:Meaning
                \newcommand{\lingmeaning}[1]{\enquote*{#1}}
        EndPreamble
        InToc                 true
-       ResetsFont true
+       ResetsFont            true
 End