]> git.lyx.org Git - lyx.git/blob - autotests/export/docbook/Tufte_Book.lyx
DocBook: update bibliography handling for 337f9534260.
[lyx.git] / autotests / export / docbook / Tufte_Book.lyx
1 #LyX 2.4 created this file. For more info see https://www.lyx.org/
2 \lyxformat 598
3 \begin_document
4 \begin_header
5 \save_transient_properties true
6 \origin unavailable
7 \textclass tufte-book
8 \use_default_options true
9 \maintain_unincluded_children no
10 \language english
11 \language_package default
12 \inputencoding utf8
13 \fontencoding auto
14 \font_roman "default" "default"
15 \font_sans "default" "default"
16 \font_typewriter "default" "default"
17 \font_math "auto" "auto"
18 \font_default_family default
19 \use_non_tex_fonts false
20 \font_sc false
21 \font_roman_osf false
22 \font_sans_osf false
23 \font_typewriter_osf false
24 \font_sf_scale 100 100
25 \font_tt_scale 100 100
26 \use_microtype false
27 \use_dash_ligatures false
28 \graphics default
29 \default_output_format pdf2
30 \output_sync 0
31 \bibtex_command bibtex
32 \index_command default
33 \float_placement class
34 \float_alignment class
35 \paperfontsize default
36 \spacing single
37 \use_hyperref true
38 \pdf_bookmarks true
39 \pdf_bookmarksnumbered false
40 \pdf_bookmarksopen true
41 \pdf_bookmarksopenlevel 1
42 \pdf_breaklinks false
43 \pdf_pdfborder true
44 \pdf_colorlinks false
45 \pdf_backref false
46 \pdf_pdfusetitle true
47 \papersize default
48 \use_geometry true
49 \use_package amsmath 1
50 \use_package amssymb 1
51 \use_package cancel 1
52 \use_package esint 1
53 \use_package mathdots 1
54 \use_package mathtools 1
55 \use_package mhchem 1
56 \use_package stackrel 1
57 \use_package stmaryrd 1
58 \use_package undertilde 1
59 \cite_engine natbib
60 \cite_engine_type authoryear
61 \biblio_style plain
62 \use_bibtopic false
63 \use_indices false
64 \paperorientation portrait
65 \suppress_date false
66 \justification true
67 \use_refstyle 0
68 \use_minted 0
69 \use_lineno 0
70 \notefontcolor #0000ff
71 \index Index
72 \shortcut idx
73 \color #008000
74 \end_index
75 \secnumdepth 2
76 \tocdepth 2
77 \paragraph_separation indent
78 \paragraph_indentation default
79 \is_math_indent 0
80 \math_numbering_side default
81 \quotes_style english
82 \dynamic_quotes 0
83 \papercolumns 1
84 \papersides 1
85 \paperpagestyle default
86 \tablestyle default
87 \tracking_changes false
88 \output_changes false
89 \change_bars false
90 \postpone_fragile_content false
91 \html_math_output 0
92 \html_css_as_file 0
93 \html_be_strict false
94 \docbook_table_output 0
95 \end_header
96
97 \begin_body
98
99 \begin_layout Standard
100 \begin_inset Note Note
101 status open
102
103 \begin_layout Plain Layout
104
105 \series bold
106 Note
107 \series default
108 : To be able to view your file as PDF you must have the \SpecialChar LaTeX
109 -package 
110 \family sans
111 fpl
112 \family default
113  installed to your \SpecialChar LaTeX
114  system.
115  If you are using MiK\SpecialChar TeX
116 , you will automatically be asked to install this package
117  when previewing your file, if you are using \SpecialChar TeX
118 Live, use \SpecialChar TeX
119 Live's package manager.
120 \end_layout
121
122 \begin_layout Plain Layout
123
124 \series bold
125 Note 2
126 \series default
127 : If you wish to compile to PDF with plain \SpecialChar LaTeX
128  (instead of pdf\SpecialChar TeX
129 ), there is currently
130  a bug in the Tufte class that causes errors.
131  You can add the class option 'nols' (put this in the 
132 \begin_inset Quotes eld
133 \end_inset
134
135 Custom
136 \begin_inset Quotes erd
137 \end_inset
138
139  field of Document\SpecialChar menuseparator
140 Settings \SpecialChar menuseparator
141 Document Class) to get rid of the errors, but
142  this also removes letterspacing, an important part of the Tufte design.
143 \end_layout
144
145 \end_inset
146
147
148 \end_layout
149
150 \begin_layout Title
151 Tufte Examples
152 \end_layout
153
154 \begin_layout Author
155 Fake Author
156 \begin_inset Note Note
157 status open
158
159 \begin_layout Plain Layout
160 author of this example file: Jason Waskiewicz
161 \end_layout
162
163 \end_inset
164
165
166 \end_layout
167
168 \begin_layout Standard
169 \begin_inset CommandInset toc
170 LatexCommand tableofcontents
171
172 \end_inset
173
174
175 \end_layout
176
177 \begin_layout Chapter
178 The Features of the Tufte-book Class
179 \end_layout
180
181 \begin_layout Standard
182 In this document, it was endeavored to show some of the features of the
183  
184 \family sans
185 Tufte-book
186 \family default
187  class.
188  In the first chapter, their use is outlined.
189  In the second chapter, their use through a handout that was created in
190  a calculus class is demonstrated.
191 \end_layout
192
193 \begin_layout Section
194 Working with Text
195 \end_layout
196
197 \begin_layout Standard
198 One of the most prominent and distinctive features of this style is the
199  extensive use of sidenotes.
200  There is a wide margin to provide ample room for sidenotes and small figures.
201  Any footnotes will automatically be converted to sidenotes.
202 \begin_inset Foot
203 status open
204
205 \begin_layout Plain Layout
206 This is a sidenote that was entered using a 
207 \family typewriter
208 footnote
209 \family default
210 .
211 \end_layout
212
213 \end_inset
214
215  Alternatively, you can also use the 
216 \family typewriter
217 Sidenote
218 \family default
219  inset directly; you'll find it in the 
220 \family sans
221 Insert\SpecialChar menuseparator
222 Custom Insets
223 \family default
224  menu.
225 \begin_inset Flex Sidenote
226 status open
227
228 \begin_layout Plain Layout
229 This is a sidenote that was entered using a 
230 \family typewriter
231 sidenote
232 \family default
233 .
234 \end_layout
235
236 \end_inset
237
238
239 \end_layout
240
241 \begin_layout Standard
242 If you like to place ancillary information in the margin without the sidenote
243  mark (the superscript number), you can use the 
244 \family typewriter
245 Marginnote
246 \family default
247  inset.
248  
249 \begin_inset Flex Marginnote
250 status open
251
252 \begin_layout Plain Layout
253 This is Tufte's margin note.
254  Notice that there isn't a number preceding the note, and there is no number
255  in the main text where this note was written.
256 \end_layout
257
258 \end_inset
259
260  The normal margin note will work as well, but it will look rather odd.
261 \begin_inset Marginal
262 status open
263
264 \begin_layout Plain Layout
265 This is a normal margin note.
266  Don't use it.
267 \end_layout
268
269 \end_inset
270
271
272 \end_layout
273
274 \begin_layout Standard
275 \begin_inset Flex NewThought
276 status open
277
278 \begin_layout Plain Layout
279 Another useful
280 \end_layout
281
282 \end_inset
283
284  innovation is Tufte's 
285 \family typewriter
286 NewThought
287 \family default
288  character style (
289 \family sans
290 Edit\SpecialChar menuseparator
291 TextStyle\SpecialChar menuseparator
292 NewThought
293 \family default
294 ).
295  It introduces new thoughts by means of small caps, as demonstrated in this
296  paragraph.
297  
298 \end_layout
299
300 \begin_layout Standard
301 The Tufte document classes include two new character styles and some improvement
302 s on existing commands for letterspacing.
303 \end_layout
304
305 \begin_layout Standard
306 When setting strings of 
307 \begin_inset Flex AllCaps
308 status open
309
310 \begin_layout Plain Layout
311 ALL CAPS
312 \end_layout
313
314 \end_inset
315
316  or 
317 \begin_inset Flex SmallCaps
318 status open
319
320 \begin_layout Plain Layout
321 small caps
322 \end_layout
323
324 \end_inset
325
326 , the letterspacing—that is, the spacing between the letters—should be increased
327  slightly.
328 \begin_inset CommandInset citation
329 LatexCommand cite
330 key "Bringhurst2005"
331 literal "true"
332
333 \end_inset
334
335  The 
336 \emph on
337 AllCaps
338 \emph default
339  character style (
340 \family sans
341 Edit\SpecialChar menuseparator
342 TextStyle\SpecialChar menuseparator
343 AllCaps
344 \family default
345 ) has proper letterspacing for strings of 
346 \begin_inset Flex AllCaps
347 status open
348
349 \begin_layout Plain Layout
350 FULL CAPITAL LETTERS
351 \end_layout
352
353 \end_inset
354
355 , and the 
356 \emph on
357 SmallCaps
358 \emph default
359  character style (
360 \family sans
361 Edit\SpecialChar menuseparator
362 TextStyle\SpecialChar menuseparator
363 SmallCaps
364 \family default
365 ) has letterspacing for 
366 \begin_inset Flex SmallCaps
367 status open
368
369 \begin_layout Plain Layout
370 small capital letters
371 \end_layout
372
373 \end_inset
374
375 .
376  These commands will also automatically convert the case of the text to
377  upper- or lowercase, respectively.
378 \end_layout
379
380 \begin_layout Standard
381 The normal 
382 \emph on
383 Small Caps
384 \emph default
385  shape has also been redefined to include letterspacing.
386  Its case is left as is, however.
387  This allows one to use both uppercase and lowercase letters: 
388 \shape smallcaps
389 The Initial Letters Of The Words In This Sentence Are Capitalized.
390 \end_layout
391
392 \begin_layout Standard
393 Finally, the
394 \emph on
395  Full Width
396 \emph default
397  paragraph environment provides a paragraph layout that stretches across
398  the main text block and the sidenotes area:
399 \end_layout
400
401 \begin_layout Full Width
402 Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
403  Ut purus elit, vestibulum ut, placerat ac, adipiscing vitae, felis.
404  Curabitur dictum gravida mauris.
405  Nam arcu libero, nonummy eget, consectetuer id, vulputate a, magna.
406  Donec vehicula augue eu neque.
407  Pellentesque habitant morbi tristique senectus et netus et malesuada fames
408  ac turpis egestas.
409  Mauris ut leo.
410  Cras viverra metus rhoncus sem.
411  Nulla et lectus vestibulum urna fringilla ultrices.
412  Phasellus eu tellus sit amet tortor gravida placerat.
413  Integer sapien est, iaculis in, pretium quis, viverra ac, nunc.
414  Praesent eget sem vel leo ultrices bibendum.
415  Aenean faucibus.
416  Morbi dolor nulla, malesuada eu, pulvinar at, mollis ac, nulla.
417  Curabitur auctor semper nulla.
418  Donec varius orci eget risus.
419  Duis nibh mi, congue eu, accumsan eleifend, sagittis quis, diam.
420  Duis eget orci sit amet orci dignissim rutrum.
421 \end_layout
422
423 \begin_layout Standard
424 \begin_inset CommandInset bibtex
425 LatexCommand bibtex
426 bibfiles "../../../lib/examples/biblioExample"
427 options "plainnat"
428
429 \end_inset
430
431
432 \end_layout
433
434 \end_body
435 \end_document