浏览代码

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 年前
父节点
当前提交
ae9104eed3
共有 1 个文件被更改,包括 11 次插入3 次删除
  1. +11
    -3
      tufte-book.cls

+ 11
- 3
tufte-book.cls 查看文件

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


正在加载...
取消
保存