summaryrefslogtreecommitdiff
path: root/Master/texmf-dist
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2008-12-21 22:45:25 +0000
committerKarl Berry <karl@freefriends.org>2008-12-21 22:45:25 +0000
commit714b3ac11ccf450b0ec5c35e742cfbca6051951c (patch)
treeb32b6d7742670b93749751fbac24c65b25db6bf2 /Master/texmf-dist
parentabdeda1e2792cbb1305e6f8481154c4e2dfc4ae9 (diff)
new package emptypage (21dec08)
git-svn-id: svn://tug.org/texlive/trunk@11676 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist')
-rw-r--r--Master/texmf-dist/doc/latex/emptypage/README11
-rw-r--r--Master/texmf-dist/tex/latex/emptypage/emptypage.sty50
2 files changed, 61 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/emptypage/README b/Master/texmf-dist/doc/latex/emptypage/README
new file mode 100644
index 00000000000..d73062aa2c9
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/emptypage/README
@@ -0,0 +1,11 @@
+
+emptypage -- Suppress page numbers and headings on empty pages (K. Wette, 2008/12/20)
+
+This package suppresses page numbers and headings from appearing on empty pages. The code for doing this is not mine
+and already exists in various places; all I've done is create a convenient stand-alone package for it. By default the
+next non-empty page will be an odd-numbered page; use the 'even' package option to change to an even-numbered page.
+
+Usage:
+ \usepackage{emptypage}
+or
+ \usepackage[even]{emptypage}
diff --git a/Master/texmf-dist/tex/latex/emptypage/emptypage.sty b/Master/texmf-dist/tex/latex/emptypage/emptypage.sty
new file mode 100644
index 00000000000..52206054a48
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/emptypage/emptypage.sty
@@ -0,0 +1,50 @@
+%%
+%% emptypage.sty (K. Wette, 2008/12/20)
+%%
+
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{emptypage}[2008/12/20 Suppress page numbers and headings on empty pages]
+
+\makeatletter
+
+\def\emptypage@emptypage{
+ \hbox{}
+ \thispagestyle{empty}
+ \newpage
+ \if@twocolumn
+ \hbox{}
+ \newpage
+ \fi
+}
+
+\DeclareOption{odd}{
+ \def\cleardoublepage{
+ \clearpage
+ \if@twoside
+ \ifodd\c@page
+ % do nothing
+ \else
+ \emptypage@emptypage
+ \fi
+ \fi
+ }
+}
+
+\DeclareOption{even}{
+ \def\cleardoublepage{
+ \clearpage
+ \if@twoside
+ \ifodd\c@page
+ \emptypage@emptypage
+ \else
+ % do nothing
+ \fi
+ \fi
+ }
+}
+
+\ExecuteOptions{odd}
+
+\ProcessOptions
+
+\makeatother