]> git.lyx.org Git - lyx.git/blobdiff - lib/layouts/stdinsets.inc
apa6.layout: add dependencies
[lyx.git] / lib / layouts / stdinsets.inc
index c5bf68df38e665b813d3884a31644c1ae50daf09..da91f1c189de06bbec652114e63a384f909e650c 100644 (file)
@@ -4,10 +4,17 @@
 #
 # Detailed format description is available in the customization manual
 
-Format 60
+Format 65
 
 Provides stdinsets 1
 
+OutlinerName marginalnote "Marginal notes"
+OutlinerName footnote     "Footnotes"
+OutlinerName note         "Notes"
+OutlinerName branch       "Branches"
+OutlinerName index        "Index Entries" #no AddToToc (built-in)
+OutlinerName listing      "Listings" #no AddToToc (built-in)
+
 InsetLayout Marginal
        LabelString           margin
        LatexType             command
@@ -35,6 +42,8 @@ InsetLayout Marginal
                        font-style: normal;
                }
        EndHTMLStyle
+       AddToToc              marginalnote
+       IsTocCaption          true
 End
 
 InsetLayout Foot
@@ -76,6 +85,8 @@ InsetLayout Foot
                        padding: 1em;
                }
        EndHTMLStyle
+       AddToToc              footnote
+       IsTocCaption          true
 End
 
 InsetLayout Foot:InTitle
@@ -111,10 +122,18 @@ InsetLayout Foot:InTitle
        EndHTMLStyle
 End
 
+InsetLayout Foot:InFloatTable
+       CopyStyle             Foot
+       LatexName             tablefootnote
+       Requires              tablefootnote
+End
+
+
 InsetLayout Note:Comment
        LabelString           Comment
        LatexType             environment
        LatexName             comment
+       Requires              verbatim
        BgColor               commentbg
        LabelFont
          Color               comment
@@ -129,6 +148,8 @@ InsetLayout Note:Comment
                display: none;
        }
        EndHTMLStyle
+       AddToToc              note
+       IsTocCaption          true
 End
 
 
@@ -143,6 +164,8 @@ InsetLayout Note:Note
        EndFont
        MultiPar              true
        # Not output for XHTML
+       AddToToc              note
+       IsTocCaption          true
 End
 
 
@@ -150,6 +173,7 @@ InsetLayout Note:Greyedout
        LabelString           Greyedout
        LatexType             environment
        LatexName             lyxgreyedout
+       Requires              color,lyxgreyedout
        BgColor               greyedoutbg
        Font
          Color               greyedouttext
@@ -170,6 +194,8 @@ InsetLayout Note:Greyedout
                }
        EndHTMLStyle
        HTMLIsBlock           false
+       AddToToc              note
+       IsTocCaption          true
 End
 
 InsetLayout ERT
@@ -277,6 +303,29 @@ 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
                \addto\captions$$lang{\renewcommand{\lstlistingname}{_(Listing)}}
@@ -327,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
@@ -336,6 +399,8 @@ InsetLayout Branch
        MultiPar              true
        InToc                 true
        HTMLIsBlock           false
+       AddToToc              branch
+       IsTocCaption          true
 End
 
 InsetLayout Index
@@ -352,6 +417,7 @@ InsetLayout Index
        CustomPars            false
        ForcePlain            true
        ContentAsLabel        true
+       PassThruChars         @|!
 End
 
 InsetLayout Box
@@ -439,7 +505,7 @@ End
 
 InsetLayout Float
        LabelFont
-         Color               collapsable
+         Color               collapsible
          Size                Small
        EndFont
        MultiPar              true
@@ -451,9 +517,13 @@ InsetLayout Float
        EndHTMLStyle
 End
 
+#InsetWrap requires these, independently of whether stdfloats.inc is included
+OutlinerName table        "Tables" #no AddToToc (built-in)
+OutlinerName figure       "Figures" #no AddToToc (built-in)
+
 InsetLayout Wrap
        LabelFont
-         Color               collapsable
+         Color               collapsible
          Size                Small
        EndFont
        MultiPar              true
@@ -497,7 +567,7 @@ End
 InsetLayout Argument
        LabelString           Argument
        LabelFont
-         Color               collapsable
+         Color               collapsible
          Size                Small
        EndFont
        MultiPar              false