]> git.lyx.org Git - lyx.git/blobdiff - lib/layouts/stdtitle.inc
new module and example file for chemical risk and safety statements; requires the...
[lyx.git] / lib / layouts / stdtitle.inc
index 30f0574fef4cc985db7c556249fec22c218f59b1..8475545e01e0ed301ce96b3333ab8c3dabc0aebc 100644 (file)
@@ -8,10 +8,56 @@
 # a document, like title, author and such.
 
 
-Format 6
+Format 35
+
+# CSS for the TOC
+AddToHTMLPreamble
+<style type="text/css">
+       div.toc {
+               margin: 2em 0em;
+               border-style: solid;
+               border-width: 2px 0px;
+               padding: 1em 0em;
+       }
+       div.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; }
+       a.tocarrow {
+               font-weight: bold;
+               text-decoration: none;
+               color: #909090;
+       }
+       a.tocarrow:visited { color: #C0C0C0; }
+</style>
+EndPreamble
+
+
 Style Title
        Margin                Static
        LatexType             Command
+       Category              FrontMatter
        InTitle               1
        LatexName             title
        ParSkip               0.4
@@ -24,12 +70,15 @@ Style Title
        Font
          Size                Largest
        EndFont
+       HTMLTag               h1
+       HTMLTitle             true
 End
 
 
 Style Author
        Margin                Static
        LatexType             Command
+       Category              FrontMatter
        InTitle               1
        LatexName             author
        LabelSep              xxx
@@ -48,6 +97,7 @@ End
 Style Date
        Margin                Dynamic
        LatexType             Command
+       Category              FrontMatter
        InTitle               1
        LatexName             date
        LabelSep              xxx