Download Dpic manual - Electrical and Computer Engineering
Transcript
.PS
Diagram: [
drawing commands
]
linethick = 0
move from Diagram.sw-(2,1)/72*scale to Diagram.ne+(1,0)/72*scale
.PE
5
Pic processor differences
Differences among processors, and between dpic and gpic particularly, are summarized below.
Normally, the only changes required to process correct pic or gpic input with dpic are changes
to {. . .} instead of X. . .X syntax as explained below, together with text formatting if the original
code was written for groff. The remaining differences documented below are small syntactical
differences or relate to the use of PSTricks or the other dpic output formats. Sometimes,
differences in default syntax (such as for arcs) must be considered.
Gpic is being actively maintained so some of the items below apply only to older versions.
5.1
Command-line options
They are completely different, of course. Type dpic -h to see a list of dpic options.
5.2
Output formats
Gpic -t output consists of a sequence of \special statements contained in the TeX box
\box\graph. The \special statements are automatically copied into the .dvi file for
interpretation by a printer driver such as dvips.
Dpic does not generate tpic specials. See the option list in Section 2 for output formats.
5.3
. lines and program-generated pic
Gpic passes lines beginning with . through to the output, thereby allowing arbitrary Troff
macros to be interspersed with pic drawing commands. Some programs that generate pic
output automatically insert the Troff line
.ps 11
on the assumption that the text point size should be 11. Dpic ignores non-continuation
lines beginning with . within pictures. Some programs (e.g., pstoedit) add Troff comment
lines beginning with .\" outside the .PS, .PE delimiters. These lines must be dealt with
separately.
20