]> git.lyx.org Git - lyx.git/blobdiff - lib/layouts/stdinsets.inc
apa6.layout: add dependencies
[lyx.git] / lib / layouts / stdinsets.inc
index c9a497a6e4176d9ed3f246a3e58f5c77311c7b08..da91f1c189de06bbec652114e63a384f909e650c 100644 (file)
@@ -4,10 +4,17 @@
 #
 # Detailed format description is available in the customization manual
 
-Format 59
+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
@@ -124,11 +143,13 @@ InsetLayout Note:Comment
        Display               false
        HTMLTag               div
        HTMLIsBlock           true
-  HTMLStyle
-    div.note_comment {
-      display: none;
-    }
-  EndHTMLStyle
+       HTMLStyle
+       div.note_comment {
+               display: none;
+       }
+       EndHTMLStyle
+       AddToToc              note
+       IsTocCaption          true
 End
 
 
@@ -142,8 +163,9 @@ InsetLayout Note:Note
          Size                Small
        EndFont
        MultiPar              true
-       HTMLIsBlock           false
-# FIXME HTML Need CSS
+       # Not output for XHTML
+       AddToToc              note
+       IsTocCaption          true
 End
 
 
@@ -151,6 +173,7 @@ InsetLayout Note:Greyedout
        LabelString           Greyedout
        LatexType             environment
        LatexName             lyxgreyedout
+       Requires              color,lyxgreyedout
        BgColor               greyedoutbg
        Font
          Color               greyedouttext
@@ -171,6 +194,8 @@ InsetLayout Note:Greyedout
                }
        EndHTMLStyle
        HTMLIsBlock           false
+       AddToToc              note
+       IsTocCaption          true
 End
 
 InsetLayout ERT
@@ -278,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)}}
@@ -313,6 +361,33 @@ InsetLayout Listings
        ForceLTR              true
        RefPrefix             lst
        HTMLTag               pre
+       HTMLStyle
+               div.float-listings {
+                       border: 2px solid black;
+                       padding: 1ex;
+                       margin: 1ex;
+               }
+               div.listings-caption {
+                       text-align: center;
+                       border: 2px solid black;
+                       padding: 1ex;
+                       margin: 1ex;
+       }
+       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
@@ -324,6 +399,8 @@ InsetLayout Branch
        MultiPar              true
        InToc                 true
        HTMLIsBlock           false
+       AddToToc              branch
+       IsTocCaption          true
 End
 
 InsetLayout Index
@@ -340,6 +417,7 @@ InsetLayout Index
        CustomPars            false
        ForcePlain            true
        ContentAsLabel        true
+       PassThruChars         @|!
 End
 
 InsetLayout Box
@@ -427,7 +505,7 @@ End
 
 InsetLayout Float
        LabelFont
-         Color               collapsable
+         Color               collapsible
          Size                Small
        EndFont
        MultiPar              true
@@ -439,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
@@ -485,7 +567,7 @@ End
 InsetLayout Argument
        LabelString           Argument
        LabelFont
-         Color               collapsable
+         Color               collapsible
          Size                Small
        EndFont
        MultiPar              false
@@ -575,7 +657,7 @@ InsetLayout Caption:Standard
 End
 
 
-InsetLayout Caption:LongTableNoNumber
+InsetLayout Caption:Unnumbered
        CopyStyle            Caption:Standard
        LabelString          unlabelled
        LatexName            caption*
@@ -618,3 +700,16 @@ End
 InsetLayout PrintNomencl
   HTMLTag h2
 End
+
+InsetLayout Tabular
+       HTMLStyle
+               table {
+                       border-collapse: collapse;
+                       display: inline-block;
+               }
+               td {
+                       border: 1px solid black;
+                       padding: 0.5ex;
+               }
+       EndHTMLStyle
+End