gxditview |
[X-toolkit-option ...] [-backingStore backing-store-type] [-filename file] [-page page-number] [-printCommand command] [-resolution resolution] file |
gxditview |
-help |
gxditview |
--help |
gxditview |
-v |
gxditview |
-version |
gxditview |
--version |
gxditview renders the output of GNU troff to an X11 display. It uses the standard X11 fonts, which are rendered by the X server.
The output of troff(1) is in a page description language documented in groff_out(5). Normally, users do not observe this output because the groff(1) wrapper automatically runs an output driver to interpret it; groff's -Z option leaves it on the standard output stream instead. It can be viewed by explicitly calling “gxditview file”. If the file operand is “-”, gxditview will read the standard input stream; file cannot be omitted. GNU troff's page description language is device-independent but not device-agnostic. gxditview can view it for all typesetter devices, but the quality is device-dependent. gxditview will not display output for terminal (nroff) devices.
The best results are achieved with the X* devices for troff's -T option, of which there are four: -TX75, -TX75-12, -TX100, and -TX100-12. They differ by the X resolution (75 or 100 dots per inch) and the base point size (10 or 12 points). They are especially built for gxditview. When using one of these, troff generates output for this device and calls gxditview automatically for viewing.
-X produces good results only with -Tps, -TX75, -TX75-12, -TX100, and -TX100-12. The default resolution for previewing -Tps output is 75dpi; this can be changed with the -resolution option.
While gxditview is running, the left mouse button brings up a menu with several entries.
The menu entries correspond to actions with similar but not identical names, which can also be accessed with keyboard accelerators. The n, Space, Return, and Next (PgDn) keys are bound to the NextPage action. The p, b, BackSpace, Delete, and Prior (PgUp) keys are bound to the PreviousPage action. The p key with any modifier (Shift, Control, Alt, or Meta) is bound to the Print action. The g key is bound to the SelectPage action. The o key is bound to the OpenFile action. The q key is bound to the Quit action. The r key is bound to a Rerasterize action which rereads the current file, and redisplays the current page; if the current file is a command, the command will be re-executed. Vertical scrolling can be done with the k and j keys; horizontal scrolling is bound to the h and l keys. The arrow keys (up, down, left, and right) are also bound to the obvious scrolling actions.
The paperlength and paperwidth commands in the DESC file describing a groff output device specify the length and width in basic units of the virtual page displayed by gxditview; see groff_font(5).
This program uses the Dvi widget from the X Toolkit. It understands all of the core resource names and classes as well as:
XLFDs are long and unwieldy, so some lines are shown broken and indented below.
TR -adobe-times-medium-r-normal--*-100-*-*-*-*-iso8859-1\n\
TI -adobe-times-medium-i-normal--*-100-*-*-*-*-iso8859-1\n\
TB -adobe-times-bold-r-normal--*-100-*-*-*-*-iso8859-1\n\
TBI -adobe-times-bold-i-normal--*-100-*-*-*-*-iso8859-1\n\
CR -adobe-courier-medium-r-normal--*-100
-*-*-*-*-iso8859-1\n\
CI -adobe-courier-medium-o-normal
--*-100-*-*-*-*-iso8859-1\n\
CB -adobe-courier-bold-r-normal--*-100-*-*-*-*-iso8859-1\n\
CBI -adobe-courier-bold-o-normal--*-100-*-*-*-*-iso8859-1\n\
HR -adobe-helvetica-medium-r-normal
--*-100-*-*-*-*-iso8859-1\n\
HI -adobe-helvetica-medium-o-normal
--*-100-*-*-*-*-iso8859-1\n\
HB -adobe-helvetica-bold-r-normal
--*-100-*-*-*-*-iso8859-1\n\
HBI -adobe-helvetica-bold-o-normal
--*-100-*-*-*-*-iso8859-1\n\
NR -adobe-new century schoolbook-medium-r-normal--*-100
-*-*-*-*-iso8859-1\n\
NI -adobe-new century schoolbook-medium-i-normal--*-100
-*-*-*-*-iso8859-1\n\
NB -adobe-new century schoolbook-bold-r-normal--*-100
-*-*-*-*-iso8859-1\n\
NBI -adobe-new century schoolbook-bold-i-normal--*-100
-*-*-*-*-iso8859-1\n\
S -adobe-symbol-medium-r-normal--*-100
-*-*-*-*-adobe-fontspecific\n\
SS -adobe-symbol-medium-r-normal--*-100
-*-*-*-*-adobe-fontspecific\n\
-help and --help display a usage message, while -v, -version, and --version show version information; all exit afterward.
gxditview accepts all of the standard X Toolkit command-line options along with the additional options listed below.
The following standard X Toolkit command-line arguments are commonly used with gxditview.
gxditview exits with status 0 on successful operation, and status 2 if the program cannot interpret its command-line arguments.
The following command views this man page with a base point size of 12.
groff -TX100-12 -man gxditview.1
The quality of the result depends mainly on the chosen point size and display resolution; for rapid previewing, however, something like
groff -X -P-resolution -P100 document
gxditview and its predecessor xditview were written by Keith Packard (MIT X Consortium), Richard L. Hyde (Purdue), David Slattengren (Berkeley), Malcolm Slaney (Schlumberger Palo Alto Research), Mark Moraes (University of Toronto), and James Clark.
This program is derived from xditview; portions of xditview originated in xtroff, which was derived from suntroff.
“X Logical Font Description Conventions”, by Jim Flowers and Stephen Gildea.