Parcourir la source

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 il y a 10 ans
Parent
révision
ae9104eed3
1 fichiers modifiés avec 11 ajouts et 3 suppressions
  1. +11
    -3
      tufte-book.cls

+ 11
- 3
tufte-book.cls Voir le fichier

@@ -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}}%


Chargement…
Annuler
Enregistrer