]> git.lyx.org Git - lyx.git/blobdiff - lib/layouts/stdinsets.inc
Add tableaux to outliner
[lyx.git] / lib / layouts / stdinsets.inc
index f0e434d6edcf5613d6fafc9dc9d21ebc97b29424..368cf60465c131473ec74dd802b09a273224a51c 100644 (file)
@@ -4,10 +4,17 @@
 #
 # Detailed format description is available in the customization manual
 
-Format 40
+Format 63
 
 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,10 +42,14 @@ InsetLayout Marginal
                        font-style: normal;
                }
        EndHTMLStyle
+       AddToToc              marginalnote
+       IsTocCaption          true
 End
 
 InsetLayout Foot
        LabelString           foot
+       LatexType             Command
+       LatexName             footnote
        Counter               footnote
        Font
          Size                Small
@@ -74,12 +85,48 @@ InsetLayout Foot
                        padding: 1em;
                }
        EndHTMLStyle
+       AddToToc              footnote
+       IsTocCaption          true
+End
+
+InsetLayout Foot:InTitle
+       CopyStyle             Foot
+       LatexName             thanks
+       NeedProtect           true
+       Counter               thanks
+       MultiPar              false
+       HTMLLabel             \fnsymbol{thanks}
+       HTMLInnerTag          span
+       HTMLStyle
+               span.foot_intitle_label {
+                       vertical-align: super;
+                       font-size: smaller;
+                       font-weight: bold;
+                       text-decoration: underline;
+               }
+               span.foot_intitle {
+                       display: inline;
+                       font-size: small;
+                       font-weight: medium;
+                       font-family: serif;
+                       font-variant: normal;
+                       font-style: normal;
+               }
+               span.foot_intitle_inner { display: none; }
+               span.foot_intitle:hover span.foot_intitle_inner {
+                       display: block;
+                       border: 1px double black;
+                       margin: 0em 1em;
+                       padding: 1em;
+               }
+       EndHTMLStyle
 End
 
 InsetLayout Note:Comment
        LabelString           Comment
        LatexType             environment
        LatexName             comment
+       Requires              verbatim
        BgColor               commentbg
        LabelFont
          Color               comment
@@ -89,11 +136,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
 
 
@@ -107,8 +156,9 @@ InsetLayout Note:Note
          Size                Small
        EndFont
        MultiPar              true
-       HTMLIsBlock           false
-# FIXME HTML Need CSS
+       # Not output for XHTML
+       AddToToc              note
+       IsTocCaption          true
 End
 
 
@@ -116,6 +166,7 @@ InsetLayout Note:Greyedout
        LabelString           Greyedout
        LatexType             environment
        LatexName             lyxgreyedout
+       Requires              color,lyxgreyedout
        BgColor               greyedoutbg
        Font
          Color               greyedouttext
@@ -136,6 +187,8 @@ InsetLayout Note:Greyedout
                }
        EndHTMLStyle
        HTMLIsBlock           false
+       AddToToc              note
+       IsTocCaption          true
 End
 
 InsetLayout ERT
@@ -180,6 +233,43 @@ InsetLayout IPADeco
        ForcePlain            true
 End
 
+InsetLayout TOC
+  HTMLTag h2
+  HTMLStyle
+    div.toc {
+      margin: 2em 0em;
+      border-style: solid;
+      border-width: 2px 0px;
+      padding: 1em 0em;
+    }
+    h2.tochead { font-size: x-large; font-weight: bold; }
+    div.lyxtoc-0 {
+      margin: 2em 0em 0em 0em;
+      font-size: xx-large;
+      font-weight: bold;
+    }
+    div.lyxtoc-1 {
+      margin: 1em 0em 0em 0em;
+      font-size: x-large;
+      font-weight: bold;
+    }
+    div.lyxtoc-2 {
+      margin: 0em 0.1em 0em 1em;
+      font-size: large;
+      font-weight: normal;
+    }
+    div.lyxtoc-3 { margin: 0em 0.1em 0em 0.5em; font-size: medium; }
+    div.lyxtoc-4 { margin: 0em 0.1em 0em 0.5em; }
+    div.lyxtoc-5 { margin: 0em 0.1em 0em 0.5em; }
+    div.lyxtoc-6 { margin: 0em 0.1em 0em 0.5em; }
+    a.tocentry {
+      text-decoration: none;
+      color: black;
+    }
+    a.tocentry:visited { color: black; }
+  EndHTMLStyle
+End
+
 InsetLayout TOC:Listings
        # We need the [[List of Listings]] context, since "Listings" is also
        # the name of the inset and translated differently.
@@ -195,6 +285,15 @@ InsetLayout TOC:Listings
        LangPreamble
                \renewcommand{\lstlistlistingname}{_(Listings[[List of Listings]])}
        EndLangPreamble
+       FixedWidthPreambleEncoding true
+  HTMLTag h2
+  HTMLStyle
+    div.lyxtoc-flat {
+      margin: 0em 0em 0em 1em;
+      font-size: large;
+      font-weight: normal;
+    }
+  EndHTMLStyle
 End
 
 InsetLayout Include:Listings
@@ -207,6 +306,7 @@ InsetLayout Include:Listings
        LangPreamble
                \renewcommand{\lstlistingname}{_(Listing)}
        EndLangPreamble
+       FixedWidthPreambleEncoding true
 End
 
 InsetLayout Listings
@@ -230,6 +330,20 @@ InsetLayout Listings
        FreeSpacing           true
        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 Branch
@@ -241,6 +355,8 @@ InsetLayout Branch
        MultiPar              true
        InToc                 true
        HTMLIsBlock           false
+       AddToToc              branch
+       IsTocCaption          true
 End
 
 InsetLayout Index
@@ -257,6 +373,7 @@ InsetLayout Index
        CustomPars            false
        ForcePlain            true
        ContentAsLabel        true
+       PassThruChars         @|!
 End
 
 InsetLayout Box
@@ -400,12 +517,13 @@ InsetLayout "Flex:URL"
 End
 
 InsetLayout Argument
-       LabelString           opt
+       LabelString           Argument
        LabelFont
          Color               collapsable
          Size                Small
        EndFont
        MultiPar              false
+       ForceLocalFontSwitch  1
 End
 
 InsetLayout Info
@@ -468,7 +586,17 @@ InsetLayout Info:shortcuts
        EndHTMLStyle
 End
 
-InsetLayout Caption
+InsetLayout Caption:Standard
+       LabelString          standard
+       LaTeXType            command
+       LatexName            caption
+       NeedProtect          1
+       MultiPar             false
+       Argument 1
+               LabelString   "Short Title|S"
+               Tooltip       "The caption as it appears in the list of figures/tables"
+               InsertCotext  1
+       EndArgument
        HTMLStyle
                div.float-caption {
                        text-align: center;
@@ -477,6 +605,15 @@ InsetLayout Caption
                        margin: 1ex;
                }
        EndHTMLStyle
+       HTMLAttr "class='float-caption float-caption-standard'"
+End
+
+
+InsetLayout Caption:Unnumbered
+       CopyStyle            Caption:Standard
+       LabelString          unlabelled
+       LatexName            caption*
+       ResetArgs            1
 End
 
 
@@ -503,9 +640,28 @@ InsetLayout Script:superscript
        HTMLTag         sup
 End
 
+
 InsetLayout Script:subscript
        CopyStyle       Script
        Requires        subscript
        LaTeXName       textsubscript
        HTMLTag         sub
 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