]> git.lyx.org Git - lyx.git/blobdiff - lib/layouts/stdinsets.inc
apa6.layout: add dependencies
[lyx.git] / lib / layouts / stdinsets.inc
index 1ef2c524b706d79e917033775b1299dc6c52bfaa..da91f1c189de06bbec652114e63a384f909e650c 100644 (file)
@@ -4,7 +4,7 @@
 #
 # Detailed format description is available in the customization manual
 
-Format 63
+Format 65
 
 Provides stdinsets 1
 
@@ -122,6 +122,13 @@ InsetLayout Foot:InTitle
        EndHTMLStyle
 End
 
+InsetLayout Foot:InFloatTable
+       CopyStyle             Foot
+       LatexName             tablefootnote
+       Requires              tablefootnote
+End
+
+
 InsetLayout Note:Comment
        LabelString           Comment
        LatexType             environment
@@ -274,21 +281,16 @@ InsetLayout TOC:Listings
        # We need the [[List of Listings]] context, since "Listings" is also
        # the name of the inset and translated differently.
        # "Listings[[List of Listings]]" is the name of the "List of listings"
-       # ("Listings" is the predefined english name) in listings.sty and
-       # minted.sty, so it must be used here as well.
+       # ("Listings" is the predefined english name) in listings.sty, so it
+       # must be used here as well.
        BabelPreamble
-               \ifx\minted\undefined
-               \addto\captions$$lang{\renewcommand{\lstlistlistingname}{_(Listings[[List of Listings]])}}\else
-               \addto\captions$$lang{\renewcommand{\listoflistingscaption}{_(Listings[[List of Listings]])}}\fi
+               \addto\captions$$lang{\renewcommand{\lstlistlistingname}{_(Listings[[List of Listings]])}}
        EndBabelPreamble
-       # Either commands do not need to be defined in LangPreamble, since
-       # listings.sty or minted.sty do that already. However they need to be
-       # redefined in order to be used for non-english single-language
-       # documents.
+       # The command does not need to be defined in LangPreamble, since
+       # listings.sty does that already. However it needs to be redefined
+       # in order to be used for non-english single-language documents.
        LangPreamble
-               \ifx\minted\undefined
-               \renewcommand{\lstlistlistingname}{_(Listings[[List of Listings]])}\else
-               \renewcommand{\listoflistingscaption}{_(Listings[[List of Listings]])}\fi
+               \renewcommand{\lstlistlistingname}{_(Listings[[List of Listings]])}
        EndLangPreamble
        FixedWidthPreambleEncoding true
   HTMLTag h2
@@ -301,20 +303,38 @@ InsetLayout TOC:Listings
   EndHTMLStyle
 End
 
+InsetLayout TOC:MintedListings
+       # "List of Listings" is the name of the "List of listings"
+       # in minted.sty so it must be used here as well.
+       BabelPreamble
+               \addto\captions$$lang{\renewcommand{\listoflistingscaption}{_(List of Listings)}}
+       EndBabelPreamble
+       # The command does not need to be defined in LangPreamble, since
+       # minted.sty does that already. However it needs to be redefined
+       # in order to be used for non-english single-language documents.
+       LangPreamble
+               \renewcommand{\listoflistingscaption}{_(List of Listings)}
+       EndLangPreamble
+       FixedWidthPreambleEncoding false
+  HTMLTag h2
+  HTMLStyle
+    div.lyxtoc-flat {
+      margin: 0em 0em 0em 1em;
+      font-size: large;
+      font-weight: normal;
+    }
+  EndHTMLStyle
+End
+
 InsetLayout Include:Listings
        BabelPreamble
-               \ifx\minted\undefined
-               \addto\captions$$lang{\renewcommand{\lstlistingname}{_(Listing)}}\else
-               \addto\captions$$lang{\renewcommand{\listingscaption}{_(Listing)}}\fi
+               \addto\captions$$lang{\renewcommand{\lstlistingname}{_(Listing)}}
        EndBabelPreamble
-       # Either commands do not need to be defined in LangPreamble, since
-       # listings.sty or minted.sty do that already. However they need to be
-       # redefined in order to be used for non-english single-language
-       # documents.
+       # The command does not need to be defined in LangPreamble, since
+       # listings.sty does that already. However it needs to be redefined
+       # in order to be used for non-english single-language documents.
        LangPreamble
-               \ifx\minted\undefined
-               \renewcommand{\lstlistingname}{_(Listing)}\else
-               \renewcommand{\listingscaption}{_(Listing)}\fi
+               \renewcommand{\lstlistingname}{_(Listing)}
        EndLangPreamble
        FixedWidthPreambleEncoding true
 End
@@ -356,6 +376,20 @@ InsetLayout Listings
        EndHTMLStyle
 End
 
+InsetLayout MintedListings
+       CopyStyle Listings
+       BabelPreamble
+               \addto\captions$$lang{\renewcommand{\listingscaption}{_(Listing)}}
+       EndBabelPreamble
+       # The command does not need to be defined in LangPreamble, since
+       # minted.sty does that already. However it needs to be redefined
+       # in order to be used for non-english single-language documents.
+       LangPreamble
+               \renewcommand{\listingscaption}{_(Listing)}
+       EndLangPreamble
+       FixedWidthPreambleEncoding false
+End
+
 InsetLayout Branch
        Decoration            classic
        LabelFont
@@ -471,7 +505,7 @@ End
 
 InsetLayout Float
        LabelFont
-         Color               collapsable
+         Color               collapsible
          Size                Small
        EndFont
        MultiPar              true
@@ -489,7 +523,7 @@ OutlinerName figure       "Figures" #no AddToToc (built-in)
 
 InsetLayout Wrap
        LabelFont
-         Color               collapsable
+         Color               collapsible
          Size                Small
        EndFont
        MultiPar              true
@@ -533,7 +567,7 @@ End
 InsetLayout Argument
        LabelString           Argument
        LabelFont
-         Color               collapsable
+         Color               collapsible
          Size                Small
        EndFont
        MultiPar              false