Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

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