1\NeedsTeXFormat{LaTeX2e}[1994/06/01] 2 3\ProvidesClass{tufte-book}[2015/06/30 v3.5.3 Tufte-book class] 4 5%% 6% Declare we're tufte-book 7\newcommand{\@tufte@class}{book}% the base LaTeX class (defaults to the article/handout style) 8\newcommand{\@tufte@pkgname}{tufte-book}% the name of the package (defaults to tufte-handout) 9 10%% 11% Load the common style elements 12\input{tufte-common.def} 13 14 15%% 16% Set up any book-specific stuff now 17 18%% 19% The front matter in Tufte's /Beautiful Evidence/ contains everything up 20% to the opening page of Chapter 1. The running heads, when they appear, 21% contain only the (arabic) page number in the outside corner. 22%\newif\if@mainmatter \@mainmattertrue 23\renewcommand\frontmatter{% 24 \if@openright% 25 \cleardoublepage% 26 \else% 27 \clearpage% 28 \fi% 29 \@mainmatterfalse% 30 \pagenumbering{arabic}% 31 %\pagestyle{plain}% 32 \fancyhf{}% 33 \ifthenelse{\boolean{@tufte@twoside}}% 34 {\fancyhead[LE,RO]{\thepage}}% 35 {\fancyhead[RE,RO]{\thepage}}% 36} 37 38 39%% 40% The main matter in Tufte's /Beautiful Evidence/ doesn't restart the page 41% numbering---it continues where it left off in the front matter. 42\renewcommand\mainmatter{% 43 \if@openright% 44 \cleardoublepage% 45 \else% 46 \clearpage% 47 \fi% 48 \@mainmattertrue% 49 \fancyhf{}% 50 \ifthenelse{\boolean{@tufte@twoside}}% 51 {% two-side 52 \renewcommand{\chaptermark}[1]{\markboth{##1}{}}% 53 \fancyhead[LE]{\thepage\quad\smallcaps{\newlinetospace{\plaintitle}}}% book title 54 \fancyhead[RO]{\smallcaps{\newlinetospace{\leftmark}}\quad\thepage}% chapter title 55 }% 56 {% one-side 57 \fancyhead[RE,RO]{\smallcaps{\newlinetospace{\plaintitle}}\quad\thepage}% book title 58 }% 59} 60 61 62%% 63% The back matter contains appendices, indices, glossaries, endnotes, 64% biliographies, list of contributors, illustration credits, etc. 65\renewcommand\backmatter{% 66 \if@openright% 67 \cleardoublepage% 68 \else% 69 \clearpage% 70 \fi% 71 \@mainmatterfalse% 72} 73 74%% 75% Only show the chapter titles in the table of contents 76\setcounter{tocdepth}{0} 77 78%% 79% If there is a `tufte-book-local.sty' file, load it. 80 81\IfFileExists{tufte-book-local.tex}{% 82 \@tufte@info@noline{Loading tufte-book-local.tex}% 83 \input{tufte-book-local}% 84}{} 85 86%% 87% End of file 88\endinput 89