]> git.lyx.org Git - lyx.git/blobdiff - lib/examples/tufte-book.lyx
UserGuide.lyx: fix some typographic issues spotted by Mike
[lyx.git] / lib / examples / tufte-book.lyx
index 5fc7dd1717c29f730a856901dd17bed0292a57d7..16d3d448460ca5e89db39a01392085db898db56c 100644 (file)
@@ -1,43 +1,82 @@
-#LyX 1.6.5svn created this file. For more info see http://www.lyx.org/
-\lyxformat 345
+#LyX 2.2 created this file. For more info see http://www.lyx.org/
+\lyxformat 508
 \begin_document
 \begin_header
+\save_transient_properties true
+\origin /systemlyxdir/examples/
 \textclass tufte-book
 \use_default_options true
+\maintain_unincluded_children false
 \language english
+\language_package default
 \inputencoding auto
-\font_roman default
-\font_sans default
-\font_typewriter default
+\fontencoding global
+\font_roman "default" "default"
+\font_sans "default" "default"
+\font_typewriter "default" "default"
+\font_math "auto" "auto"
 \font_default_family default
+\use_non_tex_fonts false
 \font_sc false
 \font_osf false
-\font_sf_scale 100
-\font_tt_scale 100
-
+\font_sf_scale 100 100
+\font_tt_scale 100 100
 \graphics default
+\default_output_format pdf2
+\output_sync 0
+\bibtex_command bibtex
+\index_command default
 \paperfontsize default
 \spacing single
-\use_hyperref false
+\use_hyperref true
+\pdf_bookmarks true
+\pdf_bookmarksnumbered false
+\pdf_bookmarksopen true
+\pdf_bookmarksopenlevel 1
+\pdf_breaklinks false
+\pdf_pdfborder true
+\pdf_colorlinks false
+\pdf_backref false
+\pdf_pdfusetitle true
 \papersize default
 \use_geometry true
-\use_amsmath 1
-\use_esint 1
+\use_package amsmath 1
+\use_package amssymb 1
+\use_package cancel 0
+\use_package esint 1
+\use_package mathdots 1
+\use_package mathtools 0
+\use_package mhchem 1
+\use_package stackrel 0
+\use_package stmaryrd 0
+\use_package undertilde 0
 \cite_engine basic
+\cite_engine_type default
+\biblio_style plain
 \use_bibtopic false
+\use_indices false
 \paperorientation portrait
+\suppress_date false
+\justification true
+\use_refstyle 0
+\notefontcolor #0000ff
+\index Index
+\shortcut idx
+\color #008000
+\end_index
 \secnumdepth 2
 \tocdepth 2
 \paragraph_separation indent
-\defskip medskip
+\paragraph_indentation default
 \quotes_language english
 \papercolumns 1
 \papersides 1
 \paperpagestyle default
 \tracking_changes false
 \output_changes false
-\author "" 
-\author "" 
+\html_math_output 0
+\html_css_as_file 0
+\html_be_strict false
 \end_header
 
 \begin_body
@@ -49,23 +88,43 @@ status open
 \begin_layout Plain Layout
 
 \series bold
-Important note:
+Note
 \series default
- The menu 
-\family sans
-Insert\SpecialChar \menuseparator
-Hyperlinks
-\family default
- and the 
+: To be able to view your file as PDF you must have the \SpecialChar LaTeX
+-package 
 \family sans
-PDF properties
+fpl
 \family default
- in the 
-\family sans
-Document\SpecialChar \menuseparator
-Settings
-\family default
- menu cannot be used for tufte document classes!
+ installed to your \SpecialChar LaTeX
+ system.
+ If you are using MiK\SpecialChar TeX
+, you will automatically be asked to install this package
+ when previewing your file, if you are using \SpecialChar TeX
+Live, use \SpecialChar TeX
+Live's package manager.
+\end_layout
+
+\begin_layout Plain Layout
+
+\series bold
+Note 2
+\series default
+: If you wish to compile to PDF with plain \SpecialChar LaTeX
+ (instead of pdf\SpecialChar TeX
+), there is currently
+ a bug in the Tufte class that causes errors.
+ You can add the class option 'nols' (put this in the 
+\begin_inset Quotes eld
+\end_inset
+
+Custom
+\begin_inset Quotes erd
+\end_inset
+
+ field of Document\SpecialChar menuseparator
+Settings \SpecialChar menuseparator
+Document Class) to get rid of the errors, but
+ this also removes letterspacing, an important part of the Tufte design.
 \end_layout
 
 \end_inset
