summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/emptypage/emptypage.sty
blob: 557c68049582bb552cafac974ad8673e5cfa5b95 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
%%
%% This is file `emptypage.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% emptypage.dtx  (with options: `package')
%% 
%% IMPORTANT NOTICE:
%% 
%% For the copyright see the source file.
%% 
%% Any modified versions of this file must be renamed
%% with new filenames distinct from emptypage.sty.
%% 
%% For distribution of the original source see the terms
%% for copying and modification in the file emptypage.dtx.
%% 
%% This generated file may be distributed as long as the
%% original source files, as listed above, are part of the
%% same distribution. (The sources need not necessarily be
%% in the same archive or directory.)
\NeedsTeXFormat{LaTeX2e}[1999/12/01]
\ProvidesPackage{emptypage}
    [2009/07/09 v1.1 Suppress page numbers and headings on empty pages]
\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
\endinput
%%
%% End of file `emptypage.sty'.