ソースを参照

To incorporate most of Kevn Godby's patches, reformat for symmetry, and inject \@tufteh@marginfont for consistency.

git-svn-id: https://tufte-latex.googlecode.com/svn/trunk@17 516e2f36-ce3a-0410-bea4-1d4a03f5df72
master
Bil Kleb 18年前
コミット
6fcee040fa
4個のファイルの変更61行の追加35行の削除
  1. +8
    -0
      History.txt
  2. バイナリ
      sample-handout.pdf
  3. +2
    -0
      sample-handout.tex
  4. +51
    -35
      tufte-handout.cls

+ 8
- 0
History.txt ファイルの表示

@@ -1,3 +1,11 @@
== 1.2.0 / 2007-10-20

* Enhancements
* Added a4paper option (Kevin Godby)
* Have \margin{note,figure,table} use \@tufteh@marginfont
* Bug fix
* \@tufteh@overhang typo in figure*, table*, and fullwidth environments (Kevin Godby)

== 1.1.0 / 2007-10-18

* To add some missing environments and commands:


バイナリ
sample-handout.pdf ファイルの表示


+ 2
- 0
sample-handout.tex ファイルの表示

@@ -48,6 +48,8 @@ idea marks the beginning of the ascent to the new status quo.
stevenmsmith.com.}
\includegraphics{satir_graph}

\newpage

\newthought{The Bateson Double Bind}%
\sidenote{Gregory Bateson, D. D. Jackson, J. Haley, and J. H. Weakland,
``Toward a Theory of Schizophrenia'', {\it Behavioral Science},


+ 51
- 35
tufte-handout.cls ファイルの表示

@@ -1,18 +1,28 @@
\NeedsTeXFormat{LaTeX2e}[1994/06/01]

\ProvidesClass{tufte-handout}[2007/10/18 v1.1.0 Tufte-handout class]
\ProvidesClass{tufte-handout}[2007/10/20 v1.2.0 Tufte-handout class]

\DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}%
\typeout{NOTE: Passing ``\CurrentOption" option on to the
standard LaTeX book class}}
%%
% a4paper option

\newif\if@tufteh@afourpaper \@tufteh@afourpaperfalse
\DeclareOption{a4paper}{\@tufteh@afourpapertrue}

% Note: should probably specify options not supported like Mittelbach's aipproc.cls

\DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}}
\ProcessOptions

\LoadClass[11pt]{article}%

%%
% Set page layout geometry -- someone please submit a patch to make letterpaper optional!
% Set page layout geometry

\RequirePackage[letterpaper,includemp,width=6.5in,marginparsep=0.375in,marginparwidth=2in]{geometry}
\if@tufteh@afourpaper
\RequirePackage[a4paper,includemp,width=170mm,marginparsep=10mm,marginparwidth=50mm]{geometry}
\else
\RequirePackage[letterpaper,includemp,width=6.5in,marginparsep=0.375in,marginparwidth=2in]{geometry}
\fi

%%
% Separation marginpars by a line's worth of space.
@@ -128,63 +138,69 @@
%%
% Sidenote: "Where God meant footnotes to go." --Tufte

\newcommand{\sidenote}[2][-0.8\baselineskip]%
{\footnotemark%
\marginpar{\@tufteh@marginfont
\vspace*{#1}
\textsuperscript{\thefootnote}%
\@tufteh@raggedright #2}}
\newcommand{\sidenote}[2]%
[-0.8\baselineskip]%
{\footnotemark%
\marginpar{\@tufteh@marginfont
\vspace*{#1}
\textsuperscript{\thefootnote}%
\@tufteh@raggedright #2}}

%%
% Sidenote without the footnote mark

\providecommand\marginnote[1]{\marginpar{\footnotesize\raggedright #1}}
\providecommand\marginnote[1]%
{\marginpar{\@tufteh@marginfont\raggedright #1}}

%%
% Margin figure
% Margin figure -- if anyone can make this an environment instead -- patch welcome!

\newcommand{\marginfigure}[2][-1.2ex]%
{\marginpar{\def\@captype{figure}
\normalfont\scriptsize
\newcommand{\marginfigure}[2]%
[-1.2ex]%
{\marginpar{\@tufteh@marginfont
\def\@captype{figure}
\vspace*{#1}
\@tufteh@raggedright #2}}

%%
% Margin table

\newcommand{\margintable}[2][-1.2ex]%
{\marginpar{\def\@captype{table}
\normalfont\scriptsize
\newcommand{\margintable}[2]%
[-1.2ex]%
{\marginpar{\@tufteh@marginfont
\def\@captype{table}
\vspace*{#1}
\@tufteh@raggedright #2}}

%%
% Full-width figure

\renewenvironment{figure*}[1][htbp]
{\@float{figure}[#1]
\begin{adjustwidth}{}{-\tufteh@overhang}%
\begin{minipage}{\linewidth}}
{ \end{minipage}%
\end{adjustwidth}%
\end@float}
\renewenvironment{figure*}[1]%
[htbp]%
{\@float{figure}[#1]%
\begin{adjustwidth}{}{-\@tufteh@overhang}%
\begin{minipage}{\linewidth}}%
{\end{minipage}%
\end{adjustwidth}%
\end@float}

%%
% Full-width table

\renewenvironment{table*}[1][htbp]
{\@float{table}[#1]
\begin{adjustwidth}{}{-\tufteh@overhang}%
\begin{minipage}{\linewidth}}
{ \end{minipage}%
\end{adjustwidth}%
\end@float}
\renewenvironment{table*}[1]
[htbp]%
{\@float{table}[#1]%
\begin{adjustwidth}{}{-\@tufteh@overhang}%
\begin{minipage}{\linewidth}}%
{\end{minipage}%
\end{adjustwidth}%
\end@float}

%%
% Full-page-width area

\newenvironment{fullwidth}
{\begin{adjustwidth}{}{-\tufteh@overhang}}%
{\begin{adjustwidth}{}{-\@tufteh@overhang}}%
{\end{adjustwidth}}

%%


読み込み中…
キャンセル
保存