diff --git a/History.txt b/History.txt index c03eaab..8ef3a00 100644 --- a/History.txt +++ b/History.txt @@ -1,3 +1,12 @@ +== 3.0.0 / 2009-05-17 +* Created a Tufte-book document class. +* Added optional offset parameter to sienotes, cite, etc. so their vertical + position can be adjusted manually. +* Added support for the `bidi' package with XeLateX. +* Adjusted font sizes and spacing to more closely reflect those used in + Tufte's books. +* Captions are now typeset in the margin as in Tufte's books. + == 2.0.1 / 2008-11-16 * Now works with footmisc version > 5.4. diff --git a/Manifest.txt b/Manifest.txt index 1045345..941ad78 100644 --- a/Manifest.txt +++ b/Manifest.txt @@ -8,7 +8,19 @@ graphics/sine.asy graphics/hilbertcurves.pdf graphics/helix.pdf graphics/sine.pdf +graphics/be-contents.pdf +graphics/be-title.pdf +graphics/ei-contents.pdf +graphics/ei-title.pdf +graphics/vdqi-contents.pdf +graphics/vdqi-title.pdf +graphics/ve-contents.pdf +graphics/ve-title.pdf sample-handout.bib sample-handout.pdf sample-handout.tex tufte-handout.cls +sample-book.pdf +sample-book.tex +tufte-book.cls +tufte-common.sty diff --git a/README.txt b/README.txt index 4750c86..b065531 100644 --- a/README.txt +++ b/README.txt @@ -76,7 +76,7 @@ high quality patches, and you'll find yourself a developer on this project. == License -Copyright 2007-2008 Bil Kleb, Bill Wood, and Kevin Godby +Copyright 2007-2009 Bil Kleb, Bill Wood, and Kevin Godby Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/release b/release index 8003c64..a1a3324 100755 --- a/release +++ b/release @@ -1,7 +1,9 @@ -#!/bin/sh +#!/bin/bash -package='tufte-latex' -class='tufte-handout.cls' +PACKAGE_NAME='tufte-latex' +CLASS_FILES="tufte-handout.cls tufte-book.cls" +STYLE_FILES="tufte-common.sty" +SOURCE_FILES="sample-handout.{pdf,tex,bib} sample-book.{pdf,tex}" # Exit on first error: @@ -15,38 +17,53 @@ then exit 1 fi -version=$1 +CLASS_DATE=`date +%Y/%m/%d` # (with slashes) +VERSION=$1 -if ! echo $version | grep -E "^[0-9]+\.[0-9]+\.[0-9]+$" +if ! echo $VERSION | grep -E "^[0-9]+\.[0-9]+\.[0-9]+$" then echo "VERSION should be of the form 1.2.5 (major.minor.revision)" exit 1 fi -if ! grep -q $version $class +for CLASS in $CLASS_FILES; do + if ! grep -q $VERSION $CLASS + then + echo "Error: version skew. '$VERSION' does not match that in $CLASS" + grep -H ProvidesClass $CLASS + exit 1 + fi + if ! grep -q $CLASS_DATE $CLASS; then + echo "Error: date skew. '$CLASS_DATE' does not match that in $CLASS" + grep -H ProvidesClass $CLASS + exit 1 + fi +done + +for STYLE in $STYLE_FILES; do + if ! grep -q $VERSION $STYLE + then + echo "Error: version skew. '$VERSION' does not match that in $STYLE" + grep -H ProvidesPackage $STYLE + exit 1 + fi + if ! grep -q $CLASS_DATE $STYLE + then + echo "Error: date skew. '$CLASS_DATE' does not match that in $STYLE" + grep -H ProvidesPackage $STYLE + exit 1 + fi +done + +if ! grep -q $VERSION History.txt then - echo "Error: version skew. '$version' does not match that in class" - grep -H ProvidesClass $class + echo "Error: no release notes for '$VERSION' found in History.txt" + grep -H $VERSION History.txt exit 1 fi -if ! grep -q $version History.txt -then - echo "Error: no release notes for '$version' found in History.txt" - grep -H $version History.txt - exit 1 -fi -class_date=`date +%Y/%m/%d` # (with slashes) - -if ! grep -q $class_date $class -then - echo "Error: date skew. '$class_date' does not match that in class" - grep -H ProvidesClass $class - exit 1 -fi - -history_date=`date +%Y-%m-%d` # (with dashes) +HISTORY_DATE=`date +%Y-%m-%d` # (with dashes) if ! grep -q $history_date History.txt then @@ -55,7 +72,7 @@ then exit 1 fi -# Refresh sample document +# Refresh sample documents pdflatex sample-handout > refresh-sample.log bibtex sample-handout >> refresh-sample.log @@ -63,9 +80,18 @@ pdflatex sample-handout >> refresh-sample.log pdflatex sample-handout >> refresh-sample.log rm -f sample-handout.{aux,log,out,blg,bbl} refresh-sample.log +pdflatex sample-book > refresh-sample.log +bibtex sample-book >> refresh-sample.log +texindy --language english sample-book.idx >> refresh-sample.log +pdflatex sample-book >> refresh-sample.log +pdflatex sample-book >> refresh-sample.log +rm -f sample-bok.{aux,log,out,blg,bbl,idx,ind,toc} refresh-sample.log + + # To ease googlecode upload, make a distinct version of sample-handout: cp sample-handout.pdf sample-handout-$version.pdf +cp sample-book.pdf sample-book-$version.pdf # Make bundle for Google Code release @@ -82,13 +108,13 @@ TDS_SRC_DIR=$TDS_DIR/source/latex/$package/ mkdir -p $TDS_DIR $TDS_TEX_DIR $TDS_DOC_DIR $TDS_SRC_DIR -cp tufte-handout.cls $TDS_TEX_DIR/ +cp $CLASS_FILES $STYLE_FILES $TDS_TEX_DIR/ -cp History.txt README.txt sample-handout.{pdf,tex,bib} $TDS_DOC_DIR/ +cp History.txt README.txt sample-handout.{pdf,tex,bib} sample-book.{pdf,tex} $TDS_DOC_DIR/ mkdir $TDS_DOC_DIR/graphics cp graphics/* $TDS_DOC_DIR/graphics/ -cp tufte-handout.cls sample-handout.{tex,bib} $TDS_SRC_DIR/ +cp $CLASS_FILES $STYLE_FILES $SOURCE_FILES $TDS_SRC_DIR/ ( cd $TDS_DIR && zip -rq ../../$package-$version/$package.tds.zip * ) rm -fr pkg/$package diff --git a/sample-book.pdf b/sample-book.pdf index c4c1ff7..63eda72 100644 Binary files a/sample-book.pdf and b/sample-book.pdf differ diff --git a/sample-book.tex b/sample-book.tex index a65d92d..eb95dec 100644 --- a/sample-book.tex +++ b/sample-book.tex @@ -347,7 +347,7 @@ contain chapters---they're not broken into parts. \end{figure*} -\section{Typefaces}\label{sec:typefaces}\index{typefaces} +\section{Typefaces}\label{sec:typefaces1}\index{typefaces} \index{fonts|see{typefaces}} Tufte's books primarily use two typefaces: Bembo and Gill Sans. Bembo is used @@ -385,7 +385,7 @@ The following font sizes are defined by the \TL classes: \label{tab:font-sizes} \end{table} -\section{Headings}\label{sec:headings}\index{headings} +\section{Headings}\label{sec:headings1}\index{headings} Tufte's books include the following heading levels: parts, chapters,\sidenote{Parts and chapters are defined for the \texttt{tufte\-book} @@ -449,15 +449,13 @@ demonstration of the features of the Tufte-\LaTeX\ document classes and a style guide to their use. \section{Page Layout}\label{sec:page-layout} -\subsection{Headings}\label{sec:headings} +\subsection{Headings}\label{sec:headings}\index{headings} This style provides \textsc{a}- and \textsc{b}-heads (that is, \Verb|\section| and \Verb|\subsection|), demonstrated above. If you need more than two levels of section headings, you'll have to define -them yourself at the moment;\sidenote{See see ``\nameref{sec:defining-sections}'' on -page~\pageref{sec:defining-sections} for help with defining more heading -levels.} there are no pre-defined styles for anything below a -\Verb|\subsection|. As Bringhurst points out in \textit{The Elements of +them yourself at the moment; there are no pre-defined styles for anything below +a \Verb|\subsection|. As Bringhurst points out in \textit{The Elements of Typographic Style},\cite{Bringhurst2005} you should ``use as many levels of headings as you need: no more, and no fewer.'' @@ -641,7 +639,7 @@ Lorem ipsum dolor sit amet... \section{Typography}\label{sec:typography} -\subsection{Typefaces}\label{sec:typefaces} +\subsection{Typefaces}\label{sec:typefaces}\index{typefaces} If the Palatino, \textsf{Helvetica}, and \texttt{Bera Mono} typefaces are installed, this style will use them automatically. Otherwise, we'll fall back on the Computer Modern typefaces. diff --git a/sample-handout.pdf b/sample-handout.pdf index ee3fc73..1d9b9cc 100644 Binary files a/sample-handout.pdf and b/sample-handout.pdf differ diff --git a/tufte-book.cls b/tufte-book.cls index f3fa49e..99ff6df 100644 --- a/tufte-book.cls +++ b/tufte-book.cls @@ -1,6 +1,6 @@ \NeedsTeXFormat{LaTeX2e}[1994/06/01] -\ProvidesClass{tufte-book}[2008/11/16 v3.0.0 Tufte-book class] +\ProvidesClass{tufte-book}[2009/05/17 v3.0.0 Tufte-book class] \PassOptionsToPackage{book}{tufte-common} diff --git a/tufte-common.sty b/tufte-common.sty index 64a501d..5fb3310 100644 --- a/tufte-common.sty +++ b/tufte-common.sty @@ -1,6 +1,6 @@ \NeedsTeXFormat{LaTeX2e}[1994/06/01] -\ProvidesPackage{tufte-common}[2008/11/16 v3.0.0 Common code for the Tufte-LaTeX styles] +\ProvidesPackage{tufte-common}[2009/05/17 v3.0.0 Common code for the Tufte-LaTeX styles] %% % We use the `xifthen' package to handle our package option switches diff --git a/tufte-handout.cls b/tufte-handout.cls index 5783dd0..ca9ab63 100644 --- a/tufte-handout.cls +++ b/tufte-handout.cls @@ -1,6 +1,6 @@ \NeedsTeXFormat{LaTeX2e}[1994/06/01] -\ProvidesClass{tufte-handout}[2008/11/16 v3.0.0 Tufte-handout class] +\ProvidesClass{tufte-handout}[2009/05/17 v3.0.0 Tufte-handout class] %% % The symmetric option forces twoside.