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.

434 line
14KB

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