]> git.lyx.org Git - features.git/blob - lib/layouts/stdtitle.inc
Better TOC output for XHTML, per Rob and Pavel.
[features.git] / lib / layouts / stdtitle.inc
1 # Standard textclass definition file. Taken from initial LyX source code
2 # Author : Matthias Ettrich <ettrich@informatik.uni-tuebingen.de>
3 # Transposed by Pascal AndrĂ© <andre@via.ecp.fr>
4 # Heavily modifed and enhanced by several developers.
5 # Split from stdstruct.inc by Hartmut Goebel <hartmut@noris.net>
6
7 # This include files contains all layouts that handle the title area
8 # a document, like title, author and such.
9
10
11 Format 34
12
13 # CSS for the TOC
14 AddToHTMLPreamble
15 <style type="text/css">
16         div.toc { 
17                 margin: 2em 0em; 
18                 border-style: solid; 
19                 border-width: 2px 0px; 
20                 padding: 1em 0em; 
21         }
22         div.tochead { font-size: x-large; font-weight: bold; }
23         div.lyxtoc-1 { 
24                 margin: 1em 0em 0em 0em; 
25                 font-size: x-large; 
26                 font-weight: bold; 
27         }
28         div.lyxtoc-2 { 
29                 margin: 0em 0em 0em 1em; 
30                 font-size: large; 
31                 font-weight: normal; 
32         }
33         div.lyxtoc-3 { margin: 0em 0em 0em 1em; font-size: medium; }
34         div.lyxtoc-4 { margin: 0em 0em 0em 1em; }
35         div.lyxtoc-5 { margin: 0em 0em 0em 1em; }
36         div.lyxtoc-6 { margin: 0em 0em 0em 1em; }
37         a.tocentry {
38                 text-decoration: none;
39                 color: black;
40         }
41         a.tocentry:visited { color: black; }
42         a.tocarrow { 
43                 font-weight: bold; 
44                 text-decoration: none; 
45                 color: #909090; 
46         }
47         a.tocarrow:visited { color: #C0C0C0; }
48 </style>
49 EndPreamble
50
51
52 Style Title
53         Margin                Static
54         LatexType             Command
55         Category              FrontMatter
56         InTitle               1
57         LatexName             title
58         ParSkip               0.4
59         ItemSep               0
60         TopSep                0
61         BottomSep             1
62         ParSep                1
63         Align                 Center
64         LabelType             No_Label
65         Font
66           Size                Largest
67         EndFont
68         HTMLTag               h1
69         HTMLTitle             true
70 End
71
72
73 Style Author
74         Margin                Static
75         LatexType             Command
76         Category              FrontMatter
77         InTitle               1
78         LatexName             author
79         LabelSep              xxx
80         ParSkip               0.4
81         TopSep                1.3
82         BottomSep             0.7
83         ParSep                0.7
84         Align                 Center
85         LabelType             No_Label
86         Font
87           Size                Large
88         EndFont
89 End
90
91
92 Style Date
93         Margin                Dynamic
94         LatexType             Command
95         Category              FrontMatter
96         InTitle               1
97         LatexName             date
98         LabelSep              xxx
99         ParSkip               0.4
100         TopSep                0.9
101         BottomSep             0.5
102         ParSep                1
103         Align                 Center
104         LabelType             No_Label
105         Font
106           Size                Large
107         EndFont
108 End