@@ -179,7 +238,7 @@ status collapsed
 
 \begin_layout Plain Layout
 
-http://code.google.com/p/tufte-latex
+https://tufte-latex.github.io/tufte-latex/
 \end_layout
 
 \end_inset
@@ -215,8 +274,8 @@ Custom
 \emph default
  field in 
 \family sans
-Document\SpecialChar \menuseparator
-Settings\SpecialChar \menuseparator
+Document\SpecialChar menuseparator
+Settings\SpecialChar menuseparator
 Document Class
 \family default
 .
@@ -255,8 +314,8 @@ Custom
 \emph default
  field in 
 \family sans
-Document\SpecialChar \menuseparator
-Settings\SpecialChar \menuseparator
+Document\SpecialChar menuseparator
+Settings\SpecialChar menuseparator
 Document Class
 \family default
 .
@@ -275,8 +334,8 @@ Numbering
 \emph default
  slider in 
 \family sans
-Document\SpecialChar \menuseparator
-Settings\SpecialChar \menuseparator
+Document\SpecialChar menuseparator
+Settings\SpecialChar menuseparator
 Numbering & TOC
 \family default
  to the very right (as done in this document).
@@ -313,10 +372,16 @@ hor_pos "c"
 has_inner_box 1
 inner_pos "t"
 use_parbox 0
+use_makebox 0
 width "100col%"
 special "none"
 height "1in"
 height_special "totalheight"
+thickness "0.4pt"
+separation "3pt"
+shadowsize "4pt"
+framecolor "black"
+backgroundcolor "none"
 status open
 
 \begin_layout Plain Layout
@@ -326,7 +391,7 @@ Imagine your favorite figure inside this box instead of this boring text.
 \end_inset
 
 
-\begin_inset Caption
+\begin_inset Caption Standard
 
 \begin_layout Plain Layout
 An ordinary figure float.
@@ -357,6 +422,13 @@ reference "fig:margin-figure"
 .
 \end_layout
 
+\begin_layout Standard
+\begin_inset VSpace 5theight%
+\end_inset
+
+
+\end_layout
+
 \begin_layout Standard
 \begin_inset Float marginfigure
 wide false
@@ -370,10 +442,16 @@ hor_pos "c"
 has_inner_box 1
 inner_pos "t"
 use_parbox 0
+use_makebox 0
 width "100col%"
 special "none"
 height "1in"
 height_special "totalheight"
+thickness "0.4pt"
+separation "3pt"
+shadowsize "4pt"
+framecolor "black"
+backgroundcolor "none"
 status open
 
 \begin_layout Plain Layout
@@ -384,7 +462,7 @@ Imagine your favorite photograph of a squirrel inside this box instead of
 \end_inset
 
 
-\begin_inset Caption
+\begin_inset Caption Standard
 
 \begin_layout Plain Layout
 A margin figure.
@@ -405,6 +483,32 @@ name "fig:margin-figure"
 \end_inset
 
 
+\end_layout
+
+\begin_layout Standard
+\begin_inset Note Greyedout
+status open
+
+\begin_layout Plain Layout
+
+\series bold
+Note:
+\series default
+ If you are using margin figures or tables you must use the default float
+ placement option in the document settings under 
+\family sans
+Float
+\begin_inset space ~
+\end_inset
+
+Placement
+\family default
+.
+\end_layout
+
+\end_inset
+
+
 \end_layout
 
 \begin_layout Standard
@@ -464,10 +568,16 @@ hor_pos "c"
 has_inner_box 1
 inner_pos "t"
 use_parbox 0
+use_makebox 0
 width "100line%"
 special "none"
 height "1in"
 height_special "totalheight"
+thickness "0.4pt"
+separation "3pt"
+shadowsize "4pt"
+framecolor "black"
+backgroundcolor "none"
 status open
 
 \begin_layout Plain Layout
@@ -485,7 +595,7 @@ Imagine your favorite photograph of a squirrel inside this box instead of
 \end_layout
 
 \begin_layout Plain Layout
