]> git.lyx.org Git - lyx.git/blob - lib/layouts/tufte-book.layout
Revert "Update 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 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         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         ResetsFont              true
174 End
175
176 InsetLayout Flex:Marginnote
177         CopyStyle               Flex:Sidenote
178         LatexName               marginnote
179         Decoration              classic
180         LabelString             "marginnote"
181         Font
182           Family                Roman
183           Shape                 Up
184           Series                Medium
185         EndFont
186         MultiPar                true
187 End
188
189 InsetLayout Flex:NewThought
190         LyXType                 charstyle
191         LatexType               Command
192         LatexName               newthought
193         LabelString             "new thought"
194         Font
195           Shape                 SmallCaps
196         EndFont
197         LabelFont
198           Family                Roman
199           Color                 red
200         EndFont
201         ResetsFont              true
202         DocBookTag      emphasis
203         DocBookAttr     role='newthought'
204 End
205
206 InsetLayout Flex:AllCaps
207         CopyStyle               Flex:NewThought
208         LatexName               allcaps
209         LabelString             "allcaps"
210         Font
211           Shape                 Up
212           Misc                  Noun
213         EndFont
214         LabelFont
215           Color                 blue
216         EndFont
217         DocBookTag      emphasis
218         DocBookAttr     role='allcaps'
219 End
220
221 InsetLayout Flex:SmallCaps
222         CopyStyle               Flex:NewThought
223         LatexName               smallcaps
224         LabelString             "smallcaps"
225         LabelFont
226           Color                 green
227         EndFont
228         DocBookTag      emphasis
229         DocBookAttr     role='smallcaps'
230 End
231
232 Style Full_Width
233         Margin                  Static
234         LaTeXType               environment
235         LaTeXName               fullwidth
236         Category                MainText
237         NextNoIndent    1
238         ParSkip                 0
239         ItemSep                 0
240         TopSep                  0.5
241         BottomSep               0.5
242         ParSep                  0
243         Align                   Block
244         AlignPossible   Block, Left, Right, Center
245         LabelType               No_Label
246         DocBookTag      para
247         DocBookAttr     role='fullwidth'
248 End
249
250 # this steps the counters
251 Counter         marginfigure
252         GuiName "Margin Figure"
253 End
254
255 Counter         margintable
256         GuiName "Margin Table"
257 End
258
259 # define the floats
260 Float
261         Type                    margintable
262         GuiName                 MarginTable
263         Placement               tbp
264         AllowedPlacement none
265         AllowsSideways  0
266         AllowsWide              0
267         Extension               lot
268         NumberWithin    none
269         Style                   plain
270         ListName                "List of Tables"
271         ListCommand             listoftables
272         IsPredefined    true
273         UsesFloatPkg    false
274 End
275
276 Float
277         Type                    marginfigure
278         GuiName                 MarginFigure
279         Placement               tbp
280         AllowedPlacement none
281         AllowsSideways  0
282         AllowsWide              0
283         Extension               lof
284         NumberWithin    none
285         Style                   plain
286         ListName                "List of Figures"
287         ListCommand             listoffigures
288         IsPredefined    true
289         UsesFloatPkg    false
290 End
291
292 Style Bibliography
293         TopSep                  4
294         LabelString             "Bibliography"
295         LabelFont
296           Series                Bold
297           Size                  Huge
298         EndFont
299         TocLevel                0
300 End