Debian Codegraph @

texk/dvipsk/contrib/volker/README

raw
1 NOTE S Rahtz 1998/01/18: renamed files to suite 8+3 <name>.cfg style
2 ********************************************************************
3
4 Release 1.13, 21 Aug 1995
5 Release 1.12, 02 Mar 1995
6 Release 1.0, 20 Feb 1995
7
8 This is a set of files which can be used with dvips to control certain
9 parameters of the printer, like simplex/duplex printing, or screen
10 frequencies of images.
11
12 Put together by Volker Kuhlmann, [email protected].
13 No copyright. Freely distributable. If you make additions, please send
14 me a copy.
15
16
17 LIST OF FILES
18 =============
19
20 README This file.
21 config.* Configuration files and header files for dvips. Special
22 format which serves both purposes.
23
24
25 INSTALLATION
26 ============
27
28 Copy these files into a directory which is searched by dvips both for
29 configuration files and for header files. dvips looks in $TEXCONFIG for
30 configuration files, and in $DVIPSHEADERS for header files. For details
31 please see the dvips documentation.
32
33
34 USAGE
35 =====
36
37 dvips reads the instructions in a configuration file <configfilename>
38 with the -P option:
39
40 dvips -P <configfilename>
41
42 All these configuration files contain the PostScript code for the
43 respective operation as well, and can be used as header file as they are.
44
45 Now to the stuff provided:
46
47 -P simplex On a duplex printer, force printing in simplex mode. On
48 a simplex printer, this will be ignored.
49 -P duplong On a duplex printer, force duplex printing with binding
50 on the long edge. On a simplex printer, this will be
51 ignored.
52 -P dupshort On a duplex printer, force duplex printing with binding
53 on the short edge. On a simplex printer, this will be
54 ignored.
55 -P a3 Print on A3 paper.
56 Note: this is just a demo - use "-t a3" instead!
57 -P inv Print all pages inverted, i.e. white letters on black
58 background.
59 Note: this currently does not work properly. Any
60 hints/fixes greatly appreciated!
61 -P screenN Print images with a screen frequency of N lpi at
62 45 degrees.
63 N = {70, 80, 85, 90, 100, 110, 120, 130, 140, 150}
64 -P screen100-0 Print images with a screen frequency of 100lpi
65 at 0 degrees.
66
67 Note: When working with screen frequencies, it is possible that
68 turning the printer off and back on solves the problem of the
69 screen commands not having any effect.
70
71
72 CONTROLLING SCREEN FREQUENCIES
73 ==============================
74
75 Various PostScript commands for controlling the screen frequencies of
76 images exist, but not all work on all printers. See fragments of
77 PostScript code and comments below. The form working on most printers is
78
79 LPI DEGREES {FUNCTION} setscreen
80
81 Insert numbers for LPI and DEGREES, and a function for FUNCTION about
82 which I only know (right or wrong?):
83
84 "Should read 2 values from the stack (x, y coordinates in a
85 halftone cell), and return one in the range -1 to 1. The return
86 values determine the order in which pixels within a halftone
87 cell are whitened to produce any desired shade of gray."
88
89 The simplest function is {pop}, creating a "linescreen" pattern. There
90 is also a function "Dot" (currently used) and "Ellipse". For any other
91 frequencies/angles/functions put the instructions in a file, and load
92 the file with
93
94 dvips -h <filename>
95
96 Thanks to [email protected] (Olavi Sakari) for some help, and the "Dot"
97 and "Ellipse" code.
98
99 Notes follow:
100
101
102 %currentscreen 3 1 roll pop pop 70 45 3 -1 roll setscreen
103 % Works on HP LJ3Si, HP LJ4m. Ignored on HP LJ4mv (VK).
104
105
106 %currentscreen 3 1 roll pop pop 70 45 3 -1 roll sethalftone
107 % Ignored on HP LJ4mv (VK).
108
109
110 %70 45 {pop} setscreen
111 % Produces a funny, 1-diagonal pattern ("linescreen") on HP LJ4mv (VK).
112
113
114 % "Dot":
115 %70 45 {abs exch abs 2 copy add 1 gt {1 sub dup mul exch 1 sub dup mul add 1
116 % sub }{dup mul exch dup mul add 1 exch sub }ifelse} setscreen
117 % Works on HP LJ3Si, HP LJ4m, HP LJ4mv (VK).
118
119
120 % "Ellipse":
121 %70 45 {dup 5 mul 8 div mul exch dup mul exch add sqrt 1 exch sub} setscreen
122 % Works on HP LJ4mv (VK).
123
124
125 %70 45
126 %<<
127 % /HalftoneType 1
128 % 0 gives range check error, 2 gives undefined error (VK).
129 % /Frequency 150
130 % /Angle 20
131 % the values for /Frequency, /Angle are irrelevant
132 % /SpotFunction {pop}
133 %>>
134 %setscreen
135 % 70 45 seem to replace /Frequency and /Angle in dict
136 % - Note: NO curly braces around the dict!
137 % Works on HP LJ4m, produces errors with HP LJ3Si,
138 % Produces "linescreen" on HP LJ4mv caused by {pop} (VK).
139
140
141 %<<
142 % /HalftoneType 1
143 % % 0 gives range check error, 2 gives undefined error (VK).
144 % /Frequency 70
145 % /Angle 45
146 % /SpotFunction {pop}
147 %>>
148 %sethalftone % Level 2 only
149 % Produces "linescreen" on HP LJ4mv caused by {pop} (VK).