-\begin_inset Caption
+\begin_inset Caption Standard
 
 \begin_layout Plain Layout
 A full-width figure.
@@ -536,7 +646,7 @@ Sidenote
 \family default
  inset directly; you'll find it in the 
 \family sans
-Insert\SpecialChar \menuseparator
+Insert\SpecialChar menuseparator
 Custom Insets
 \family default
  menu.
@@ -605,8 +715,8 @@ NewThought
 \family default
  character style (
 \family sans
-Edit\SpecialChar \menuseparator
-TextStyle\SpecialChar \menuseparator
+Edit\SpecialChar menuseparator
+TextStyle\SpecialChar menuseparator
 NewThought
 \family default
 ).
@@ -636,13 +746,13 @@ ALL CAPS
 status open
 
 \begin_layout Plain Layout
-Small Caps
+small caps
 \end_layout
 
 \end_inset
 
-, the letterspacing---that is, the spacing between the letters---should
be increased slightly.
+, the letterspacing—that is, the spacing between the letters—should be increased
+ slightly.
 \begin_inset CommandInset citation
 LatexCommand cite
 key "Bringhurst2005"
@@ -655,8 +765,8 @@ AllCaps
 \emph default
  character style (
 \family sans
-Edit\SpecialChar \menuseparator
-TextStyle\SpecialChar \menuseparator
+Edit\SpecialChar menuseparator
+TextStyle\SpecialChar menuseparator
 AllCaps
 \family default
 ) has proper letterspacing for strings of 
@@ -675,8 +785,8 @@ SmallCaps
 \emph default
  character style (
 \family sans
-Edit\SpecialChar \menuseparator
-TextStyle\SpecialChar \menuseparator
+Edit\SpecialChar menuseparator
+TextStyle\SpecialChar menuseparator
 SmallCaps
 \family default
 ) has letterspacing for 
@@ -760,9 +870,10 @@ The previous section includes a citation.
 The complete list of references may also be printed automatically by using
  
 \family sans
-Insert\SpecialChar \menuseparator
-Lists/TOC\SpecialChar \menuseparator
-BibTeX
+Insert\SpecialChar menuseparator
+Lists/TOC\SpecialChar menuseparator
+Bib\SpecialChar TeX
+
 \begin_inset space ~
 \end_inset
 
@@ -771,13 +882,16 @@ Bibliography
  (see the end of this document for an example.) If you do not want to print
  a bibliography at the end of your document, place the 
 \family sans
-BibTeX
+Bib\SpecialChar TeX
+
 \begin_inset space ~
 \end_inset
 
 Bibliography
 \family default
- inset inside a LyX note and use the LaTeX command 
+ inset inside a \SpecialChar LyX
+ note and use the \SpecialChar LaTeX
+ command 
 \family typewriter
 
 \backslash
@@ -787,10 +901,10 @@ nobibliography
 \end_layout
 
 \begin_layout Chapter
-Calculation of Volume: Sections 2.12--2.13
+Calculation of Volume: Sections 2.122.13
 \end_layout
 
-\begin_layout Abstract
+\begin_layout Standard
 Imagine taking a function like 
 \begin_inset Formula $y=\sqrt{x}$
 \end_inset
@@ -818,10 +932,16 @@ hor_pos "c"
 has_inner_box 1
 inner_pos "t"
 use_parbox 0
+use_makebox 0
 width "100col%"
 special "none"
 height "1in"
 height_special "totalheight"
+thickness "0.4pt"
+separation "3pt"
+shadowsize "4pt"
+framecolor "black"
+backgroundcolor "none"
 status open
 
 \begin_layout Plain Layout
@@ -831,7 +951,7 @@ I had a graph of the square root function here.
 \end_inset
 
 
-\begin_inset Caption
+\begin_inset Caption Standard
 
 \begin_layout Plain Layout
 \begin_inset CommandInset label
@@ -870,10 +990,16 @@ hor_pos "c"
 has_inner_box 1
 inner_pos "t"
 use_parbox 0
+use_makebox 0
 width "100col%"
 special "none"
 height "1in"
 height_special "totalheight"
+thickness "0.4pt"
+separation "3pt"
+shadowsize "4pt"
+framecolor "black"
+backgroundcolor "none"
 status open
 
 \begin_layout Plain Layout
