소스 검색

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


불러오는 중...
취소
저장