Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

343 Zeilen
11KB

  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. % Prints the month name (e.g., January) and the year (e.g., 2008)
  46. \newcommand{\monthyear}{%
  47. \ifcase\month\or January\or February\or March\or April\or May\or June\or
  48. July\or August\or September\or October\or November\or
  49. December\fi\space\number\year
  50. }
  51. % Prints an epigraph and speaker in sans serif, all-caps type.
  52. \newcommand{\openepigraph}[2]{%
  53. %\sffamily\fontsize{14}{16}\selectfont
  54. \begin{fullwidth}
  55. \sffamily\large
  56. \begin{doublespace}
  57. \noindent\allcaps{#1}\\% epigraph
  58. \noindent\allcaps{#2}% author
  59. \end{doublespace}
  60. \end{fullwidth}
  61. }
  62. % Inserts a blank page
  63. \newcommand{\blankpage}{%
  64. \newpage~\\\thispagestyle{empty}\newpage
  65. }
  66. \begin{document}
  67. % Front matter
  68. \frontmatter
  69. % r.1 blank page
  70. \blankpage
  71. % v.2 epigraphs
  72. \newpage\thispagestyle{empty}
  73. \openepigraph{%
  74. The public is more familiar with bad design than good design.
  75. It is, in effect, conditioned to prefer bad design,
  76. because that is what it lives with.
  77. The new becomes threatening, the old reassuring.
  78. }{Paul Rand%, {\itshape Design, Form, and Chaos}
  79. }
  80. \vfill
  81. \openepigraph{%
  82. A designer knows that he has achieved perfection
  83. not when there is nothing left to add,
  84. but when there is nothing left to take away.
  85. }{Antoine de St-Expurey}
  86. \vfill
  87. \openepigraph{%
  88. \ldots the designer of a new system must not only be the implementor and the first
  89. large-scale user; the designer should also write the first user manual\ldots
  90. If I had not participated fully in all these activities,
  91. literally hundreds of improvements would never have been made,
  92. because I would never have thought of them or perceived
  93. why they were important.
  94. }{Donald E. Knuth}
  95. % r.3 full title page
  96. \maketitle
  97. % v.4 copyright page
  98. \newpage
  99. \begin{fullwidth}
  100. ~\vfill
  101. \thispagestyle{empty}
  102. \setlength{\parindent}{0pt}
  103. \setlength{\parskip}{\baselineskip}
  104. Copyright \copyright\ \the\year\ \thanklessauthor
  105. \par\smallcaps{Published by \thanklesspublisher}
  106. \par\smallcaps{tufte-latex.googlecode.com}
  107. \par Licensed under the Apache License, Version 2.0 (the ``License''); you may not
  108. use this file except in compliance with the License. You may obtain a copy
  109. of the License at \url{http://www.apache.org/licenses/LICENSE-2.0}. Unless
  110. required by applicable law or agreed to in writing, software distributed
  111. under the License is distributed on an \smallcaps{``AS IS'' BASIS, WITHOUT
  112. WARRANTIES OR CONDITIONS OF ANY KIND}, either express or implied. See the
  113. License for the specific language governing permissions and limitations
  114. under the License.
  115. \par\textit{First printing, \monthyear}
  116. \end{fullwidth}
  117. % r.5 contents
  118. \tableofcontents
  119. % r.7 dedication
  120. \cleardoublepage
  121. ~\vfill
  122. \begin{doublespace}
  123. \noindent\fontsize{18}{22}\selectfont\itshape
  124. \nohyphenation
  125. Dedicated to those who appreciate \LaTeX{}
  126. and the work of \mbox{Edward R.~Tufte}
  127. and \mbox{Donald E.~Knuth}.
  128. \end{doublespace}
  129. \vfill
  130. \vfill
  131. % r.9 introduction
  132. \cleardoublepage
  133. \chapter*{Introduction}
  134. This sample book discusses the design of Edward Tufte's
  135. %books\cite{Tufte2001}\cite{Tufte1990}\cite{Tufte1997}\cite{Tufte2006}
  136. books\cite{Tufte2001,Tufte1990,Tufte1997,Tufte2006}
  137. and the use of the \texttt{tufte-book} document class.
  138. \lipsum[1-20]
  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\textwidth]{graphics/vdqi-title.pdf}}
  242. %\hfill
  243. %\fbox{\includegraphics[width=0.45\textwidth]{graphics/ei-title.pdf}}
  244. %\\\vspace{\baselineskip}
  245. %\fbox{\includegraphics[width=0.45\textwidth]{graphics/ve-title.pdf}}
  246. %\hfill
  247. %\fbox{\includegraphics[width=0.45\textwidth]{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\textwidth]{graphics/vdqi-contents.pdf}}
  255. %\hfill
  256. %\fbox{\includegraphics[width=0.45\textwidth]{graphics/ei-contents.pdf}}
  257. %\\\vspace{\baselineskip}
  258. %\fbox{\includegraphics[width=0.45\textwidth]{graphics/ve-contents.pdf}}
  259. %\hfill
  260. %\fbox{\includegraphics[width=0.45\textwidth]{graphics/be-contents.pdf}}
  261. %\end{figure*}
  262. \lipsum[21-50]
  263. \chapter{On the Use of the \texttt{tufte-book} Document Class}
  264. \label{ch:tufte-book}
  265. The \texttt{tufte-book} document class is modeled primarily on \BE, since
  266. it's the most recent of Tufte's books and the design is (presumably) more
  267. refined.
  268. This choice of book design has a few important implications:
  269. \begin{inparaenum}
  270. \item there are no parts---the highest heading level is the chapter;
  271. \item the use of a sans serif font for many design elements (especially the
  272. title page and epigraphs); and
  273. \item \emph{something else---yyy}.
  274. \end{inparaenum}
  275. \lipsum[1-25]
  276. %%
  277. % The back matter contains appendices, indices, glossaries, etc.
  278. \backmatter
  279. \bibliography{sample-handout}
  280. \bibliographystyle{plainnat}
  281. \end{document}