Преглед изворни кода

* Preparing for 3.0.0 release.

git-svn-id: https://tufte-latex.googlecode.com/svn/trunk@96 516e2f36-ce3a-0410-bea4-1d4a03f5df72
master
Kevin M. Godby пре 16 година
родитељ
комит
aac9d8234b
10 измењених фајлова са 85 додато и 40 уклоњено
  1. +9
    -0
      History.txt
  2. +12
    -0
      Manifest.txt
  3. +1
    -1
      README.txt
  4. +54
    -28
      release
  5. BIN
      sample-book.pdf
  6. +6
    -8
      sample-book.tex
  7. BIN
      sample-handout.pdf
  8. +1
    -1
      tufte-book.cls
  9. +1
    -1
      tufte-common.sty
  10. +1
    -1
      tufte-handout.cls

+ 9
- 0
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 == 2.0.1 / 2008-11-16
* Now works with footmisc version > 5.4. * Now works with footmisc version > 5.4.




+ 12
- 0
Manifest.txt Прегледај датотеку

@@ -8,7 +8,19 @@ graphics/sine.asy
graphics/hilbertcurves.pdf graphics/hilbertcurves.pdf
graphics/helix.pdf graphics/helix.pdf
graphics/sine.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.bib
sample-handout.pdf sample-handout.pdf
sample-handout.tex sample-handout.tex
tufte-handout.cls tufte-handout.cls
sample-book.pdf
sample-book.tex
tufte-book.cls
tufte-common.sty

+ 1
- 1
README.txt Прегледај датотеку

@@ -76,7 +76,7 @@ high quality patches, and you'll find yourself a developer on this project.


== License == 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"); Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. you may not use this file except in compliance with the License.


+ 54
- 28
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: # Exit on first error:


@@ -15,38 +17,53 @@ then
exit 1 exit 1
fi 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 then
echo "VERSION should be of the form 1.2.5 (major.minor.revision)" echo "VERSION should be of the form 1.2.5 (major.minor.revision)"
exit 1 exit 1
fi 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 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 exit 1
fi 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 if ! grep -q $history_date History.txt
then then
@@ -55,7 +72,7 @@ then
exit 1 exit 1
fi fi


# Refresh sample document
# Refresh sample documents


pdflatex sample-handout > refresh-sample.log pdflatex sample-handout > refresh-sample.log
bibtex 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 pdflatex sample-handout >> refresh-sample.log
rm -f sample-handout.{aux,log,out,blg,bbl} 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: # To ease googlecode upload, make a distinct version of sample-handout:


cp sample-handout.pdf sample-handout-$version.pdf cp sample-handout.pdf sample-handout-$version.pdf
cp sample-book.pdf sample-book-$version.pdf


# Make bundle for Google Code release # 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 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 mkdir $TDS_DOC_DIR/graphics
cp graphics/* $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 * ) ( cd $TDS_DIR && zip -rq ../../$package-$version/$package.tds.zip * )
rm -fr pkg/$package rm -fr pkg/$package



+ 6
- 8
sample-book.tex Прегледај датотеку

@@ -347,7 +347,7 @@ contain chapters---they're not broken into parts.
\end{figure*} \end{figure*}




\section{Typefaces}\label{sec:typefaces}\index{typefaces}
\section{Typefaces}\label{sec:typefaces1}\index{typefaces}
\index{fonts|see{typefaces}} \index{fonts|see{typefaces}}


Tufte's books primarily use two typefaces: Bembo and Gill Sans. Bembo is used 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} \label{tab:font-sizes}
\end{table} \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, Tufte's books include the following heading levels: parts,
chapters,\sidenote{Parts and chapters are defined for the \texttt{tufte\-book} 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. and a style guide to their use.


\section{Page Layout}\label{sec:page-layout} \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, This style provides \textsc{a}- and \textsc{b}-heads (that is,
\Verb|\section| and \Verb|\subsection|), demonstrated above. \Verb|\section| and \Verb|\subsection|), demonstrated above.


If you need more than two levels of section headings, you'll have to define 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 Typographic Style},\cite{Bringhurst2005} you should ``use as many levels of
headings as you need: no more, and no fewer.'' headings as you need: no more, and no fewer.''


@@ -641,7 +639,7 @@ Lorem ipsum dolor sit amet...


\section{Typography}\label{sec:typography} \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 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 will use them automatically. Otherwise, we'll fall back on the Computer Modern
typefaces. typefaces.


BIN
sample-handout.pdf Прегледај датотеку


+ 1
- 1
tufte-book.cls Прегледај датотеку

@@ -1,6 +1,6 @@
\NeedsTeXFormat{LaTeX2e}[1994/06/01] \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} \PassOptionsToPackage{book}{tufte-common}


+ 1
- 1
tufte-common.sty Прегледај датотеку

@@ -1,6 +1,6 @@
\NeedsTeXFormat{LaTeX2e}[1994/06/01] \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 % We use the `xifthen' package to handle our package option switches


+ 1
- 1
tufte-handout.cls Прегледај датотеку

@@ -1,6 +1,6 @@
\NeedsTeXFormat{LaTeX2e}[1994/06/01] \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. % The symmetric option forces twoside.


Loading…
Откажи
Сачувај