\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 % % This file is placed in the public domain. No provision is made for % support of the use of the facilities herein. % \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