Displays troff files on an X display.
xpreview [ -BackingStore BackingStoreType ] [ -page Number ] [ ToolKitFlag ... ] { File | - }
The xpreview command is an AIXwindows 2.1- and Motif2.1-based application that displays output from the troff command on an AIXwindows display. The troff command output file must be prepared for the devX100 device.
The user interface contains the standard AIXwindows interface controls for calling the root menu, iconifying the window, and setting the window to full screen size. The interface also includes a main window with a scrollable display area for text. Use the pushbuttons for Next, Previous, Goto Page, Print Page, Print File, and Newfile to manipulate the viewing document.
Mouse button three actuates a popup menu for configuring print capabilities. The menu includes an option to set the command line and another to select a printer queue. The command line dialog box expects command line input through the troff command. For example,
pic -Tibm3816 troff-input-file |tbl|troff -mm -Tibm3816
is an acceptable command line. The printer queue option displays a list of configured printer queues. If this option is not selected, the xpreview command uses the system-defined default queue.
When you are previewing an input file, the Print Page and Print File buttons require command line input. Note that once a printer queue is selected, it remains selected for the duration of the viewing session, or until an alternate printer queue is selected.
Fonts supported for the devX100 device in European locales are:
The xpreview command supports the following font sizes: 8, 10, 14, 18, 24, 30, and 36.
The xpreview command does not display files resulting from the troff command constructed for a device other than those described in this document.
To preview a file on a certain device, the xpreview command requires the fonts found in the following directories:
The xpreview command can display the devX100 formatted files on an Xstation. The Xstation must be configured to include /usr/lib/X11/fonts/i18n in the font path. To preview Japanese character files, the font path should include /usr/lib/X11/fonts/JP.
The xpreview command supports multibye locales. Also, to display Japanese characters, Japanese 16-dot fonts (part of the Japanese BSL package) and 24- and 32-dot fonts (part of the AIXwindows font package) must be installed. To display Korean characters, Korean fonts (part of the Korean BSL package) must be installed.
Japanese support currently includes the following font sets:
Korean support currently includes the following font sets:
The xpreview command accepts the standard X Toolkit command line flags, as well as the following flags:
troff-TX100 troff-input | xpreview pic -TX100 pic-troff-input | tbl | troff -man -TX100 | xpreview
LANG=ja_JP troff -TX100 troff-input | xpreview - pic -TX100 pic-troff-input | tbl | troff -man -TX100 \ | xpreview -
The cat command, csplit command, diff command, lint command, lp command, lpr command, pg command, pr command, qprt command, sed command, sort command, tabs command, X command, xrdb command.
The eqn command, grap command, pic command, tbl command, troff command, X command, xrdb command.
AT&T Bell Laboratories Computing Science Technical Report No. 14, GRAP - A Language for Typesetting Graphs. Tutorial and User Manual by John L Bentley and Brian W. Kernighan.
The nl_langinfo subroutine in Technical Reference: Base Operating System and Extensions.
Some Applications of Inverted Indexes on the UNIX System by M.E. Lesk.
UNIX System V Documentor's Workbench Reference Manual. ISBN 0-13-943580-8. Prentice Hall.