summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/semioneside/semioneside.sty
blob: fd614a8b36b6e74cfe3718a7feef8464040d4078 (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 `semioneside.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% semioneside.dtx  (with options: `package')
%% 
%% This is a generated file.
%% 
%% Copyright (C) 2005 by Stephan Hennig <stephanhennig@arcor.de>
%% 
%% This file may be distributed and/or modified under the conditions of
%% the LaTeX Project Public License, either version 1.2 of this license
%% or (at your option) any later version.  The latest version of this
%% license is in:
%% 
%%    http://www.latex-project.org/lppl.txt
%% 
%% and version 1.2 or later is part of all distributions of LaTeX version
%% 1999/12/01 or later.
%% 
\NeedsTeXFormat{LaTeX2e}[1999/12/01]
\ProvidesPackage{semioneside}
  [2005/09/19 v0.41 Put only special contents on left-hand pages (SH)]
\RequirePackage{afterpage}
\newcommand*{\leftpagecontent}{}
\newcommand*{\leftpagecontrolstart}{%
  \thispagestyle{empty}%
}
\newcommand*{\leftpagecontrolend}{}
\newcommand*{\rightpagecontrolstart}{%
  \addtocounter{page}{-1}%
}
\newcommand*{\semioneside@longempty}{}
\newcommand*{\semioneside@skipleftpage}{}
\newcommand*{\semioneside@skipleftpagetemplate}{%
  \ifx\leftpagecontent\empty%
    \let\leftpagecontent\null%
  \fi%
  \ifx\leftpagecontent\semioneside@longempty%
    \let\leftpagecontent\null%
  \fi%
  \leftpagecontrolstart%
  \leftpagecontent%
  \leftpagecontrolend%
  \clearpage%
  \rightpagecontrolstart%
  \afterpage{\semioneside@skipleftpage}%
  \global\let\leftpagecontent\empty%
}
\newcommand*{\semionesideon}{%
  \global\let\semioneside@skipleftpage\semioneside@skipleftpagetemplate%
  \afterpage{\semioneside@skipleftpage}%
}
\newcommand*{\semionesideoff}{%
  \global\let\semioneside@skipleftpage\empty%
  \global\let\leftpagecontent\empty%
}
\semionesideon
\endinput
%%
%% End of file `semioneside.sty'.