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