]> git.lyx.org Git - lyx.git/blobdiff - lib/layouts/stdinsets.inc
Use InsetLayout to get the tag type for TOC-like things.
[lyx.git] / lib / layouts / stdinsets.inc
index bae666ed33259ce7f6d445705157a8567eaceb66..8a248dfeac815e39c5d3d943f671c1e0ab697383 100644 (file)
@@ -4,7 +4,7 @@
 #
 # Detailed format description is available in the customization manual
 
-Format 44
+Format 45
 
 Provides stdinsets 1
 
@@ -180,6 +180,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 0em 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; }
+    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 +232,14 @@ InsetLayout TOC:Listings
        LangPreamble
                \renewcommand{\lstlistlistingname}{_(Listings[[List of Listings]])}
        EndLangPreamble
+  HTMLTag h2
+  HTMLStyle
+    div.lyxtoc-flat {
+      margin: 0em 0em 0em 1em;
+      font-size: large;
+      font-weight: normal;
+    }
+  EndHTMLStyle
 End
 
 InsetLayout Include:Listings
@@ -491,6 +536,16 @@ InsetLayout Caption:Standard
 End
 
 
+InsetLayout Caption:LongTableNoNumber
+       CopyStyle            Caption:Standard
+       LatexName            caption*
+       Argument 1
+               LabelString   "Long Table Caption (unnumbered)"
+               Tooltip       "The caption as it appears in the list of tables"
+       EndArgument
+End
+
+
 InsetLayout Preview
        LabelString           Preview
        Decoration            minimalistic