diff options
author | Karl Berry <karl@freefriends.org> | 2006-01-12 23:52:24 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2006-01-12 23:52:24 +0000 |
commit | 16b64696d398d8d52f59c053e91078bed894ac86 (patch) | |
tree | 0bcc8e9bfe315c2e6504df997f5ab63c3be1d31a /Master/texmf-dist/tex/latex/booklet/booklet.sty | |
parent | 4dba39261e79016273de3205cf595d844a48f105 (diff) |
booklet
git-svn-id: svn://tug.org/texlive/trunk@720 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/booklet/booklet.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/booklet/booklet.sty | 82 |
1 files changed, 82 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/booklet/booklet.sty b/Master/texmf-dist/tex/latex/booklet/booklet.sty new file mode 100644 index 00000000000..67d71a0f7bf --- /dev/null +++ b/Master/texmf-dist/tex/latex/booklet/booklet.sty @@ -0,0 +1,82 @@ +%% +%% This is file `booklet.sty', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% booklet.dtx (with options: `usc') +%% +%% ----------------------------------------------------------------- +%% Author: Peter Wilson (Herries Press) herries dot press at earthlink dot net +%% Copyright 2000 --- 2005 Peter R. Wilson +%% +%% This work may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License, either +%% version 1.3 of this license or (at your option) any +%% later version. +%% The latest version of the license is in +%% http://www.latex-project.org/lppl.txt +%% and version 1.3 or later is part of all distributions of +%% LaTeX version 2003/06/01 or later. +%% +%% This work has the LPPL maintenance status "author-maintained". +%% +%% This work consists of the files listed in the README file. +%% ----------------------------------------------------------------- +%% +\NeedsTeXFormat{LaTeX2e} +\ProvidesPackage{booklet}[2005/03/23 v0.7 booklet printing] + +\newcommand*{\twoup@end}{\endinput} + +\newdimen\pageseplength +\newdimen\pagesepwidth +\newdimen\pagesepoffset + +\newif\ifsidebyside + \sidebysidetrue + +\newif\ifuselandscape + \uselandscapefalse +\newif\ifprintoption + \printoptionfalse + +\newcounter{signature} +\newcounter{sigcount} + \setcounter{sigcount}{0} +\newcommand*{\pagespersignature}[1]{\setcounter{signature}{#1}} + \pagespersignature{32} + +\def\magstepminus#1{% + \ifcase#1 \@m\or 833\or 694\or 579\or 482\or 401\fi\relax} + +\newcommand*{\target}[3]{} +\newcommand*{\source}[3]{} +\newcommand*{\setpdftargetpages}{} +\newcommand*{\setdvipstargetpages}{} + +\newcommand*{\targettopbottom}{} + +\newcommand*{\twoupemptypage}{} +\newcommand*{\twoupclearpage}{} + +\newcommand*{\checkforlandscape}{% + \ifx\ifuselandscape\ifprintoption + \uselandscapefalse\else\uselandscapetrue\fi} + +\DeclareOption{print}{\printoptiontrue\def\twoup@end{}} +\DeclareOption{noprint}{\printoptionfalse\def\twoup@end{\endinput}} +\DeclareOption{landscape}{\uselandscapetrue} +\DeclareOption*{\PassOptionsToPackage{\CurrentOption}{bkltprnt}} +\ProcessOptions\relax +\ifuselandscape + \PassOptionsToPackage{landscape}{bkltprnt} +\fi + +\twoup@end + +\RequirePackage{bkltprnt} + +\endinput +%% +%% End of file `booklet.sty'. |