您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

84 行
2.0KB

  1. \NeedsTeXFormat{LaTeX2e}[1994/06/01]
  2. \ProvidesClass{tufte-book}[2008/11/16 v3.0.0 Tufte-book class]
  3. \PassOptionsToPackage{book}{tufte-common}
  4. \DeclareOption*{% pass options to tufte-common package and the article class
  5. \PassOptionsToPackage{\CurrentOption}{tufte-common}
  6. \PassOptionsToClass{\CurrentOption}{book}
  7. \PackageInfo{tufte-book}{Passing \CurrentOption\space to `book' class}
  8. }
  9. \ProcessOptions
  10. \LoadClass{book}
  11. \RequirePackage{tufte-common}
  12. %%
  13. % Set up any book-specific stuff now
  14. %%
  15. % The front matter in Tufte's /Beautiful Evidence/ contains everything up
  16. % to the opening page of Chapter 1. The running heads, when they appear,
  17. % contain only the (arabic) page number in the outside corner.
  18. %\newif\if@mainmatter \@mainmattertrue
  19. \renewcommand\frontmatter{%
  20. \cleardoublepage%
  21. \@mainmatterfalse%
  22. \pagenumbering{arabic}%
  23. %\pagestyle{plain}%
  24. \fancyhf{}%
  25. \ifthenelse{\boolean{@tufte@twoside}}%
  26. {\fancyhead[LE,RO]{\thepage}}%
  27. {\fancyhead[RE,RO]{\thepage}}%
  28. }
  29. %%
  30. % The main matter in Tufte's /Beautiful Evidence/ doesn't restart the page
  31. % numbering---it continues where it left off in the front matter.
  32. \renewcommand\mainmatter{%
  33. \cleardoublepage%
  34. \@mainmattertrue%
  35. \fancyhf{}%
  36. \ifthenelse{\boolean{@tufte@twoside}}%
  37. {% two-side
  38. \renewcommand{\chaptermark}[1]{\markboth{##1}{}}%
  39. \fancyhead[LE]{\thepage\quad\smallcaps{\plaintitle}}% book title
  40. \fancyhead[RO]{\smallcaps{\leftmark}\quad\thepage}% chapter title
  41. }%
  42. {% one-side
  43. \fancyhead[RE,RO]{\smallcaps{\plaintitle}\quad\thepage}% book title
  44. }%
  45. }
  46. %%
  47. % The back matter contains appendices, indices, glossaries, endnotes,
  48. % biliographies, list of contributors, illustration credits, etc.
  49. \renewcommand\backmatter{%
  50. \if@openright%
  51. \cleardoublepage%
  52. \else%
  53. \clearpage%
  54. \fi%
  55. \@mainmatterfalse%
  56. }
  57. %%
  58. % Only show the chapter titles in the table of contents
  59. \setcounter{tocdepth}{0}
  60. %%
  61. % If there is a `tufte-book-local.sty' file, load it.
  62. \IfFileExists{tufte-book-local.tex}
  63. {\input{tufte-book-local}}
  64. {}
  65. %%
  66. % End of file
  67. \endinput