summaryrefslogtreecommitdiff
path: root/support/ps_view/ps_local.ps
blob: 001cf4c070e56a618e5a5d9d258c9fb2060562ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%
%% This is a configuration file for the PS_VIEW previewer, ver. 2.01.
%% It is supposed to be changed freely, although not madly, by a user.
%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%% JOB PARAMETERS

/restart_name (!ps_rest.ps) def   % name of the default restart file
%
/pagebeg_mark [                   % begin-of-page mark
  (%%Page:) (%DVIPSSectionPage:)
%   (%StartPage)                  % Corel 5 (bez separacji)
%   (/SepMode 2)                  % Corel 5 (separacja 2?)
%   (/ColorSeparationMode)        % Corel 3
] def
/prolbeg_mark                     % begin-of-prolog mark
  [(%!PS) (%!PS) (%DVIPSBeginSection)] def
/prolend_mark pagebeg_mark def    % end-of-prolog mark
/bb_mark [(%%BoundingBox:)] def   % bounding box mark
%
/mag_factor 2 def                 % MAG for the `m' command
/shift 5 def                      % SHIFT for the `l' `r' `u' `d' commands
/max_pages 512 def                % maximal viewable pages number
/line_length 2048 def             % maximal document line length in the `ap' command
/grid_wd 10 def /grid_ht 10 def   % local grid resolution
/x_unit 1 CM def /y_unit 1 CM def % global grid units

%%%% LOCAL PRINTERS

% Here come descriptions of local ``printers''. These are descriptions
% of some Ghostscript devices, including `pcxmono', `pcx256', etc,
% used for the on-line printing.
% Add your own description to this list.
% We need the description unit do be a dictionary containing some
% of the following fields:
%
% /printer_name (laserjet) def       % Ghostscript device name
% /printer_output (!ps_out.jep) def  % printing to the file
% /printer_x_corr 0 def              % printer horizontal offset correction
% /printer_y_corr 0 def              % printer vertical offset correction
% /printer_x_marg 0 def              % printer horizontal margin (for ver:
% /printer_y_marg 0 def              % printer vertical margin    >=312)
% /printer_spot /gs_spot load def    % selected spot function
% /printer_freq 46 def               % screen frequency for printing
% /printer_angle 45 def              % screen angle for printing
% /printer_xy_res [300 300] def      % printer resolution, as default
%                                      we use device-specific resolution
%
% In the above examples we put the default values. You don't need
% to redefine these values.
% The selected for on-line printing device need to be assigned to the name
% `user_printer', look to the end of the LOCAL PRINTERS.

%% HP LaserJet III p
/ljet3p 6 dict def              % create local printer dictionary
ljet3p begin                    % set printer dictionary
/printer_name (ljet3) def       % Ghostscript device name
/printer_output () def          % printing immediately to the printer
revision 312 lt {
  /printer_x_corr 0 def         % printer horizontal offset correction
  /printer_y_corr -71 def       % printer vertical offset correction
} if
revision dup 351 ge exch 510 lt and {
  /printer_x_marg -80 def       % printer horizontal margin
  /printer_y_marg 0 def         % printer vertical margin
} if
/printer_freq 46 def            % screen frequency for printing
/printer_spot/dot_spot load def % selected spot function
end                             % local printer defined

%% HP LaserJet III
/ljet3 3 dict def               % create local printer dictionary
ljet3 begin                     % set printer dictionary
/printer_name (ljet3) def       % Ghostscript device name
/printer_output () def          % printing immediately to the printer
/printer_freq 46 def            % screen frequency for printing
end                             % local printer defined

%% HP LaserJet IV p
/ljet4p 6 dict def              % create local printer dictionary
ljet4p begin                    % set printer dictionary
/printer_name (ljet4) def       % Ghostscript device name
/printer_output () def          % printing immediately to the printer
/printer_spot/dot_spot load def % selected spot function
/printer_freq 70 def            % screen frequency for printing
revision dup 351 ge exch 510 lt and {
  /printer_x_marg -155 def      % printer horizontal margin
  /printer_y_marg 0 def         % printer vertical margin
} if
end                             % local printer defined

%% HP Desk Jet 550 (Color)
/cdj550 3 dict def              % create local printer dictionary
cdj550 begin                    % set printer dictionary
/printer_name (cdj550) def      % Ghostscript device name
/printer_output (!cdj550.jep) def % printing to the file
/printer_freq 60 def            % screen frequency for printing
end                             % local printer defined

%% PCX monochrome
/pcxmono 4 dict def             % create local printer dictionary
pcxmono begin                   % set printer dictionary
/printer_name (pcxmono) def     % Ghostscript device name
/printer_output (!pcxmono.pcx) def % printing to the file
/printer_freq 40 def            % screen frequency for printing
/printer_xy_res [300 300] def   % printer resolution
end                             % local printer defined

%% user printer selection
ljet3p prs

%%%% END OF FILE