diff options
author | Karl Berry <karl@freefriends.org> | 2006-01-13 00:06:27 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2006-01-13 00:06:27 +0000 |
commit | ee1ff2bb4140aea37878fa83966a57e76c642a3a (patch) | |
tree | 1477e14406c65d8d67c81f8539f433c280c77c43 /Master/texmf-dist/tex/latex/semioneside | |
parent | 494cb3bcc61e2972dafbaf4ec4d5bc025c9cbd22 (diff) |
semioneside
git-svn-id: svn://tug.org/texlive/trunk@1308 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/semioneside')
-rw-r--r-- | Master/texmf-dist/tex/latex/semioneside/semioneside.sty | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/semioneside/semioneside.sty b/Master/texmf-dist/tex/latex/semioneside/semioneside.sty new file mode 100644 index 00000000000..fd614a8b36b --- /dev/null +++ b/Master/texmf-dist/tex/latex/semioneside/semioneside.sty @@ -0,0 +1,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'. |