X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=lib%2Fexamples%2Ftufte-handout.lyx;h=71c135da67eb0dc3834d9f2966bbb9c713882118;hb=aca303135257f979ba09c9ab70147d4b51cef230;hp=47dbfd5b3a3840b369dedf39ab3a54bb013934fa;hpb=61e53d9f25baf5c4e58518291eccd562ce05200a;p=lyx.git diff --git a/lib/examples/tufte-handout.lyx b/lib/examples/tufte-handout.lyx index 47dbfd5b3a..71c135da67 100644 --- a/lib/examples/tufte-handout.lyx +++ b/lib/examples/tufte-handout.lyx @@ -1,43 +1,88 @@ -#LyX 1.6.5svn created this file. For more info see http://www.lyx.org/ -\lyxformat 345 +#LyX 2.4 created this file. For more info see https://www.lyx.org/ +\lyxformat 553 \begin_document \begin_header +\save_transient_properties true +\origin /systemlyxdir/examples/ \textclass tufte-handout -\use_default_options false +\use_default_options true +\maintain_unincluded_children false \language english +\language_package default \inputencoding auto -\font_roman default -\font_sans helvet -\font_typewriter default +\fontencoding auto +\font_roman "default" "default" +\font_sans "helvet" "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 +\use_microtype false +\use_dash_ligatures false \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 true +\pdf_bookmarksopen true +\pdf_bookmarksopenlevel 1 +\pdf_breaklinks true +\pdf_pdfborder true +\pdf_colorlinks false +\pdf_backref false +\pdf_pdfusetitle true \papersize default \use_geometry true -\use_amsmath 1 -\use_esint 0 -\cite_engine basic +\use_package amsmath 1 +\use_package amssymb 1 +\use_package cancel 1 +\use_package esint 1 +\use_package mathdots 1 +\use_package mathtools 1 +\use_package mhchem 1 +\use_package stackrel 1 +\use_package stmaryrd 1 +\use_package undertilde 1 +\cite_engine natbib +\cite_engine_type authoryear +\biblio_style plain \use_bibtopic false +\use_indices false \paperorientation portrait +\suppress_date false +\justification true +\use_refstyle 0 +\use_minted 0 +\notefontcolor #0000ff +\index Index +\shortcut idx +\color #008000 +\end_index \secnumdepth 2 \tocdepth 2 \paragraph_separation indent -\defskip medskip -\quotes_language english +\paragraph_indentation default +\is_math_indent 0 +\math_numbering_side default +\quotes_style english +\dynamic_quotes 0 \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,28 +94,51 @@ 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 +\end_layout + +\begin_layout Standard \begin_inset Note Note status open @@ -92,29 +160,7 @@ An Example of the Usage of the Tufte-Handout Style \end_layout \begin_layout Author -Tufte-LaTe -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - -{} -\end_layout - -\end_inset - -X Developers and The Ly -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - -{} -\end_layout - -\end_inset - -X Team +Tufte-LaTeX Developers and The LyX Team \end_layout \begin_layout Abstract @@ -123,13 +169,15 @@ This document describes the \emph on Tufte handout \emph default - LaTeX document style. + \SpecialChar LaTeX + document style. It also provides examples and comments on the style's use. It is based on the example file shiped with \emph on tufte-handout.cls \emph default -, but adapted for the use with LyX. +, but adapted for the use with \SpecialChar LyX +. \end_layout \begin_layout Standard @@ -174,22 +222,15 @@ tufte-handout document class and a style guide to its use. \end_layout -\begin_layout Part* +\begin_layout Part First part \end_layout -\begin_layout Section* +\begin_layout Section Page Layout -\begin_inset CommandInset label -LatexCommand label -name "sec:page-layout" - -\end_inset - - \end_layout -\begin_layout Subsection* +\begin_layout Subsection Headings and paragraph design \begin_inset CommandInset label LatexCommand label @@ -197,7 +238,7 @@ name "sec:headings" \end_inset - + \end_layout \begin_layout Standard @@ -268,6 +309,7 @@ The Elements of Typographic Style \begin_inset CommandInset citation LatexCommand cite key "Bringhurst2005" +literal "true" \end_inset @@ -296,6 +338,7 @@ In his later books \begin_inset CommandInset citation LatexCommand cite key "Tufte2006" +literal "true" \end_inset @@ -311,22 +354,15 @@ NewThought \family default character style ( \family sans -Edit\SpecialChar \menuseparator -TextStyle\SpecialChar \menuseparator +Edit\SpecialChar menuseparator +TextStyle\SpecialChar menuseparator NewThought \family default ). \end_layout -\begin_layout Subsection* +\begin_layout Subsection Sidenotes -\begin_inset CommandInset label -LatexCommand label -name "sec:sidenotes" - -\end_inset - - \end_layout \begin_layout Standard @@ -353,7 +389,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. @@ -406,7 +442,7 @@ This is a normal margin note. \end_layout -\begin_layout Subsection* +\begin_layout Subsection References \end_layout @@ -429,9 +465,10 @@ The first paragraph of this document 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 @@ -440,13 +477,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 @@ -455,15 +495,8 @@ nobibliography the text. \end_layout -\begin_layout Section* +\begin_layout Section Figures and Tables -\begin_inset CommandInset label -LatexCommand label -name "sec:figures-and-tables" - -\end_inset - - \end_layout \begin_layout Standard @@ -511,7 +544,8 @@ reference "fig:marginfig" status collapsed \begin_layout Plain Layout -Note: unfortunately, the counting inside the LyX view is wrong. +Note: unfortunately, the counting inside the \SpecialChar LyX + view is wrong. Margin floats and normal floats are counted differently, whereas the use the same counter in the output. \end_layout @@ -520,6 +554,8 @@ Note: unfortunately, the counting inside the LyX view is wrong. \begin_inset Float marginfigure +placement document +alignment document wide false sideways false status open @@ -531,10 +567,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 @@ -548,7 +590,7 @@ replace the box by your figure! \end_layout \begin_layout Plain Layout -\begin_inset Caption +\begin_inset Caption Standard \begin_layout Plain Layout This is a margin figure. @@ -570,6 +612,32 @@ name "fig:marginfig" \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 @@ -598,6 +666,8 @@ reference "fig:textfig" is an example of the normal figure float. \begin_inset Float figure +placement document +alignment document wide true sideways false status open @@ -609,10 +679,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 @@ -626,7 +702,7 @@ replace the box by your figure! \end_layout \begin_layout Plain Layout -\begin_inset Caption +\begin_inset Caption Standard \begin_layout Plain Layout This is a wide figure ( @@ -656,11 +732,19 @@ name "fig:fullfig" \end_inset +\end_layout + +\begin_layout Standard +\begin_inset VSpace 6theight% +\end_inset + + \end_layout \begin_layout Standard \begin_inset Float figure placement h +alignment document wide false sideways false status open @@ -672,10 +756,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 @@ -689,7 +779,7 @@ replace the box by your figure! \end_layout \begin_layout Plain Layout -\begin_inset Caption +\begin_inset Caption Standard \begin_layout Plain Layout This is a normal figure. @@ -742,37 +832,25 @@ formal \end_inset in the tabular dialog). - Notice the lack of vertical rules---they serve only to clutter the table's + Notice the lack of vertical rules—they serve only to clutter the table's data. \end_layout \begin_layout Standard \begin_inset Float table placement ht +alignment document wide false sideways false status open \begin_layout Plain Layout - -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -centering -\end_layout - -\end_inset - - +\align center \begin_inset Tabular - - - + + + \begin_inset Text @@ -807,64 +885,7 @@ Paper width \begin_inset Text \begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -unit -\end_layout - -\end_inset - - -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - -[ -\end_layout - -\end_inset - -8 -\begin_inset Formula $\nicefrac{1}{2}$ -\end_inset - - -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - -] -\end_layout - -\end_inset - - -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - -{ -\end_layout - -\end_inset - -inches -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - -} -\end_layout - +\begin_inset Formula $\unit[8\nicefrac{1}{2}]{inches}$ \end_inset @@ -887,63 +908,10 @@ Paper height \begin_inset Text \begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -unit -\end_layout - -\end_inset - - -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - -[ -\end_layout - +\begin_inset Formula $\unit[11]{inches}$ \end_inset -11 -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout -] -\end_layout - -\end_inset - - -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - -{ -\end_layout - -\end_inset - -inches -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - -} -\end_layout - -\end_inset - - \end_layout \end_inset @@ -963,64 +931,7 @@ Textblock width \begin_inset Text \begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -unit -\end_layout - -\end_inset - - -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - -[ -\end_layout - -\end_inset - -6 -\begin_inset Formula $\nicefrac{1}{2}$ -\end_inset - - -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - -] -\end_layout - -\end_inset - - -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - -{ -\end_layout - -\end_inset - -inches -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - -} -\end_layout - +\begin_inset Formula $\unit[6\nicefrac{1}{2}]{inches}$ \end_inset @@ -1043,67 +954,10 @@ Textblock/sidenote gutter \begin_inset Text \begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -unit -\end_layout - -\end_inset - - -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - -[ -\end_layout - -\end_inset - - -\begin_inset Formula $\nicefrac{3}{8}$ +\begin_inset Formula $\unit[\nicefrac{3}{8}]{inches}$ \end_inset -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - -] -\end_layout - -\end_inset - - -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - -{ -\end_layout - -\end_inset - -inches -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - -} -\end_layout - -\end_inset - - \end_layout \end_inset @@ -1123,63 +977,10 @@ Sidenote width \begin_inset Text \begin_layout Plain Layout -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - - -\backslash -unit -\end_layout - -\end_inset - - -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - -[ -\end_layout - -\end_inset - -2 -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - -] -\end_layout - -\end_inset - - -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - -{ -\end_layout - +\begin_inset Formula $\unit[2]{inches}$ \end_inset -inches -\begin_inset ERT -status collapsed - -\begin_layout Plain Layout - -} -\end_layout - -\end_inset - \end_layout \end_inset @@ -1193,7 +994,7 @@ status collapsed \end_layout \begin_layout Plain Layout -\begin_inset Caption +\begin_inset Caption Standard \begin_layout Plain Layout Here are the dimensions of the various margins used in the @@ -1220,7 +1021,7 @@ name "tab:normaltab" \end_layout -\begin_layout Section* +\begin_layout Section Full-width text blocks \end_layout @@ -1255,30 +1056,16 @@ Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Duis eget orci sit amet orci dignissim rutrum. \end_layout -\begin_layout Part* +\begin_layout Part Second part \end_layout -\begin_layout Section* +\begin_layout Section Typography -\begin_inset CommandInset label -LatexCommand label -name "sec:typography" - -\end_inset - - \end_layout -\begin_layout Subsection* +\begin_layout Subsection Typefaces -\begin_inset CommandInset label -LatexCommand label -name "sec:typefaces" - -\end_inset - - \end_layout \begin_layout Standard @@ -1298,15 +1085,8 @@ Computer Modern typefaces. \end_layout -\begin_layout Subsection* +\begin_layout Subsection Letterspacing -\begin_inset CommandInset label -LatexCommand label -name "sec:letterspacing" - -\end_inset - - \end_layout \begin_layout Standard @@ -1330,16 +1110,17 @@ 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" +literal "true" \end_inset @@ -1349,8 +1130,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 @@ -1369,8 +1150,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 @@ -1400,26 +1181,12 @@ Small Caps The Initial Letters Of The Words In This Sentence Are Capitalized. \end_layout -\begin_layout Section* +\begin_layout Section Customization -\begin_inset CommandInset label -LatexCommand label -name "sec:customization" - -\end_inset - - \end_layout -\begin_layout Subsection* +\begin_layout Subsection Document class options -\begin_inset CommandInset label -LatexCommand label -name "sec:options" - -\end_inset - - \end_layout \begin_layout Standard @@ -1501,7 +1268,7 @@ justified in the slightly narrower column. \end_layout -\begin_layout Subsection* +\begin_layout Subsection Defining new sections \begin_inset CommandInset label LatexCommand label @@ -1606,8 +1373,8 @@ makeatother \begin_layout Standard Place that code in \family sans -Document\SpecialChar \menuseparator -Settings\SpecialChar \menuseparator +Document\SpecialChar menuseparator +Settings\SpecialChar menuseparator Preamble \family default and you'll now be able to use @@ -1616,13 +1383,15 @@ Preamble \backslash paragraph \family default - in LaTeX mode. + in \SpecialChar LaTeX + mode. \end_layout \begin_layout Standard For more details on defining section levels, see \shape italic -The LaTeX +The \SpecialChar LaTeX + \begin_inset space \space{} \end_inset @@ -1632,6 +1401,7 @@ Companion \begin_inset CommandInset citation LatexCommand cite key "LComp2004" +literal "true" \end_inset @@ -1642,26 +1412,12 @@ titlesec package. \end_layout -\begin_layout Section* +\begin_layout Section Support -\begin_inset CommandInset label -LatexCommand label -name "sec:support" - -\end_inset - - \end_layout -\begin_layout Subsection* +\begin_layout Subsection Package Dependencies -\begin_inset CommandInset label -LatexCommand label -name "sec:dependencies" - -\end_inset - - \end_layout \begin_layout Standard @@ -1729,23 +1485,18 @@ palatino* beramono* \end_layout -\begin_layout Subsection* -Tufte-LaTeX +\begin_layout Subsection +Tufte-\SpecialChar LaTeX + \begin_inset space \space{} \end_inset Website -\begin_inset CommandInset label -LatexCommand label -name "sec:website" - -\end_inset - - \end_layout \begin_layout Standard -The website for the Tufte-LaTeX +The website for the Tufte-\SpecialChar LaTeX + \begin_inset space \space{} \end_inset @@ -1755,7 +1506,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