| 1 |
% The following header can be used for producing mirrored output on |
| 2 |
% printers (phototypesetters don't need this) with T. Rokicki's DVIPS |
| 3 |
% driver. |
| 4 |
% |
| 5 |
% USAGE: |
| 6 |
% dvips -hmirr.hd [other_options1] <file_name> [other_options2] |
| 7 |
% |
| 8 |
% WARNING: |
| 9 |
% Be careful when you use DVIDVI or DVI2DVI in the context of global |
| 10 |
% specials like `\special{landscape}'; fortunately, `\special{landscape}' |
| 11 |
% works smoothly with DVIDVI but not with DVI2DVI (Sawatzki's |
| 12 |
% implementation)---you have to use `\special{landscape}' on every |
| 13 |
% page that appears to be the first one after splitting a DVI by DVI2DVI; |
| 14 |
% the same technique concerns both DVIDVI and DVI2DVI if user-defined |
| 15 |
% global specials are used. |
| 16 |
% |
| 17 |
% In the case of difficulties mail to: |
| 18 |
% Piotr Pianowski or Bogus\l{}aw Jackowski or Piotr Strzelczyk |
| 19 |
% [email protected] |
| 20 |
% |
| 21 |
userdict begin |
| 22 |
/bop-hook {-1 1 scale isls {vsize} {hsize} ifelse neg 0 translate} def |
| 23 |
/appenddef { |
| 24 |
% use this for lengthening `bop-hook' in your TeX program, i.e., |
| 25 |
% instead of \special{ps:... userdict begin ... /bop-hook{...}def ... end} |
| 26 |
% say \special{ps:... userdict begin ... /bop-hook{...}appenddef ... end} |
| 27 |
/stuff-to-append exch def /to-append exch def |
| 28 |
[/to-append load where {pop /to-append load load aload pop} if |
| 29 |
/stuff-to-append load aload pop] cvx /to-append load exch store |
| 30 |
} def |
| 31 |
end |
| 32 |
|