1 | .TH PSDIT 1 "18 August 1992" "Adobe Systems" |
---|
2 | \" Copyright (c) 1985,1987,1991,1992 Adobe Systems Incorporated. All Rights Reserved. |
---|
3 | \" ATTN GOVERNMENT END USERS: See notice of rights in file XPSLIBDIRX/Notice |
---|
4 | \" RCSID: $Header: /afs/dev.mit.edu/source/repository/third/transcript/man/psdit.1p,v 1.2 1996-10-14 05:09:45 ghudson Exp $ |
---|
5 | .ds PS P\s-2OST\s+2S\s-2CRIPT\s+2 |
---|
6 | .SH NAME |
---|
7 | psdit \- convert ditroff intermediate format to PostScript language format |
---|
8 | .SH SYNOPSIS |
---|
9 | .B psdit |
---|
10 | [ |
---|
11 | .BI -F fontdir |
---|
12 | ] [ |
---|
13 | .BI -p prologue |
---|
14 | ] [ |
---|
15 | .BI -o list |
---|
16 | ] [ |
---|
17 | .I file |
---|
18 | ] |
---|
19 | .SH DESCRIPTION |
---|
20 | .I psdit |
---|
21 | translates a |
---|
22 | .I file |
---|
23 | created by device-independent |
---|
24 | [di]troff (1) |
---|
25 | to \*(PS language format for printing on a \*(PS printer. |
---|
26 | If no |
---|
27 | .I file |
---|
28 | is mentioned, the standard input is used. |
---|
29 | The \*(PS language file is sent to the standard output. |
---|
30 | The options are: |
---|
31 | .TP |
---|
32 | .BI -F fontdir |
---|
33 | take font information from |
---|
34 | .I fontdir |
---|
35 | instead of the default (see below). |
---|
36 | .TP |
---|
37 | .BI -p prologue |
---|
38 | use the contents of |
---|
39 | .I prologue |
---|
40 | instead of the default \*(PS language prologue (see below). |
---|
41 | .TP |
---|
42 | .BI -o list |
---|
43 | prints pages whose numbers are given in the comma-separated |
---|
44 | .IR list . |
---|
45 | The list contains single numbers |
---|
46 | .I N |
---|
47 | and ranges |
---|
48 | .IB N1 \- N2. |
---|
49 | A missing |
---|
50 | .I N1 |
---|
51 | means the lowest-numbered page, a missing |
---|
52 | .I N2 |
---|
53 | means the highest. |
---|
54 | .PP |
---|
55 | .B Note: |
---|
56 | the input for |
---|
57 | .I psdit |
---|
58 | should be prepared with the corresponding |
---|
59 | .B -Tpsc |
---|
60 | option of |
---|
61 | [ di ] troff , |
---|
62 | pic , |
---|
63 | etc. |
---|
64 | .br |
---|
65 | eqn |
---|
66 | should be run with the flags |
---|
67 | .B -r576 |
---|
68 | and |
---|
69 | .BR -m2 |
---|
70 | to produce suitable output. |
---|
71 | .br |
---|
72 | pic |
---|
73 | should be run with the |
---|
74 | .B -D |
---|
75 | flag. |
---|
76 | With |
---|
77 | .B DWB |
---|
78 | pic , |
---|
79 | use |
---|
80 | .B -T576 |
---|
81 | to set the correct resolution. |
---|
82 | .PP |
---|
83 | .I psdit |
---|
84 | allows for users to cause |
---|
85 | .I troff |
---|
86 | to include arbitrary \*(PS language code in the generated document. |
---|
87 | .I psdit |
---|
88 | recognizes the undefined "%" command in the |
---|
89 | ditroff intermediate file format to signal the start of raw \*(PS language |
---|
90 | to be placed |
---|
91 | .I |
---|
92 | as is |
---|
93 | in the the output file. Everthing between (but not including) |
---|
94 | the percent sign and a line containing a single period (".") will |
---|
95 | be placed in the generated output. This code is not insulated |
---|
96 | from the |
---|
97 | ditroff |
---|
98 | coordinate system or the state of the generated code. However, two functions |
---|
99 | are defined in the prologue so that users may insulate themselves if they |
---|
100 | so desire. The |
---|
101 | .B PB |
---|
102 | function (for \fIpicture begin\fP) will execute the \*(PS language operator |
---|
103 | .B save , |
---|
104 | translate the coordinate system to |
---|
105 | ditroff's |
---|
106 | idea of the current position on the page, and change the scale and |
---|
107 | orientation of the coordinate system axes to be the standard 72 units |
---|
108 | per inch. The |
---|
109 | .B PE |
---|
110 | macro (for \fIpicture end\fP) will end this protected environment. |
---|
111 | .LP |
---|
112 | Several methods may be employed to incorporate such included \*(PS language |
---|
113 | code |
---|
114 | into the ditroff intermediate file. The ".sy", "\\\&!" and ".cf" |
---|
115 | troff |
---|
116 | commands may be useful. |
---|
117 | For example, the following sequence could be used to include the \*(PS |
---|
118 | language description of a completely separate, printable document. |
---|
119 | Note that the "showpage" operator is redefined. |
---|
120 | .RS |
---|
121 | .br |
---|
122 | (usual troff input) |
---|
123 | .br |
---|
124 | \\\&& |
---|
125 | .br |
---|
126 | \&.fl |
---|
127 | .br |
---|
128 | \\\&!%PB |
---|
129 | .br |
---|
130 | \\\&!/showpage{}def |
---|
131 | .br |
---|
132 | \&.fl |
---|
133 | .br |
---|
134 | \&.sy cat mypic.ps |
---|
135 | .br |
---|
136 | \\\&!PE |
---|
137 | .br |
---|
138 | \\\&!. |
---|
139 | .br |
---|
140 | (more regular troff input) |
---|
141 | .RE |
---|
142 | This example includes |
---|
143 | .I mypic.ps |
---|
144 | as an illustration. This facility is both powerful and useful. |
---|
145 | Indiscriminate inclusion of badly behaving \*(PS language code may be |
---|
146 | dangerous to your document's health. |
---|
147 | .PP |
---|
148 | .I psdit |
---|
149 | also supports the \\X feature of DWB 2.0 and |
---|
150 | has support for the psfig package. |
---|
151 | .SH ENVIRONMENT |
---|
152 | .TP |
---|
153 | PSLIBDIR |
---|
154 | path name of a directory to use instead of |
---|
155 | XPSLIBDIRX for the |
---|
156 | .I psdit |
---|
157 | prologue |
---|
158 | .SH FILES |
---|
159 | .TP 2.2i |
---|
160 | XDITDIRX/devpsc/* |
---|
161 | ditroff default description files for a \*(PS printer virtual device |
---|
162 | .TP |
---|
163 | XPSLIBDIRX/psdit.pro |
---|
164 | default \*(PS language prologue |
---|
165 | .SH "SEE ALSO" |
---|
166 | transcript(1), psroff(1), psfonts(1), troff(1), lpr(1), troff(1), lpr(1). |
---|
167 | .br |
---|
168 | \fIA Typesetter-independent TROFF\fR Brian W. Kernighan, Bell Laboratories 1982 |
---|
169 | .br |
---|
170 | .I |
---|
171 | Documenter's Workbench |
---|
172 | .SH AUTHOR |
---|
173 | Adobe Systems Incorporated |
---|
174 | .SH BUGS |
---|
175 | The versions of |
---|
176 | eqn |
---|
177 | and |
---|
178 | pic |
---|
179 | distributed with ditroff (from AT&T) have the device names compiled in |
---|
180 | (so much for device independence!). They should just read the device |
---|
181 | description file for the information they need. You should be sure |
---|
182 | to know which version of |
---|
183 | eqn |
---|
184 | you are running or you will get undesirable results. |
---|
185 | .br |
---|
186 | The B-splines generated by |
---|
187 | .I ditroff |
---|
188 | are drawn with an approximation. The functions |
---|
189 | .B D~ |
---|
190 | and |
---|
191 | .B D~~ |
---|
192 | in the prologue need a little work. |
---|
193 | .SH NOTES |
---|
194 | \*(PS is a registered trademark of Adobe Systems Incorporated. |
---|
195 | .br |
---|
196 | Documenter's Workbench is a trademark of AT&T Technologies. |
---|
197 | .br |
---|
198 | Unix is a trademark of AT&T Bell Laboratories. |
---|
199 | |
---|