]> git.lyx.org Git - lyx.git/blobdiff - lib/layouts/stdinsets.inc
Dirty Perl script for alphabetizing LyXAction.cpp, in case it
[lyx.git] / lib / layouts / stdinsets.inc
index 5938cc6ee3511bc6a8d0441445e8f0039b6913bd..af5bc16f20bff01ec995c70bdd0cd6e71e308e26 100644 (file)
@@ -4,7 +4,7 @@
 #
 # Detailed format description is available in the customization manual
 
-Format 45
+Format 62
 
 Provides stdinsets 1
 
@@ -39,6 +39,8 @@ End
 
 InsetLayout Foot
        LabelString           foot
+       LatexType             Command
+       LatexName             footnote
        Counter               footnote
        Font
          Size                Small
@@ -76,10 +78,44 @@ InsetLayout Foot
        EndHTMLStyle
 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 +125,11 @@ InsetLayout Note:Comment
        Display               false
        HTMLTag               div
        HTMLIsBlock           true
-  HTMLStyle
-    div.note_comment {
-      display: none;
-    }
-  EndHTMLStyle
+       HTMLStyle
+       div.note_comment {
+               display: none;
+       }
+       EndHTMLStyle
 End
 
 
@@ -107,8 +143,7 @@ InsetLayout Note:Note
          Size                Small
        EndFont
        MultiPar              true
-       HTMLIsBlock           false
-# FIXME HTML Need CSS
+       # Not output for XHTML
 End
 
 
@@ -116,6 +151,7 @@ InsetLayout Note:Greyedout
        LabelString           Greyedout
        LatexType             environment
        LatexName             lyxgreyedout
+       Requires              color,lyxgreyedout
        BgColor               greyedoutbg
        Font
          Color               greyedouttext
@@ -181,6 +217,7 @@ InsetLayout IPADeco
 End
 
 InsetLayout TOC
+  HTMLTag h2
   HTMLStyle
     div.toc {
       margin: 2em 0em;
@@ -188,7 +225,7 @@ InsetLayout TOC
       border-width: 2px 0px;
       padding: 1em 0em;
     }
-    div.tochead { font-size: x-large; font-weight: bold; }
+    h2.tochead { font-size: x-large; font-weight: bold; }
     div.lyxtoc-0 {
       margin: 2em 0em 0em 0em;
       font-size: xx-large;
@@ -200,25 +237,19 @@ InsetLayout TOC
       font-weight: bold;
     }
     div.lyxtoc-2 {
-      margin: 0em 0em 0em 1em;
+      margin: 0em 0.1em 0em 1em;
       font-size: large;
       font-weight: normal;
     }
-    div.lyxtoc-3 { margin: 0em 0em 0em 0.5em; font-size: medium; }
-    div.lyxtoc-4 { margin: 0em 0em 0em 0.5em; }
-    div.lyxtoc-5 { margin: 0em 0em 0em 0.5em; }
-    div.lyxtoc-6 { margin: 0em 0em 0em 0.5em; }
+    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; }
-    a.tocarrow {
-      font-weight: bold;
-      text-decoration: none;
-      color: #909090;
-    }
-    a.tocarrow:visited { color: #C0C0C0; }
   EndHTMLStyle
 End
 
@@ -237,6 +268,8 @@ InsetLayout TOC:Listings
        LangPreamble
                \renewcommand{\lstlistlistingname}{_(Listings[[List of Listings]])}
        EndLangPreamble
+       FixedWidthPreambleEncoding true
+  HTMLTag h2
   HTMLStyle
     div.lyxtoc-flat {
       margin: 0em 0em 0em 1em;
@@ -256,6 +289,7 @@ InsetLayout Include:Listings
        LangPreamble
                \renewcommand{\lstlistingname}{_(Listing)}
        EndLangPreamble
+       FixedWidthPreambleEncoding true
 End
 
 InsetLayout Listings
@@ -280,6 +314,19 @@ 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 Branch
@@ -307,6 +354,7 @@ InsetLayout Index
        CustomPars            false
        ForcePlain            true
        ContentAsLabel        true
+       PassThruChars         @|!
 End
 
 InsetLayout Box
@@ -437,7 +485,6 @@ InsetLayout "Flex:URL"
        PassThru              true
        FreeSpacing           true
        ForceLTR              true
-       ResetsFont            false
        Font
          Family              Typewriter
          Color               urltext
@@ -524,9 +571,12 @@ 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 {
@@ -540,13 +590,11 @@ InsetLayout Caption:Standard
 End
 
 
-InsetLayout Caption:LongTableNoNumber
+InsetLayout Caption:Unnumbered
        CopyStyle            Caption:Standard
+       LabelString          unlabelled
        LatexName            caption*
-       Argument 1
-               LabelString   "Long Table Caption (unnumbered)"
-               Tooltip       "The caption as it appears in the list of tables"
-       EndArgument
+       ResetArgs            1
 End
 
 
@@ -573,9 +621,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