source: trunk/third/transcript/man/psdit.1p @ 9217

Revision 9217, 4.5 KB checked in by ghudson, 28 years ago (diff)
Remove all comments about the SysV spooling system, since we always use the BSD one. Changes to get along with catman better (the NAME section has to use no special formatting and include a \- after the name).
Line 
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
7psdit \- 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
21translates a
22.I file
23created by device-independent
24[di]troff (1)
25to \*(PS language format for printing on a \*(PS printer.
26If no
27.I file
28is mentioned, the standard input is used.
29The \*(PS language file is sent to the standard output.
30The options are:
31.TP
32.BI -F fontdir
33take font information from
34.I fontdir
35instead of the default (see below).
36.TP
37.BI -p prologue
38use the contents of
39.I prologue
40instead of the default \*(PS language prologue (see below).
41.TP
42.BI -o list
43prints pages whose numbers are given in the comma-separated
44.IR list .
45The list contains single numbers
46.I N
47and ranges
48.IB N1 \- N2.
49A missing
50.I N1
51means the lowest-numbered page, a missing
52.I N2
53means the highest.
54.PP
55.B Note:
56the input for
57.I psdit
58should be prepared with the corresponding
59.B -Tpsc
60option of
61[ di ] troff ,
62pic ,
63etc.
64.br
65eqn
66should be run with the flags
67.B -r576
68and
69.BR -m2
70to produce suitable output. 
71.br
72pic
73should be run with the
74.B -D
75flag.
76With
77.B DWB
78pic ,
79use
80.B -T576
81to set the correct resolution.
82.PP
83.I psdit
84allows for users to cause
85.I troff
86to include arbitrary \*(PS language code in the generated document.
87.I psdit
88recognizes the undefined "%" command in the
89ditroff intermediate file format to signal the start of raw \*(PS language
90to be placed
91.I
92as is
93in the the output file.  Everthing between (but not including)
94the percent sign and a line containing a single period (".") will
95be placed in the generated output.  This code is not insulated
96from the
97ditroff
98coordinate system or the state of the generated code. However, two functions
99are defined in the prologue so that users may insulate themselves if they
100so desire.  The
101.B PB
102function (for \fIpicture begin\fP) will execute the \*(PS language operator
103.B save ,
104translate the coordinate system to
105ditroff's
106idea of the current position on the page, and change the scale and
107orientation of the coordinate system axes to be the standard 72 units
108per inch.  The
109.B PE
110macro (for \fIpicture end\fP) will end this protected environment.
111.LP
112Several methods may be employed to incorporate such included \*(PS language
113code
114into the ditroff intermediate file.  The ".sy", "\\\&!" and ".cf"
115troff
116commands may be useful.
117For example, the following sequence could be used to include the \*(PS
118language description of a completely separate, printable document.
119Note 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
142This example includes
143.I mypic.ps
144as an illustration.  This facility is both powerful and useful.
145Indiscriminate inclusion of badly behaving \*(PS language code may be
146dangerous to your document's health.
147.PP
148.I psdit
149also supports the \\X feature of DWB 2.0 and
150has support for the psfig package.
151.SH ENVIRONMENT
152.TP
153PSLIBDIR
154path name of a directory to use instead of
155XPSLIBDIRX for the
156.I psdit
157prologue
158.SH FILES
159.TP 2.2i
160XDITDIRX/devpsc/*
161ditroff default description files for a \*(PS printer virtual device
162.TP
163XPSLIBDIRX/psdit.pro
164default \*(PS language prologue
165.SH "SEE ALSO"
166transcript(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
171Documenter's Workbench
172.SH AUTHOR
173Adobe Systems Incorporated
174.SH BUGS
175The versions of
176eqn
177and
178pic
179distributed with ditroff (from AT&T) have the device names compiled in
180(so much for device independence!).  They should just read the device
181description file for the information they need.  You should be sure
182to know which version of
183eqn
184you are running or you will get undesirable results.
185.br
186The B-splines generated by
187.I ditroff
188are drawn with an approximation.  The functions
189.B D~
190and
191.B D~~
192in the prologue need a little work.
193.SH NOTES
194\*(PS is a registered trademark of Adobe Systems Incorporated.
195.br
196Documenter's Workbench is a trademark of AT&T Technologies.
197.br
198Unix is a trademark of AT&T Bell Laboratories.
199
Note: See TracBrowser for help on using the repository browser.