Selaa lähdekoodia

Fixed bug with \frontmatter and \mainmatter and openany option.

Previously, the \frontmatter and \mainmatter commands would call
\cleardoublepage regardless of the use of the openany or openright
options. This meant that a blank page may appear despire the openany
option being specified.

This patch fixes the \frontmatter and \mainmatter commands so that they
respect the openany option and insert a single page break in that case.
master
Kevin M. Godby 10 vuotta sitten
vanhempi
commit
ae9104eed3
1 muutettua tiedostoa jossa 11 lisäystä ja 3 poistoa
  1. +11
    -3
      tufte-book.cls

+ 11
- 3
tufte-book.cls Näytä tiedosto

@@ -1,6 +1,6 @@
\NeedsTeXFormat{LaTeX2e}[1994/06/01]

\ProvidesClass{tufte-book}[2015/06/21 v3.5.2 Tufte-book class]
\ProvidesClass{tufte-book}[2015/06/30 v3.5.3 Tufte-book class]

%%
% Declare we're tufte-book
@@ -21,7 +21,11 @@
% contain only the (arabic) page number in the outside corner.
%\newif\if@mainmatter \@mainmattertrue
\renewcommand\frontmatter{%
\cleardoublepage%
\if@openright%
\cleardoublepage%
\else%
\clearpage%
\fi%
\@mainmatterfalse%
\pagenumbering{arabic}%
%\pagestyle{plain}%
@@ -36,7 +40,11 @@
% The main matter in Tufte's /Beautiful Evidence/ doesn't restart the page
% numbering---it continues where it left off in the front matter.
\renewcommand\mainmatter{%
\cleardoublepage%
\if@openright%
\cleardoublepage%
\else%
\clearpage%
\fi%
\@mainmattertrue%
\fancyhf{}%
\ifthenelse{\boolean{@tufte@twoside}}%


Loading…
Peruuta
Tallenna