diff options
author | Karl Berry <karl@freefriends.org> | 2009-05-18 23:25:02 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2009-05-18 23:25:02 +0000 |
commit | 7c769b8e95cd5bd87da30c618e5198d6d12461e1 (patch) | |
tree | 6518993393c24294d5449771ed8e0bf2098b25dd /Master/texmf-dist/tex/latex/tufte-latex/tufte-book.cls | |
parent | fec32543c0ec1c6ff61656ca2662d38390745593 (diff) |
tufte-latex update (17may09)
git-svn-id: svn://tug.org/texlive/trunk@13216 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/tufte-latex/tufte-book.cls')
-rw-r--r-- | Master/texmf-dist/tex/latex/tufte-latex/tufte-book.cls | 83 |
1 files changed, 83 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/tufte-latex/tufte-book.cls b/Master/texmf-dist/tex/latex/tufte-latex/tufte-book.cls new file mode 100644 index 00000000000..99ff6dfa219 --- /dev/null +++ b/Master/texmf-dist/tex/latex/tufte-latex/tufte-book.cls @@ -0,0 +1,83 @@ +\NeedsTeXFormat{LaTeX2e}[1994/06/01] + +\ProvidesClass{tufte-book}[2009/05/17 v3.0.0 Tufte-book class] + + +\PassOptionsToPackage{book}{tufte-common} +\DeclareOption*{% pass options to tufte-common package and the article class + \PassOptionsToPackage{\CurrentOption}{tufte-common} + \PassOptionsToClass{\CurrentOption}{book} + \PackageInfo{tufte-book}{Passing \CurrentOption\space to `book' class} +} +\ProcessOptions + +\LoadClass{book} + +\RequirePackage{tufte-common} + + +%% +% 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{\plaintitle}}% book title + \fancyhead[RO]{\smallcaps{\leftmark}\quad\thepage}% chapter title + }% + {% one-side + \fancyhead[RE,RO]{\smallcaps{\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}} + {} + +%% +% End of file +\endinput |