@@ -884,7 +1010,7 @@ Here I rotated the square root function and then drew a disk on the figure
 \end_inset
 
 
-\begin_inset Caption
+\begin_inset Caption Standard
 
 \begin_layout Plain Layout
 \begin_inset CommandInset label
@@ -951,11 +1077,11 @@ Now, suppose we wished to find the volume of the figure.
 .
  Since height multiplied by width was the area of each rectangle, we summed
  these areas and rewrote this as 
-\begin_inset Formula $\int\, f(x)\, dx$
+\begin_inset Formula $\int\,f(x)\,dx$
 \end_inset
 
 , or, in this specific case, 
-\begin_inset Formula $\int\,\sqrt{x}\, dx$
+\begin_inset Formula $\int\,\sqrt{x}\,dx$
 \end_inset
 
 .
@@ -980,8 +1106,10 @@ The text refers to these cylinders as "disks".
 \end_layout
 
 \begin_layout Standard
-\begin_inset Formula \[
-V=hA\]
+\begin_inset Formula 
+\[
+V=hA
+\]
 
 \end_inset
 
@@ -1013,8 +1141,10 @@ where
 \end_layout
 
 \begin_layout Standard
-\begin_inset Formula \[
-A=\pi f^{2}(x)\]
+\begin_inset Formula 
+\[
+A=\pi f^{2}(x)
+\]
 
 \end_inset
 
@@ -1027,9 +1157,11 @@ In our specific case,
 \end_layout
 
 \begin_layout Standard
-\begin_inset Formula \begin{eqnarray*}
+\begin_inset Formula 
+\begin{eqnarray*}
 A & = & \pi\left(\sqrt{x}\right)^{2}\\
- & = & \pi x\end{eqnarray*}
+ & = & \pi x
+\end{eqnarray*}
 
 \end_inset
 
@@ -1041,8 +1173,10 @@ To calculate the volume of one disk, we have
 \end_layout
 
 \begin_layout Standard
-\begin_inset Formula \[
-V=\pi x\, dx\]
+\begin_inset Formula 
+\[
+V=\pi x\,dx
+\]
 
 \end_inset
 
@@ -1055,8 +1189,10 @@ or, in the general case
 \end_layout
 
 \begin_layout Standard
-\begin_inset Formula \[
-V=\pi f^{2}(x)\, dx\]
+\begin_inset Formula 
+\[
+V=\pi f^{2}(x)\,dx
+\]
 
 \end_inset
 
@@ -1076,8 +1212,10 @@ To find the volume of the figure between points
 \end_layout
 
 \begin_layout Standard
-\begin_inset Formula \begin{equation}
-\int_{a}^{b}\,\pi f^{2}(x)\, dx\end{equation}
+\begin_inset Formula 
+\begin{equation}
+\int_{a}^{b}\,\pi f^{2}(x)\,dx
+\end{equation}
 
 \end_inset
 
@@ -1094,11 +1232,13 @@ In the specific example, over the interval
 \end_layout
 
 \begin_layout Standard
-\begin_inset Formula \begin{eqnarray*}
-\int_{0}^{4}\,\pi x\, dx & = & \pi\int_{0}^{4}\, x\, dx\\
+\begin_inset Formula 
+\begin{eqnarray*}
+\int_{0}^{4}\,\pi x\,dx & = & \pi\int_{0}^{4}\,x\,dx\\
  & = & \pi\left.\left(\frac{x^{2}}{2}\right)\right|_{0}^{4}\\
  & = & \pi\left(\frac{4^{2}}{2}-0\right)\\
- & = & 8\pi\end{eqnarray*}
+ & = & 8\pi
+\end{eqnarray*}
 
 \end_inset
 
@@ -1166,10 +1306,16 @@ hor_pos "c"
 has_inner_box 1
 inner_pos "t"
 use_parbox 0
+use_makebox 0
 width "100col%"
 special "none"
 height "1in"
 height_special "totalheight"
+thickness "0.4pt"
+separation "3pt"
+shadowsize "4pt"
+framecolor "black"
+backgroundcolor "none"
 status open
 
 \begin_layout Plain Layout
@@ -1180,7 +1326,7 @@ Here I used RLPlot to draw the square root function and the quadratic function.
 \end_inset
 
 
