pic (1) Linux Manual Page
NAME
pic – compile pictures for troff or TeX
SYNOPSIS
[ -nvCSU ] [file …] -t [ -cvzCSU ] [file …]
DESCRIPTION
This manual page describes the GNU version of pic, which is part of the groff document formatting system. pic compiles descriptions of pictures embedded within troff or TeX input files into commands that are understood by TeX or troff. Each picture starts with a line beginning with .PS and ends with a line beginning with .PE. Anything outside of .PS and .PE is passed through without change.
It is the user’s responsibility to provide appropriate definitions of the PS and PE macros. When the macro package being used does not supply such definitions (for example, old versions of -ms), appropriate definitions can be obtained with -mpic: These will center each picture.
OPTIONS
Options that do not take arguments may be grouped behind a single –. The special option — can be used to mark the end of the options. A filename of – refers to the standard input.
-C- Recognize
.PSand.PEeven when followed by a character other than space or newline. -S- Safer mode; do not execute
shcommands. This can be useful when operating on untrustworthy input (enabled by default). -U- Unsafe mode; revert the default option
-S. -n- Don’t use the groff extensions to the troff drawing commands. You should use this if you are using a postprocessor that doesn’t support these extensions. The extensions are described in
groff_out(5). The-noption also causespicnot to use zero-length lines to draw dots in troff mode. -t- TeX mode.
-c- Be more compatible with
tpic. Implies-t. Lines beginning with\are not passed through transparently. Lines beginning with.are passed through with the initial.changed to\. A line beginning with.psis given special treatment: it takes an optional integer argument specifying the line thickness (pen size) in milliinches; a missing argument restores the previous line thickness; the default line thickness is 8 milliinches. The line thickness thus specified takes effect only when a non-negative line thickness has not been specified by use of thethicknessattribute or by setting thelinethickvariable. -v- Print the version number.
-z- In TeX mode draw dots using zero-length lines.
The following options supported by other versions of pic are ignored:
-D- Draw all lines using the \D escape sequence.
picalways does this. -Tdev- Generate output for the
troffdevice dev. This is unnecessary because thetroffoutput generated bypicis device-independent.
USAGE
This section describes only the differences between GNU pic and the original version of pic. Many of these differences also apply to newer versions of Unix pic. A complete documentation is available in the file
- /usr/share/doc/groff-base/pic.ms.gz
TeX mode
TeX mode is enabled by the -t option. In TeX mode, pic will define a vbox called \graph for each picture. Use the figname command to change the name of the vbox. You must yourself print that vbox using, for example, the command
