]> git.lyx.org Git - features.git/blob - lib/layouts/tufte-book.layout
Migrate the previous DocBook layouts so the old documents can still be generated...
[features.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 82
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 End
108
109 Style Section
110         Category                Sectioning
111         Margin                  Dynamic
112         LabelType               No_Label
113         LabelCounter    section
114         TocLevel                1
115         LatexType               Command
116         LatexName               section
117         NeedProtect             1
118         NextNoIndent    1
119         LabelSep                xxx
120         ParSkip                 0.4
121         TopSep                  1.3
122         BottomSep               0.7
123         ParSep                  0.7
124         Align                   Block
125         RefPrefix               sec
126         Argument 1
127           LabelString   "Short Title|S"
128           Tooltip       "The section as it appears in the table of contents/running headers"
129           InsertCotext  1
130           IsTocCaption  1
131         EndArgument
132         Font
133           Series                Bold
134           Size                  Larger
135         EndFont
136 End
137
138 Style Subsection
139         CopyStyle               Section
140         TocLevel                2
141         LatexName               subsection
142         TopSep                  0.9
143         BottomSep               0.5
144         ParSep                  0.5
145         RefPrefix               subsec
146         Font
147           Series                Bold
148           Size                  Large
149         EndFont
150 End
151
152 InsetLayout Flex:Sidenote
153         LyxType                 custom
154         LatexType               command
155         LatexName               sidenote
156         Decoration              classic
157         LabelString             "sidenote"
158         Font
159           Color                 foreground
160           Size                  Small
161           Misc                  No_Emph
162           Misc                  No_Noun
163           Misc                  No_Bar
164         EndFont
165         LabelFont
166           Color                 marginlabel
167           Size                  Small
168         EndFont
169         ResetsFont              true
170 End
171
172 InsetLayout Flex:Marginnote
173         CopyStyle               Flex:Sidenote
174         LatexName               marginnote
175         Decoration              classic
176         LabelString             "marginnote"
177         Font
178           Family                Roman
179           Shape                 Up
180           Series                Medium
181         EndFont
182         MultiPar                true
183 End
184
185 InsetLayout Flex:NewThought
186         LyXType                 charstyle
187         LatexType               Command
188         LatexName               newthought
189         LabelString             "new thought"
190         Font
191           Shape                 SmallCaps
192         EndFont
193         LabelFont
194           Family                Roman
195           Color                 red
196         EndFont
197         ResetsFont              true
198 End
199
200 InsetLayout Flex:AllCaps
201         CopyStyle               Flex:NewThought
202         LatexName               allcaps
203         LabelString             "allcaps"
204         Font
205           Shape                 Up
206           Misc                  Noun
207         EndFont
208         LabelFont
209           Color                 blue
210         EndFont
211 End
212
213 InsetLayout Flex:SmallCaps
214         CopyStyle               Flex:NewThought
215         LatexName               smallcaps
216         LabelString             "smallcaps"
217         LabelFont
218           Color                 green
219         EndFont
220 End
221
222 Style Full_Width
223         Margin                  Static
224         LaTeXType               environment
225         LaTeXName               fullwidth
226         Category                MainText
227         NextNoIndent    1
228         ParSkip                 0
229         ItemSep                 0
230         TopSep                  0.5
231         BottomSep               0.5
232         ParSep                  0
233         Align                   Block
234         AlignPossible   Block, Left, Right, Center
235         LabelType               No_Label
236 End
237
238 # this steps the counters
239 Counter         marginfigure
240         GuiName "Margin Figure"
241 End
242
243 Counter         margintable
244         GuiName "Margin Table"
245 End
246
247 # define the floats
248 Float
249         Type                    margintable
250         GuiName                 MarginTable
251         Placement               tbp
252         AllowedPlacement none
253         AllowsSideways  0
254         AllowsWide              0
255         Extension               lot
256         NumberWithin    none
257         Style                   plain
258         ListName                "List of Tables"
259         ListCommand             listoftables
260         IsPredefined    true
261         UsesFloatPkg    false
262 End
263
264 Float
265         Type                    marginfigure
266         GuiName                 MarginFigure
267         Placement               tbp
268         AllowedPlacement none
269         AllowsSideways  0
270         AllowsWide              0
271         Extension               lof
272         NumberWithin    none
273         Style                   plain
274         ListName                "List of Figures"
275         ListCommand             listoffigures
276         IsPredefined    true
277         UsesFloatPkg    false
278 End
279
280 Style Bibliography
281         TopSep                  4
282         LabelString             "Bibliography"
283         LabelFont
284           Series                Bold
285           Size                  Huge
286         EndFont
287         TocLevel                0
288 End