]> git.lyx.org Git - lyx.git/blob - lib/layouts/tufte-book.layout
DocBookGenerateTitle: update all layouts.
[lyx.git] / lib / layouts / tufte-book.layout
1 #% Do not delete the line below; configure depends on this
2 #  \DeclareLaTeXClass[tufte-book]{Tufte Book}
3 #  \DeclareCategory{Books}
4 # tufte-book textclass definition file.
5 # Jason Waskiewicz <jason.waskiewicz@sendit.nodak.edu>, 2009/10/18
6 # Modified by Uwe Stöhr <uwestoehr@web.de>, 2009/11/15
7
8 Format 99
9
10 Provides geometry 1
11 Provides natbib-internal 1
12
13 Sides           2
14 PageStyle       Headings
15 DocBookRoot     book
16
17 ClassOptions
18         Other           nohyper
19 end
20
21 # Tufte uses \cite for margin note citations
22 AddToCiteEngine authoryear
23         cite[][]
24 End
25
26 CiteFormat authoryear
27         _sidenote Sidenote
28         _side sidenote
29         _fullcite bibl. entry
30         _bibentry Full bibliography entry.
31         # "Margin: Full bibliography entry." (dialog) / "Margin: Key (bibliography entry)"
32         cite {%dialog%[[%_sidenote%]][[%_side%]]}: {%dialog%[[%_bibentry%]][[{%label%[[%!fullcite%]][[%key%%!nextkey% (%_fullcite%)]]}]]}
33 End
34
35 Style Standard
36         Margin          Static
37         LatexType       Paragraph
38         LatexName       dummy
39         ParIndent       MM
40         ParSkip         0.4
41         Align           Block
42         AlignPossible   Block, Left, Right, Center
43         LabelType       No_Label
44 End
45
46 # import other layouts
47 Input stdlayouts.inc
48 Input stdclass.inc
49
50 Style Title
51         InPreamble              1
52         NeedProtect             1
53 End
54
55 Style Author
56         InPreamble              1
57         NeedProtect             1
58 End
59
60 Style Date
61         InPreamble              1
62         NeedProtect             1
63 End
64
65 NoStyle Abstract
66 NoStyle Chapter
67 NoCounter chapter
68 NoStyle Section
69 NoStyle Subsection
70 NoCounter subsection
71 NoStyle Subsubsection
72 NoCounter subsubsection
73 NoStyle Subsubsection*
74 NoStyle Paragraph
75 NoCounter paragraph
76 NoStyle Paragraph*
77 NoStyle Subparagraph
78 NoCounter subparagraph
79 NoStyle Subparagraph*
80
81 Style Chapter
82         Margin                  Static
83         Category                Sectioning
84         LabelType               No_Label
85         LabelCounter    chapter
86         TocLevel                0
87         LatexType               Command
88         LatexName               chapter
89         NeedProtect             1
90         NextNoIndent    1
91         ParSkip                 0.4
92         TopSep                  2
93         BottomSep               0.8
94         ParSep                  0.8
95         Align                   Block
96         RefPrefix               chap
97         Argument 1
98           LabelString   "Short Title|S"
99           Tooltip       "The chapter as it appears in the table of contents/running headers"
100           InsertCotext  1
101           IsTocCaption  1
102         EndArgument
103         Font
104           Series                Bold
105           Size                  Huge
106         EndFont
107         DocBookTag            title
108         DocBookSectionTag     chapter
109 End
110
111 Style Section
112         Category                Sectioning
113         Margin                  Dynamic
114         LabelType               No_Label
115         LabelCounter    section
116         TocLevel                1
117         LatexType               Command
118         LatexName               section
119         NeedProtect             1
120         NextNoIndent    1
121         LabelSep                xxx
122         ParSkip                 0.4
123         TopSep                  1.3
124         BottomSep               0.7
125         ParSep                  0.7
126         Align                   Block
127         RefPrefix               sec
128         Argument 1
129           LabelString   "Short Title|S"
130           Tooltip       "The section as it appears in the table of contents/running headers"
131           InsertCotext  1
132           IsTocCaption  1
133         EndArgument
134         Font
135           Series                Bold
136           Size                  Larger
137         EndFont
138         DocBookTag            title
139         DocBookSectionTag     section
140 End
141
142 Style Subsection
143         CopyStyle               Section
144         TocLevel                2
145         LatexName               subsection
146         TopSep                  0.9
147         BottomSep               0.5
148         ParSep                  0.5
149         RefPrefix               subsec
150         Font
151           Series                Bold
152           Size                  Large
153         EndFont
154 End
155
156 InsetLayout Flex:Sidenote
157         LyxType                 custom
158         LatexType               command
159         LatexName               sidenote
160         Decoration              classic
161         LabelString             "sidenote"
162         Font
163           Color                 foreground
164           Size                  Small
165           Misc                  No_Emph
166           Misc                  No_Noun
167           Misc                  No_Bar
168         EndFont
169         LabelFont
170           Color                 marginlabel
171           Size                  Small
172         EndFont
173     DocBookTag      footnote
174     DocBookAttr     role='sidenote'
175         DocBookItemTag  para
176     DocBookTagType  inline
177         ResetsFont              true
178 End
179
180 InsetLayout Flex:Marginnote
181         CopyStyle               Flex:Sidenote
182         LatexName               marginnote
183         Decoration              classic
184         LabelString             "marginnote"
185         Font
186           Family                Roman
187           Shape                 Up
188           Series                Medium
189         EndFont
190     DocBookAttr     role='marginnote'
191         MultiPar                true
192 End
193
194 InsetLayout Flex:NewThought
195         LyXType                 charstyle
196         LatexType               Command
197         LatexName               newthought
198         LabelString             "new thought"
199         Font
200           Shape                 SmallCaps
201         EndFont
202         LabelFont
203           Family                Roman
204           Color                 textlabel3
205         EndFont
206         ResetsFont              true
207         DocBookTag      emphasis
208         DocBookAttr     role='newthought'
209     DocBookTagType  inline
210 End
211
212 InsetLayout Flex:AllCaps
213         CopyStyle               Flex:NewThought
214         LatexName               allcaps
215         LabelString             "allcaps"
216         Font
217           Shape                 Up
218           Misc                  Noun
219         EndFont
220         LabelFont
221           Color                 textlabel1
222         EndFont
223         DocBookTag      emphasis
224         DocBookAttr     role='allcaps'
225 End
226
227 InsetLayout Flex:SmallCaps
228         CopyStyle               Flex:NewThought
229         LatexName               smallcaps
230         LabelString             "smallcaps"
231         LabelFont
232           Color                 textlabel2
233         EndFont
234         DocBookTag      emphasis
235         DocBookAttr     role='smallcaps'
236 End
237
238 Style Full_Width
239         Margin                  Static
240         LaTeXType               environment
241         LaTeXName               fullwidth
242         Category                MainText
243         NextNoIndent    1
244         ParSkip                 0
245         ItemSep                 0
246         TopSep                  0.5
247         BottomSep               0.5
248         ParSep                  0
249         Align                   Block
250         AlignPossible   Block, Left, Right, Center
251         LabelType               No_Label
252         DocBookTag      para
253         DocBookAttr     role='fullwidth'
254 End
255
256 # this steps the counters
257 Counter         marginfigure
258         GuiName "Margin Figure"
259 End
260
261 Counter         margintable
262         GuiName "Margin Table"
263 End
264
265 # define the floats
266 Float
267         Type                    margintable
268         GuiName                 MarginTable
269         Placement               tbp
270         AllowedPlacement none
271         AllowsSideways  0
272         AllowsWide              0
273         Extension               lot
274         NumberWithin    none
275         Style                   plain
276         ListName                "List of Tables"
277         ListCommand             listoftables
278         IsPredefined    true
279         UsesFloatPkg    false
280 End
281
282 Float
283         Type                    marginfigure
284         GuiName                 MarginFigure
285         Placement               tbp
286         AllowedPlacement none
287         AllowsSideways  0
288         AllowsWide              0
289         Extension               lof
290         NumberWithin    none
291         Style                   plain
292         ListName                "List of Figures"
293         ListCommand             listoffigures
294         IsPredefined    true
295         UsesFloatPkg    false
296 End
297
298 Style Bibliography
299         TopSep                  4
300         LabelString             "Bibliography"
301         LabelFont
302           Series                Bold
303           Size                  Huge
304         EndFont
305         TocLevel                0
306 End