You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

431 lines
14KB

  1. \documentclass{tufte-book}
  2. %%
  3. % Book metadata
  4. \title{A Tufte-Style Book\thanks{Thanks to Edward R.~Tufte for his inspiration.}}
  5. \author[The Tufte-LaTeX Developers]{The Tufte-LaTeX\ Developers}
  6. \publisher{Publisher of This Book}
  7. %%
  8. % If they're installed, use Bergamo and Chantilly from www.fontsite.com.
  9. % They're clones of Bembo and Gill Sans, respectively.
  10. %\IfFileExists{bergamo.sty}{\usepackage[osf]{bergamo}}{}% Bembo
  11. %\IfFileExists{chantill.sty}{\usepackage{chantill}}{}% Gill Sans
  12. %\usepackage{microtype}
  13. %%
  14. % Just some sample text
  15. \usepackage{lipsum}
  16. %%
  17. % For nicely typeset tabular material
  18. \usepackage{booktabs}
  19. %%
  20. % For graphics / images
  21. \usepackage{graphicx}
  22. %%
  23. % Prints argument within hanging parentheses (i.e., parentheses that take
  24. % up no horizontal space). Useful in tabular environments.
  25. \newcommand{\hangp}[1]{\makebox[0pt][r]{(}#1\makebox[0pt][l]{)}}
  26. %%
  27. % Prints an asterisk that takes up no horizontal space.
  28. % Useful in tabular environments.
  29. \newcommand{\hangstar}{\makebox[0pt][l]{*}}
  30. %%
  31. % Prints a trailing space in a smart way.
  32. \usepackage{xspace}
  33. %%
  34. % Some shortcuts for Tufte's book titles. The lowercase commands will
  35. % produce the initials of the book title in italics. The all-caps commands
  36. % will print out the full title of the book in italics.
  37. \newcommand{\vdqi}{\textit{VDQI}\xspace}
  38. \newcommand{\ei}{\textit{EI}\xspace}
  39. \newcommand{\ve}{\textit{VE}\xspace}
  40. \newcommand{\be}{\textit{BE}\xspace}
  41. \newcommand{\VDQI}{\textit{The Visual Display of Quantitative Information}\xspace}
  42. \newcommand{\EI}{\textit{Envisioning Information}\xspace}
  43. \newcommand{\VE}{\textit{Visual Explanations}\xspace}
  44. \newcommand{\BE}{\textit{Beautiful Evidence}\xspace}
  45. \newcommand{\TL}{Tufte-\LaTeX\xspace}
  46. % Prints the month name (e.g., January) and the year (e.g., 2008)
  47. \newcommand{\monthyear}{%
  48. \ifcase\month\or January\or February\or March\or April\or May\or June\or
  49. July\or August\or September\or October\or November\or
  50. December\fi\space\number\year
  51. }
  52. % Prints an epigraph and speaker in sans serif, all-caps type.
  53. \newcommand{\openepigraph}[2]{%
  54. %\sffamily\fontsize{14}{16}\selectfont
  55. \begin{fullwidth}
  56. \sffamily\large
  57. \begin{doublespace}
  58. \noindent\allcaps{#1}\\% epigraph
  59. \noindent\allcaps{#2}% author
  60. \end{doublespace}
  61. \end{fullwidth}
  62. }
  63. % Inserts a blank page
  64. \newcommand{\blankpage}{\newpage\hbox{}\thispagestyle{empty}\newpage}
  65. \usepackage{units}
  66. % Typesets the font size, leading, and measure in the form of 10/12x26 pc.
  67. \newcommand{\measure}[3]{#1/#2$\times$\unit[#3]{pc}}
  68. \begin{document}
  69. % Front matter
  70. \frontmatter
  71. % r.1 blank page
  72. \blankpage
  73. % v.2 epigraphs
  74. \newpage\thispagestyle{empty}
  75. \openepigraph{%
  76. The public is more familiar with bad design than good design.
  77. It is, in effect, conditioned to prefer bad design,
  78. because that is what it lives with.
  79. The new becomes threatening, the old reassuring.
  80. }{Paul Rand%, {\itshape Design, Form, and Chaos}
  81. }
  82. \vfill
  83. \openepigraph{%
  84. A designer knows that he has achieved perfection
  85. not when there is nothing left to add,
  86. but when there is nothing left to take away.
  87. }{Antoine de St-Expurey}
  88. \vfill
  89. \openepigraph{%
  90. \ldots the designer of a new system must not only be the implementor and the first
  91. large-scale user; the designer should also write the first user manual\ldots
  92. If I had not participated fully in all these activities,
  93. literally hundreds of improvements would never have been made,
  94. because I would never have thought of them or perceived
  95. why they were important.
  96. }{Donald E. Knuth}
  97. % r.3 full title page
  98. \maketitle
  99. % v.4 copyright page
  100. \newpage
  101. \begin{fullwidth}
  102. ~\vfill
  103. \thispagestyle{empty}
  104. \setlength{\parindent}{0pt}
  105. \setlength{\parskip}{\baselineskip}
  106. Copyright \copyright\ \the\year\ \thanklessauthor
  107. \par\smallcaps{Published by \thanklesspublisher}
  108. \par\smallcaps{tufte-latex.googlecode.com}
  109. \par Licensed under the Apache License, Version 2.0 (the ``License''); you may not
  110. use this file except in compliance with the License. You may obtain a copy
  111. of the License at \url{http://www.apache.org/licenses/LICENSE-2.0}. Unless
  112. required by applicable law or agreed to in writing, software distributed
  113. under the License is distributed on an \smallcaps{``AS IS'' BASIS, WITHOUT
  114. WARRANTIES OR CONDITIONS OF ANY KIND}, either express or implied. See the
  115. License for the specific language governing permissions and limitations
  116. under the License.
  117. \par\textit{First printing, \monthyear}
  118. \end{fullwidth}
  119. % r.5 contents
  120. \tableofcontents
  121. % r.7 dedication
  122. \cleardoublepage
  123. ~\vfill
  124. \begin{doublespace}
  125. \noindent\fontsize{18}{22}\selectfont\itshape
  126. \nohyphenation
  127. Dedicated to those who appreciate \LaTeX{}
  128. and the work of \mbox{Edward R.~Tufte}
  129. and \mbox{Donald E.~Knuth}.
  130. \end{doublespace}
  131. \vfill
  132. \vfill
  133. % r.9 introduction
  134. \cleardoublepage
  135. \chapter*{Introduction}
  136. This sample book discusses the design of Edward Tufte's
  137. books\cite{Tufte2001,Tufte1990,Tufte1997,Tufte2006}
  138. and the use of the \texttt{tufte-book} and \texttt{sample-handout} document classes.
  139. %%
  140. % Start the main matter (normal chapters)
  141. \mainmatter
  142. \chapter{The Design of Tufte's Books}
  143. \label{ch:tufte-design}
  144. \newthought{The pages} of a book are usually divided into three major
  145. sections: the front matter (also called preliminary matter or prelim), the
  146. main matter (the core text of the book), and the back matter (or end
  147. matter).
  148. \newthought{The front matter} of a book refers to all of the material that
  149. comes before the main text. The following table from shows a list of
  150. material that appears in the front matter of \VDQI, \EI, \VE, and \BE
  151. along with its page number. Page numbers that appear in parentheses refer
  152. to folios that do not have a printed page number (but they are still
  153. counted in the page number sequence).
  154. \bigskip
  155. \begin{minipage}{\textwidth}
  156. \begin{center}
  157. \begin{tabular}{lcccc}
  158. \toprule
  159. & \multicolumn{4}{c}{Books} \\
  160. \cmidrule(l){2-5}
  161. Page content & \vdqi & \ei & \ve & \be \\
  162. \midrule
  163. Blank half title page & \hangp{1} & \hangp{1} & \hangp{1} & \hangp{1} \\
  164. Frontispiece\footnotemark{}
  165. & \hangp{2} & \hangp{2} & \hangp{2} & \hangp{2} \\
  166. Full title page & \hangp{3} & \hangp{3} & \hangp{3} & \hangp{3} \\
  167. Copyright page & \hangp{4} & \hangp{4} & \hangp{4} & \hangp{4} \\
  168. Contents & \hangp{5} & \hangp{5} & \hangp{5} & \hangp{5} \\
  169. %Blank & -- & \hangp{6} & \hangp{6} & \hangp{6} \\
  170. Dedication & \hangp{6} & \hangp{7} & \hangp{7} & 7 \\
  171. %Blank & -- & \hangp{8} & -- & \hangp{8} \\
  172. Epigraph & -- & -- & \hangp{8} & -- \\
  173. Introduction & \hangp{7} & \hangp{9} & \hangp{9} & 9 \\
  174. \bottomrule
  175. \end{tabular}
  176. \end{center}
  177. \end{minipage}
  178. \vspace{-7\baselineskip}\footnotetext{The contents of this page vary from book to book. In
  179. \vdqi this page is blank; in \ei and \ve this page holds a frontispiece;
  180. and in \be this page contains three epigraphs.}
  181. \vspace{7\baselineskip}
  182. \bigskip
  183. The design of the front matter in Tufte's books varies slightly from the
  184. traditional design of front matter. First, the pages in front matter are
  185. traditionally numbered with lowercase roman numerals (e.g., i, ii, iii,
  186. iv,~\ldots). Second, the front matter page numbering sequence is usually
  187. separate from the main matter page numbering. That is, the page numbers
  188. restart at 1 when the main matter begins. In contrast, Tufte has
  189. enumerated his pages with arabic numerals that share the same page counting
  190. sequence as the main matter.
  191. There are also some variations in design across Tufte's four books. The
  192. page opposite the full title page (labeled ``frontispiece'' in the above
  193. table) has different content in each of the books. In \VDQI, this page is
  194. blank; in \EI and \VE, this page holds a frontispiece; and in \BE, this
  195. page contains three epigraphs.
  196. The dedication appears on page~6 in \vdqi (opposite the introduction), and
  197. is placed on its own spread in the other books. In \ve, an epigraph shares
  198. the spread with the opening page of the introduction.
  199. None of the page numbers (folios) of the front matter are expressed except in
  200. \be, where the folios start to appear on the dedication page.
  201. \newthought{The full title page} of each of the books varies slightly in
  202. design. In all the books, the author's name appears at the top of the
  203. page, the title it set just above the center line, and the publisher is
  204. printed along the bottom margin. Some of the differences are outlined in
  205. the following table.
  206. \bigskip
  207. \begin{center}
  208. \footnotesize
  209. \begin{tabular}{lllll}
  210. \toprule
  211. Feature & \vdqi & \ei & \ve & \be \\
  212. \midrule
  213. Author & & & & \\
  214. \quad Typeface & serif & serif & serif & sans serif \\
  215. \quad Style & italics & italics & italics & upright, caps \\
  216. \quad Size & 24 pt & 20 pt & 20 pt & 20 pt \\
  217. \addlinespace
  218. Title & & & & \\
  219. \quad Typeface & serif & serif & serif & sans serif \\
  220. \quad Style & upright & italics & upright & upright, caps \\
  221. \quad Size & 36 pt & 48 pt & 48 pt & 36 pt \\
  222. \addlinespace
  223. Subtitle & & & & \\
  224. \quad Typeface & -- & -- & serif & -- \\
  225. \quad Style & -- & -- & upright & -- \\
  226. \quad Size & -- & -- & 20 pt & -- \\
  227. \addlinespace
  228. Edition & & & & \\
  229. \quad Typeface & sans serif & -- & -- & -- \\
  230. \quad Style & upright, caps & -- & -- & -- \\
  231. \quad Size & 14 pt & -- & -- & -- \\
  232. \addlinespace
  233. Publisher & & & & \\
  234. \quad Typeface & serif & serif & serif & sans serif \\
  235. \quad Style & italics & italics & italics & upright, caps \\
  236. \quad Size & 14 pt & 14 pt & 14 pt & 14 pt \\
  237. \bottomrule
  238. \end{tabular}
  239. \end{center}
  240. \begin{figure*}[p]
  241. \fbox{\includegraphics[width=0.45\linewidth]{graphics/vdqi-title.pdf}}
  242. \hfill
  243. \fbox{\includegraphics[width=0.45\linewidth]{graphics/ei-title.pdf}}
  244. \\\vspace{\baselineskip}
  245. \fbox{\includegraphics[width=0.45\linewidth]{graphics/ve-title.pdf}}
  246. \hfill
  247. \fbox{\includegraphics[width=0.45\linewidth]{graphics/be-title.pdf}}
  248. \end{figure*}
  249. \newthought{The tables of contents} in Tufte's books give us our first
  250. glimpse of the structure of the main matter. \VDQI is split into two
  251. parts, each containing some number of chapters. His other three books only
  252. contain chapters---they're not broken into parts.
  253. \begin{figure*}[p]
  254. \fbox{\includegraphics[width=0.45\linewidth]{graphics/vdqi-contents.pdf}}
  255. \hfill
  256. \fbox{\includegraphics[width=0.45\linewidth]{graphics/ei-contents.pdf}}
  257. \\\vspace{\baselineskip}
  258. \fbox{\includegraphics[width=0.45\linewidth]{graphics/ve-contents.pdf}}
  259. \hfill
  260. \fbox{\includegraphics[width=0.45\linewidth]{graphics/be-contents.pdf}}
  261. \end{figure*}
  262. \section{Typefaces}
  263. Tufte's books primarily use two typefaces: Bembo and Gill Sans. Bembo is used
  264. for the headings and body text, while Gill Sans is used for the title page and
  265. opening epigraphs in \BE.
  266. Since neither Bembo nor Gill Sans are available in default \LaTeX{}
  267. installations, the \TL document classes default to using Palatino and
  268. Helvetica, respectively. In addition, the Bera Mono typeface is used for
  269. \texttt{monospaced} type.
  270. The following font sizes are defined by the \TL classes:
  271. \begin{table}[h]
  272. \footnotesize%
  273. \begin{center}
  274. \begin{tabular}{lccl}
  275. \toprule
  276. \LaTeX{} size & Font size & Leading & Used for \\
  277. \midrule
  278. \verb+\tiny+ & 5 & 6 & sidenote numbers \\
  279. \verb+\scriptsize+ & 7 & 8 & --- \\
  280. \verb+\footnotesize+ & 8 & 10 & sidenotes, captions \\
  281. \verb+\small+ & 9 & 12 & quote, quotation, and verse environments \\
  282. \verb+\normalsize+ & 10 & 14 & body text \\
  283. \verb+\large+ & 11 & 15 & \textsc{b}-heads \\
  284. \verb+\Large+ & 12 & 16 & \textsc{a}-heads, \textsc{toc} entries, author, date \\
  285. \verb+\LARGE+ & 14 & 18 & handout title \\
  286. \verb+\huge+ & 20 & 30 & chapter heads \\
  287. \verb+\Huge+ & 24 & 36 & part titles \\
  288. \bottomrule
  289. \end{tabular}
  290. \end{center}
  291. \caption{A list of \LaTeX{} font sizes as defined by the \TL document classes.}
  292. \label{tab:font-sizes}
  293. \end{table}
  294. \section{Headings}
  295. Tufte's books include the following heading levels: parts,
  296. chapters,\sidenote{Parts and chapters are defined for the \texttt{tufte\-book}
  297. class only.} sections, subsections, and paragraphs. Not defined by default
  298. are: sub-subsections and subparagraphs.
  299. \begin{table}[h]
  300. \begin{center}
  301. \footnotesize%
  302. \begin{tabular}{lcr}
  303. \toprule
  304. Heading & Style & Size \\
  305. \midrule
  306. Part & roman & \measure{24}{36}{40} \\
  307. Chapter & italic & \measure{20}{30}{40} \\
  308. Section & italic & \measure{12}{16}{26} \\
  309. Subsection & italic & \measure{11}{15}{26} \\
  310. Paragraph & italic & 10/14 \\
  311. \bottomrule
  312. \end{tabular}
  313. \end{center}
  314. \caption{Heading styles used in \BE.}
  315. \label{tab:heading-styles}
  316. \end{table}
  317. \section{Environments}
  318. The following characteristics define the various environments:
  319. \begin{table}[h]
  320. \begin{center}
  321. \footnotesize%
  322. \begin{tabular}{lcl}
  323. \toprule
  324. Environment & Font size & Notes \\
  325. \midrule
  326. Body text & \measure{10}{14}{26} & \\
  327. Block quote & \measure{9}{12}{24} & Block indent (left and right) by \unit[1]{pc} \\
  328. Sidenotes & \measure{8}{10}{12} & Sidenote number is set inline, followed by word space \\
  329. Captions & \measure{8}{10}{12} & \\
  330. \bottomrule
  331. \end{tabular}
  332. \end{center}
  333. \caption{Environment styles used in \BE.}
  334. \label{tab:environment-styles}
  335. \end{table}
  336. \chapter{On the Use of the \texttt{tufte-book} Document Class}
  337. \label{ch:tufte-book}
  338. The \texttt{tufte-book} document class is modeled primarily on \BE, since
  339. it's the most recent of Tufte's books and the design is (presumably) more
  340. refined.
  341. %This choice of book design has a few important implications:
  342. %\begin{inparaenum}
  343. %\item there are no parts---the highest heading level is the chapter;
  344. %\item the use of a sans serif font for many design elements (especially the
  345. %title page and epigraphs); and
  346. %\item \emph{something else---yyy}.
  347. %\end{inparaenum}
  348. %%
  349. % The back matter contains appendices, indices, glossaries, etc.
  350. \backmatter
  351. \bibliography{sample-handout}
  352. \bibliographystyle{plainnat}
  353. \end{document}