diff options
author | Karl Berry <karl@freefriends.org> | 2006-01-13 00:02:40 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2006-01-13 00:02:40 +0000 |
commit | 4530251d47d70075137e113ec18cbd16cd2df6c4 (patch) | |
tree | 31ba4a73f3327eaab0a7955b3db66cd8fe2ea17d /Master/texmf-dist/tex/latex/piff/duplicat.sty | |
parent | 3b9367cb8e86c1924aead1ba1b1156ac6832d44d (diff) |
piff
git-svn-id: svn://tug.org/texlive/trunk@1197 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/piff/duplicat.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/piff/duplicat.sty | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/piff/duplicat.sty b/Master/texmf-dist/tex/latex/piff/duplicat.sty new file mode 100644 index 00000000000..917580d636f --- /dev/null +++ b/Master/texmf-dist/tex/latex/piff/duplicat.sty @@ -0,0 +1,30 @@ +\NeedsTeXFormat{LaTeX2e} +\ProvidesPackage{duplicat} +% M.Piff@sheffield.ac.uk +% This package marks each page of the dvi file with its sequence number. +% Useful if there are duplicate page numbers in the output, eg, +% 1, 2, 3, 1, 2, 3, 4, 5, 6, ... +% become +% 1.1, 2.2, 3.3, 1.4, 2.5, 3.6, 4.7, 5.8, 6.9, ... +% +% These numbers do not appear in the page number itself, but can be used +% in the driver command to select a page range, eg, in emTeX, use +% dvihplj filename /b1.4 /e 4.7 +% +% If you are using dvips, this package is unnecessary, since it uses the +% convention that the avove pages have names +% 1, 2, 3, 1.1, 2.1, 3.1, 4, 5, 6, ... +% where .0 is optional (first occurrence of that page number). +% dvips -p1.1 -l4 filename + +\let\duplicat@tmp\relax +\DeclareOption{dvips}{\let\duplicat@tmp\endinput} +\ProcessOptions + +\duplicat@tmp +\let\duplicat@tmp\undefined + +\global\let\dup@shipout\shipout +\gdef\shipout{\global\advance\count1 by 1\relax\dup@shipout} + +\endinput |