-\begin_inset Caption
+\begin_inset Caption Standard
 
 \begin_layout Plain Layout
 The functions 
@@ -1209,10 +1355,12 @@ The functions
 \end_layout
 
 \begin_layout Standard
-\begin_inset Formula \begin{eqnarray*}
+\begin_inset Formula 
+\begin{eqnarray*}
 A_{washer} & = & A_{cup}-A_{drill}\\
  & = & \pi f^{2}(x)-\pi g^{2}(x)\\
- & = & \pi\left(f^{2}(x)-g^{2}(x)\right)\end{eqnarray*}
+ & = & \pi\left(f^{2}(x)-g^{2}(x)\right)
+\end{eqnarray*}
 
 \end_inset
 
@@ -1224,9 +1372,11 @@ The volume of each washer would be
 \end_layout
 
 \begin_layout Standard
-\begin_inset Formula \begin{eqnarray*}
-V_{washer} & = & A_{washer}\, dx\\
- & = & \pi\left(f^{2}(x)-g^{2}(x)\right)\, dx\end{eqnarray*}
+\begin_inset Formula 
+\begin{eqnarray*}
+V_{washer} & = & A_{washer}\,dx\\
+ & = & \pi\left(f^{2}(x)-g^{2}(x)\right)\,dx
+\end{eqnarray*}
 
 \end_inset
 
@@ -1247,8 +1397,10 @@ Then, by summing the volumes of all the washers between points
 \end_layout
 
 \begin_layout Standard
-\begin_inset Formula \begin{equation}
-\int_{a}^{b}\,\pi\left(f^{2}(x)-g^{2}(x)\right)\, dx\end{equation}
+\begin_inset Formula 
+\begin{equation}
+\int_{a}^{b}\,\pi\left(f^{2}(x)-g^{2}(x)\right)\,dx
+\end{equation}
 
 \end_inset
 
@@ -1269,10 +1421,16 @@ hor_pos "c"
 has_inner_box 1
 inner_pos "t"
 use_parbox 0
+use_makebox 0
 width "100col%"
 special "none"
 height "1in"
 height_special "totalheight"
+thickness "0.4pt"
+separation "3pt"
+shadowsize "4pt"
+framecolor "black"
+backgroundcolor "none"
 status open
 
 \begin_layout Plain Layout
@@ -1282,7 +1440,7 @@ This was the rotated set of 2 functions.
 \end_inset
 
 
-\begin_inset Caption
+\begin_inset Caption Standard
 
 \begin_layout Plain Layout
 The cup with a quadratic hole drilled down its length
@@ -1299,13 +1457,15 @@ The cup with a quadratic hole drilled down its length
 \end_layout
 
 \begin_layout Standard
-\begin_inset Formula \begin{eqnarray*}
-\int_{0}^{4}\,\pi\left(\left(\sqrt{x}\right)^{2}-\left(\frac{x^{2}}{16}\right)\right)\, dx & = & \pi\int_{0}^{4}\,\left(x-\frac{x^{4}}{256}\right)\, dx\\
- & = & \pi\left(\int_{0}^{4}\, x\, dx-\int_{0}^{4}\,\frac{x^{4}}{256}\, dx\right)\\
+\begin_inset Formula 
+\begin{eqnarray*}
+\int_{0}^{4}\,\pi\left(\left(\sqrt{x}\right)^{2}-\left(\frac{x^{2}}{16}\right)\right)\,dx & = & \pi\int_{0}^{4}\,\left(x-\frac{x^{4}}{256}\right)\,dx\\
+ & = & \pi\left(\int_{0}^{4}\,x\,dx-\int_{0}^{4}\,\frac{x^{4}}{256}\,dx\right)\\
  & = & \pi\left(\left.\left(\frac{x^{2}}{2}\right)\right|_{0}^{4}-\left.\left(\frac{x^{5}}{1280}\right)\right|_{0}^{4}\right)\\
  & = & \pi\left(\left(\frac{4^{2}}{2}-0\right)-\left(\frac{4^{5}}{1280}-0\right)\right)\\
  & = & \pi\left(8-0.8\right)\\
- & = & 7.2\pi\end{eqnarray*}
+ & = & 7.2\pi
+\end{eqnarray*}
 
 \end_inset