From 1b7e9178f071a1abdbd6ecea3e60ae28a284b4ec Mon Sep 17 00:00:00 2001 From: Scott Kostyshak Date: Tue, 9 Apr 2013 01:23:06 -0400 Subject: [PATCH] tufte-{book,handout}: set default output to pdf2 If the 'nols' option were set, the files could be output with plain LaTeX as well; but because letterspacing is an important part of the Tufte design, letterspacing is preserved and pdf2 is set as the default output format. This is now explained in a note. --- lib/examples/tufte-book.lyx | 50 ++++++++++++++++++++++++---------- lib/examples/tufte-handout.lyx | 46 ++++++++++++++++++++++--------- 2 files changed, 68 insertions(+), 28 deletions(-) diff --git a/lib/examples/tufte-book.lyx b/lib/examples/tufte-book.lyx index a009b4c724..0cb2691d8a 100644 --- a/lib/examples/tufte-book.lyx +++ b/lib/examples/tufte-book.lyx @@ -1,5 +1,5 @@ -#LyX 2.0 created this file. For more info see http://www.lyx.org/ -\lyxformat 413 +#LyX 2.1 created this file. For more info see http://www.lyx.org/ +\lyxformat 469 \begin_document \begin_header \textclass tufte-book @@ -12,15 +12,15 @@ \font_roman default \font_sans default \font_typewriter default +\font_math auto \font_default_family default \use_non_tex_fonts false \font_sc false \font_osf false \font_sf_scale 100 \font_tt_scale 100 - \graphics default -\default_output_format default +\default_output_format pdf2 \output_sync 0 \bibtex_command default \index_command default @@ -38,15 +38,24 @@ \pdf_pdfusetitle true \papersize default \use_geometry true -\use_amsmath 1 -\use_esint 1 -\use_mhchem 1 -\use_mathdots 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 numerical +\biblio_style plain \use_bibtopic false \use_indices false \paperorientation portrait \suppress_date false +\justification true \use_refstyle 0 \notefontcolor #0000ff \index Index @@ -89,6 +98,17 @@ fpl package manager. \end_layout +\begin_layout Plain Layout + +\series bold +Note 2 +\series default +: If you wish to compile to PDF with plain LaTeX (instead of pdfTeX), there + is currently a bug in the Tufte class that causes errors. + You can add the class option 'nols' to get rid of the errors, but this + also removes letterspacing, an important part of the Tufte design. +\end_layout + \end_inset @@ -348,7 +368,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. @@ -414,7 +434,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. @@ -542,7 +562,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. @@ -889,7 +909,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 @@ -943,7 +963,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 @@ -1254,7 +1274,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 @@ -1363,7 +1383,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 diff --git a/lib/examples/tufte-handout.lyx b/lib/examples/tufte-handout.lyx index 5e412ec08b..67c809d84b 100644 --- a/lib/examples/tufte-handout.lyx +++ b/lib/examples/tufte-handout.lyx @@ -1,5 +1,5 @@ -#LyX 2.0 created this file. For more info see http://www.lyx.org/ -\lyxformat 413 +#LyX 2.1 created this file. For more info see http://www.lyx.org/ +\lyxformat 469 \begin_document \begin_header \textclass tufte-handout @@ -12,15 +12,15 @@ \font_roman default \font_sans helvet \font_typewriter default +\font_math auto \font_default_family default \use_non_tex_fonts false \font_sc false \font_osf false \font_sf_scale 100 \font_tt_scale 100 - \graphics default -\default_output_format default +\default_output_format pdf2 \output_sync 0 \bibtex_command default \index_command default @@ -38,15 +38,24 @@ \pdf_pdfusetitle true \papersize default \use_geometry true -\use_amsmath 1 -\use_esint 1 -\use_mhchem 1 -\use_mathdots 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 numerical +\biblio_style plain \use_bibtopic false \use_indices false \paperorientation portrait \suppress_date false +\justification true \use_refstyle 0 \notefontcolor #0000ff \index Index @@ -89,6 +98,17 @@ fpl package manager. \end_layout +\begin_layout Plain Layout + +\series bold +Note 2 +\series default +: If you wish to compile to PDF with plain LaTeX (instead of pdfTeX), there + is currently a bug in the Tufte class that causes errors. + You can add the class option 'nols' to get rid of the errors, but this + also removes letterspacing, an important part of the Tufte design. +\end_layout + \end_inset @@ -552,7 +572,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. @@ -657,7 +677,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 ( @@ -728,7 +748,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. @@ -796,7 +816,7 @@ status open \align center \begin_inset Tabular - + @@ -942,7 +962,7 @@ Sidenote width \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 -- 2.39.2