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 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278
|
.TH DVI2PS 1 "29 October 1996"
.SH NAME
dvi2ps \- convert a DVI file to PostScript
.SH SYNOPSIS
.B dvi2ps
.RB [ \-D
.IR var=val ]
.RB [ \-F
.IR fontdesc ]
.RB [ \-R
.IR n ]
.RB [ \-S ]
.if n .ti +0.5i
.RB [ \-c
.IR output-file ]
.RB [ \-d ]
.RB [ \-f
.IR n ]
.RB [ \-i
.IR file ]
.RB [ \-m
.IR n ]
.if t .ti +0.5i
.RB [ \-n
.IR n ]
.if n .ti +0.5i
.RB [ \-o
.IR str ]
.\" .RB [ \-p ]
.RB [ \-q ]
.RB [ \-r ]
.RB [ \-s
.IR file ]
.RB [ \-t
.IR n ]
.RB [ \-w ]
.if n .ti +0.5i
[\fIdvifile\fP[\fB.dvi\fP]]
.SH DESCRIPTION
This program converts a DVI file to PostScript, and writes the result
to standard output. If no
.I dvifile
is given, it reads from standard input.
The setting for the printer is given by the fontdesc file.
.SH OPTIONS
.IP "\fB\-D \fIvar=val"
specify a value of a variable
.I var
as
.I val.
.IP "\fB\-F \fIfontdesc"
specify a fontdesc file.
.IP "\fB\-R \fIn"
specify the resolution of the printer (n dpi).
.IP \fB\-S
turn on printing of statistics.
Some versions of
.I dvi2ps
will optionally print statistics about
font usage and some other information that is generally only
interesting to developers. On these systems,
.B \-S
turns on
the statistics printing.
.IP "\fB\-c \fIoutput-file"
write the output to
.I output-file
instead of the standard output.
.IP \fB\-d
select debugging output (you probably don't want to).
.IP "\fB\-f \fIn"
specify a starting page number
(this is a TeX page number \- \\count0).
.IP "\fB\-i \fIfile"
copy the named file to the output.
The contents of the file named will be copied to the Prolog-part
(cf. PostScript Document Structuring Convention) of the output.
.TP
\fB\-m0\fP | \fB\-mh\fP | \fB\-m1\fP | \fB\-m2\fP | \fB\-m3\fP | \fB\-m4\fP | \fB\-m5\fP
specify a magstep to use to print the document. This overrides
whatever might be in the DVI file.
.IP "\fB\-m \fIn"
specify a magnification to use to print the document. This should
probably be one of the magic numbers 1000, 1095, 1200, 1440, 1728,
or 2074, but no checking is done. Note: if your site does not have the
complete set of 300 dpi fonts, this option might be disabled.
.IP "\fB\-n \fIn"
specify the number of copies to print.
.IP "\fB\-o \fIstr"
specify a printing option.
Valid options are
.BR letter ,
.BR note ,
.BR legal ,
.BR tabloid ,
.BR a3 ,
.BR a4 ,
.BR a5 ,
.BR b4 ,
.BR b5 ,
.BR landscape ,
.BR letterlandscape ,
.BR notelandscape ,
.BR legalenvelope ,
.BR tabloidlandscape ,
.BR a3landscape ,
.BR a4landscape ,
.BR a5landscape ,
.BR b4landscape ,
.BR b5landscape ,
.BR envelope ,
.BR large ,
.BR small ,
and
.BR manualfeed .
This argument may be repeated several times.
.B envelope
is a variant of
.B landscape
that selects manual feed and does proper positioning for regular envelopes.
.\" .IP \fB\-p
.\" do not preload font information.
.\" Occasionally there may be insufficent memory to hold the
.\" information about all of the fonts in the system. Portions
.\" of the document may be converted by including the
.\" .B \-p
.\" option on the command line. This will prevent the preloading of
.\" all fonts into the system and instead use demand loading of
.\" the font tables.
.IP \fB\-q
be quiet.
Don't chatter about pages converted, etc.
.IP \fB\-r
stack pages in reverse order.
Normally, the DVI pages are processed in reverse order, with the
result that they are stacked in the correct order in the output
tray. This option reverses that.
.IP "\fB\-s \fIfile"
copy the named file to the output.
The contents of the file named will be copied to the Setup-part
(cf. PostScript Document Structuring Convention) of the output.
.IP "\fB\-t \fIn"
specify an ending page number.
.IP \fB\-w
Don't print out warnings.
.SH NOTES
This is a `bare bones' DVI-to-PostScript program. Minimal error
checking is done.
Not all fonts are available in the resolution needed to display on the
laser printer; when a missing font is encountered,
.I dvi2ps
will continue
to process your DVI file, and will log a warning message. Gaps will
appear in the document where the missing characters should have been.
It can take up to 60 seconds for the first page to be output. After a
head of steam has been built up, it can roll along at 5-10 seconds
per page.
.SH PostScript ILLUSTRATIONS
This program supports use of the \fB\\special\fP command in TeX to include
special PostScript code for graphics, etc. Specifying
\fB\\special{psfile=foo.ps}\fP in the TeX source will result in the contents
of file
.I foo.ps
(assumed to contain PostScript code) being copied
into the output at that point. For most included graphics, the
user's (0,0) point will be set to the point of the \fB\\special\fP command
with
.I x
and
.I y
coordinates increasing up and to the right and in units
of PostScript points (72/inch) \(em thus you must explicitly leave space
above the \fB\\special\fP command for most graphics. For graphics produced by
Apple Macintoshes (i.e., MacDraw, MacPaint, etc.), the top left corner of
the drawing will be at the point of the \fB\\special\fP command; in this case
you must leave the required space below the \fB\\special\fP.
The \fB\\special\fP string can contain any number of the following
.I keyword=value
pairs, separated by blanks:
.ta 10n
.TP 24n
\fIKeyword Value Type
(dimensions in points: 72 pt = 1 in)
.TP
psfile string
\- PostScript file to include
.PD 0
.TP
epsfile string
\- Encapsulated PostScript file to include
.PD 0
.TP
hsize dimension
\- maximum horizontal size (for clipping)
.TP
vsize dimension
\- maximum vertical size (for clipping). Use negative values to specify a
clipping region below the current position.
.TP
hoffset dimension
\- amount to shift right
.TP
voffset dimension
\- amount to shift up
.TP
hscale number
\- scale factor in x-dimension
.TP
vscale number
\- scale factor in y-dimension
.TP
rotation number
\- counter-clockwise rotation angle
.PD
.DT
.PP
Thus:
.ce
\fB\\special{psfile=foo.ps hoffset=72 hscale=0.9 vscale=0.9}\fP
will shift the graphics produced by file
.I foo.ps
right by
1", and will draw it at 0.9 normal size.
.B hsize
and
.B vsize
are given relative to the (0,0) point of the
drawing and are unaffected by offsets and scales.
Offsets are given relative to the point of the \fB\\special\fP command,
and are unaffected by scales.
If Macintosh drawings are to be included, the proper LaserPrep file
must be downloaded to the printer, either permanently or as another
header file in addition to the standard
.I tex.ps
header file.
.SH FILES
.PD 0
.TP 2.2i
*.dvi
TeX DeVice Independent output file
.TP
/usr/local/lib/tex/*fonts/.../
default font file directories
.TP
/usr/local/lib/dvi2ps/fontdesc
default fontdesc file
.PD
.SH "SEE ALSO"
tex(1)
.SH BUGS
There is likely a limit to the size of documents that can be printed (at
least, on the Apple LaserWriter). If you get VMerrors reported when
printing, use the
.B \-f
and
.B \-t
options, to select a range of pages.
The exact limit is unknown, but is probably well in excess of 50 pages
for `normal' documents, decreasing with number of different fonts used,
size of fonts, etc.
.SH AUTHORS
Mark Senn wrote the early versions of this program for the
BBN BitGraph. Stephan Bechtolsheim, Bob Brown, Richard
Furuta, James Schaad and Robert Wells improved it. Norm
Hutchinson ported the program to the Sun. Neal Holtz ported
it to the Apollo, and then to produce PostScript.
Jean-Francois Lamy fixed the interface for PostScript illustrations.
(PostScript is a trademark of Adobe Systems, Inc.)
|