summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/emptypage
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/tex/latex/emptypage
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/tex/latex/emptypage')
-rw-r--r--Master/texmf-dist/tex/latex/emptypage/emptypage.sty50
1 files changed, 50 insertions, 0 deletions
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