From 020dc32381060046058d544a5b590d68f7d30449 Mon Sep 17 00:00:00 2001
From: Karl Berry <karl@freefriends.org>
Date: Sat, 3 Dec 2011 16:31:06 +0000
Subject: tufte-latex from tds.zip

git-svn-id: svn://tug.org/texlive/trunk@24733 c570f23f-e606-0410-a88d-b1316a301751
---
 .../source/latex/tufte-latex/tufte-book.cls        | 80 ++++++++++++++++++++++
 1 file changed, 80 insertions(+)
 create mode 100644 Master/texmf-dist/source/latex/tufte-latex/tufte-book.cls

(limited to 'Master/texmf-dist/source/latex/tufte-latex/tufte-book.cls')

diff --git a/Master/texmf-dist/source/latex/tufte-latex/tufte-book.cls b/Master/texmf-dist/source/latex/tufte-latex/tufte-book.cls
new file mode 100644
index 00000000000..11d50157b0b
--- /dev/null
+++ b/Master/texmf-dist/source/latex/tufte-latex/tufte-book.cls
@@ -0,0 +1,80 @@
+\NeedsTeXFormat{LaTeX2e}[1994/06/01]
+
+\ProvidesClass{tufte-book}[2009/12/11 v3.5.0 Tufte-book class]
+
+%%
+% Declare we're tufte-book
+\newcommand{\@tufte@class}{book}% the base LaTeX class (defaults to the article/handout style)
+\newcommand{\@tufte@pkgname}{tufte-book}% the name of the package (defaults to tufte-handout)
+
+%%
+% Load the common style elements
+\input{tufte-common.def}
+
+
+%%
+% Set up any book-specific stuff now
+
+%%
+% The front matter in Tufte's /Beautiful Evidence/ contains everything up
+% to the opening page of Chapter 1.  The running heads, when they appear,
+% contain only the (arabic) page number in the outside corner.
+%\newif\if@mainmatter \@mainmattertrue
+\renewcommand\frontmatter{%
+  \cleardoublepage%
+  \@mainmatterfalse%
+  \pagenumbering{arabic}%
+  %\pagestyle{plain}%
+  \fancyhf{}%
+  \ifthenelse{\boolean{@tufte@twoside}}%
+    {\fancyhead[LE,RO]{\thepage}}%
+    {\fancyhead[RE,RO]{\thepage}}%
+}
+
+
+%%
+% The main matter in Tufte's /Beautiful Evidence/ doesn't restart the page
+% numbering---it continues where it left off in the front matter.
+\renewcommand\mainmatter{%
+  \cleardoublepage%
+  \@mainmattertrue%
+  \fancyhf{}%
+  \ifthenelse{\boolean{@tufte@twoside}}%
+    {% two-side
+      \renewcommand{\chaptermark}[1]{\markboth{##1}{}}%
+      \fancyhead[LE]{\thepage\quad\smallcaps{\newlinetospace{\plaintitle}}}% book title
+      \fancyhead[RO]{\smallcaps{\newlinetospace{\leftmark}}\quad\thepage}% chapter title
+    }%
+    {% one-side
+      \fancyhead[RE,RO]{\smallcaps{\newlinetospace{\plaintitle}}\quad\thepage}% book title
+    }%
+}
+
+
+%%
+% The back matter contains appendices, indices, glossaries, endnotes,
+% biliographies, list of contributors, illustration credits, etc.
+\renewcommand\backmatter{%
+  \if@openright%
+    \cleardoublepage%
+  \else%
+    \clearpage%
+  \fi%
+  \@mainmatterfalse%
+}
+
+%%
+% Only show the chapter titles in the table of contents
+\setcounter{tocdepth}{0}
+
+%%
+% If there is a `tufte-book-local.sty' file, load it.
+
+\IfFileExists{tufte-book-local.tex}
+  {\input{tufte-book-local}
+   \TufteInfoNL{Loading tufte-book-local.tex}}
+  {}
+
+%%
+% End of file
+\endinput
-- 
cgit v1.2.3

