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