1gxditview(1)                General Commands Manual               gxditview(1)
2
3
4

Name

6       gxditview - display groff intermediate output files in X11
7

Synopsis

9       gxditview [X-toolkit-option ...] [-backingStore backing-store-type]
10                 [-filename file] [-page page-number] [-printCommand command]
11                 [-resolution resolution] file
12
13       gxditview -help
14       gxditview --help
15
16       gxditview -version
17       gxditview --version
18

Description

20       gxditview  interprets  and  displays  the intermediate output format of
21       groff(1) on an X11 display.  It uses the standard X11 fonts, so it does
22       not  require  access to the server machine for font loading.  There are
23       several ways to use gxditview.
24
25       The intermediate output format of groff, documented in groff_out(5), is
26       produced  by  troff or the -Z option to groff.  It can be viewed by ex‐
27       plicitly calling  “gxditview  file”.   If  the  file  operand  is  “-”,
28       gxditview  will read the standard input stream; file cannot be omitted.
29       The intermediate output format of groff is device-independent  but  not
30       device-agnostic.  gxditview can view it for all typesetter devices, but
31       the quality is device-dependent.  gxditview will not display output for
32       terminal (nroff) devices.
33
34       The  best  results  are achieved with the X* devices for groff's -T op‐
35       tion, of which there are four: -TX75, -TX75-12, -TX100, and  -TX100-12.
36       They  differ by the X resolution (75 or 100 dots per inch) and the base
37       point size (10 or 12 points).  They are especially built for gxditview.
38       When  using  one  of these, groff generates the intermediate output for
39       this device and calls gxditview automatically for viewing.
40
41       -X produces good results only with -Tps, -TX75, -TX75-12,  -TX100,  and
42       -TX100-12.  The default resolution for previewing -Tps output is 75dpi;
43       this can be changed with the -resolution option.
44
45       While gxditview is running, the left mouse button brings up a menu with
46       several entries.
47
48       Next Page    Display the next page.
49
50       Previous Page
51                    Display the previous page.
52
53       Select Page  Select  a  particular  numbered page specified by a dialog
54                    box.
55
56       Print        Print the groff intermediate output using a command speci‐
57                    fied  by a dialog box.  The default command initially dis‐
58                    played is controlled by the printCommand  application  re‐
59                    source, and by the -printCommand option.
60
61       Open         Open  for  display  a  new file specified by a dialog box.
62                    The file should contain groff intermediate output.  If the
63                    filename  starts with a bar or pipe symbol, “|” it will be
64                    interpreted as a command from which to read.
65
66       Quit         Exit from gxditview.
67
68       The menu entries correspond to actions with similar but  not  identical
69       names,  which  can also be accessed with keyboard accelerators.  The n,
70       Space, Return, and Next (PgDn) keys are bound to the  NextPage  action.
71       The  p,  b,  BackSpace,  Delete, and Prior (PgUp) keys are bound to the
72       PreviousPage action.  The g key is bound to the SelectPage action.  The
73       o  key is bound to the OpenFile action.  The q key is bound to the Quit
74       action.  The r key is bound to a Rerasterize action which  rereads  the
75       current file, and redisplays the current page; if the current file is a
76       command, the command will be re-executed.  Vertical  scrolling  can  be
77       done  with the k and j keys; horizontal scrolling is bound to the h and
78       l keys.  The arrow keys (up, down, left, and right) are also  bound  to
79       the obvious scrolling actions.
80
81       The  paperlength  and paperwidth commands in the DESC file describing a
82       groff output device specify the length and width in  machine  units  of
83       the virtual page displayed by gxditview; see groff_font(5).
84
85   X defaults
86       This  program  uses  the Dvi widget from the X Toolkit.  It understands
87       all of the core resource names and classes as well as:
88
89       width (class Width)
90              Specifies the width of the window.
91
92       height (class Height)
93              Specifies the height of the window.
94
95       foreground (class Foreground)
96              Specifies the default foreground color.
97
98       font (class Font)
99              Specifies the font to be used for error messages.
100
101       fontMap (class FontMap)
102              Specifies the mapping from groff font names  to  X  font  names.
103              This must be a string containing a sequence of lines.  Each line
104              contains two whitespace-separated fields: firstly the groff font
105              name,  and  secondly the XLFD (X Logical Font Description).  The
106              default is shown in subsection “Default font map” below.
107
108   Default font map
109       XLFDs are long and unwieldy, so some lines are  shown  broken  and  in‐
110       dented below.
111
112       TR  -adobe-times-medium-r-normal--*-100-*-*-*-*-iso8859-1\n\
113       TI  -adobe-times-medium-i-normal--*-100-*-*-*-*-iso8859-1\n\
114       TB  -adobe-times-bold-r-normal--*-100-*-*-*-*-iso8859-1\n\
115       TBI -adobe-times-bold-i-normal--*-100-*-*-*-*-iso8859-1\n\
116       CR  -adobe-courier-medium-r-normal--*-100
117               -*-*-*-*-iso8859-1\n\
118       CI  -adobe-courier-medium-o-normal
119               --*-100-*-*-*-*-iso8859-1\n\
120       CB  -adobe-courier-bold-r-normal--*-100-*-*-*-*-iso8859-1\n\
121       CBI -adobe-courier-bold-o-normal--*-100-*-*-*-*-iso8859-1\n\
122       HR  -adobe-helvetica-medium-r-normal
123               --*-100-*-*-*-*-iso8859-1\n\
124       HI  -adobe-helvetica-medium-o-normal
125               --*-100-*-*-*-*-iso8859-1\n\
126       HB  -adobe-helvetica-bold-r-normal
127               --*-100-*-*-*-*-iso8859-1\n\
128       HBI -adobe-helvetica-bold-o-normal
129               --*-100-*-*-*-*-iso8859-1\n\
130       NR  -adobe-new century schoolbook-medium-r-normal--*-100
131               -*-*-*-*-iso8859-1\n\
132       NI  -adobe-new century schoolbook-medium-i-normal--*-100
133               -*-*-*-*-iso8859-1\n\
134       NB  -adobe-new century schoolbook-bold-r-normal--*-100
135               -*-*-*-*-iso8859-1\n\
136       NBI -adobe-new century schoolbook-bold-i-normal--*-100
137               -*-*-*-*-iso8859-1\n\
138       S   -adobe-symbol-medium-r-normal--*-100
139               -*-*-*-*-adobe-fontspecific\n\
140       SS  -adobe-symbol-medium-r-normal--*-100
141               -*-*-*-*-adobe-fontspecific\n\
142

Options

144       -help  and --help display a usage message, while -version and --version
145       show version information; all exit afterward.
146
147       gxditview accepts all of the standard X  Toolkit  command-line  options
148       along with the additional options listed below.
149
150       -page  This option specifies the page number of the document to be dis‐
151              played.
152
153       -backingStore backing-store-type
154              Because redisplay of the groff intermediate  output  window  can
155              take  a  perceiptible  amount  of  time,  this option causes the
156              server to save the window contents so that when it  is  scrolled
157              around  the  viewport, the window is painted from contents saved
158              in backing store.  backing-store-type  can  be  one  of  Always,
159              WhenMapped or NotUseful.
160
161       -printCommand command
162              The  default  command  displayed in the dialog box for the Print
163              menu entry will be command.
164
165       -resolution res
166              The groff intermediate output file will be displayed at a  reso‐
167              lution  of  res dots per inch, unless the DESC file contains the
168              X11 command, in which case the device resolution will  be  used.
169              This  corresponds  to the Dvi widget's resolution resource.  The
170              default is 75.
171
172       -filename string
173              The default filename displayed in the dialog box  for  the  Open
174              menu  entry will be string.  This can be either a filename, or a
175              command starting with “|”.
176
177       The following standard X Toolkit command-line  arguments  are  commonly
178       used with gxditview.
179
180       -bg color
181              This option specifies the color to use for the background of the
182              window.  The default is “white”.
183
184       -bd color
185              This option specifies the color to use for  the  border  of  the
186              window.  The default is “black”.
187
188       -bw number
189              This  option  specifies  the  width in pixels of the border sur‐
190              rounding the window.
191
192       -fg color
193              This option specifies the color to use for displaying text.  The
194              default is “black”.
195
196       -fn font
197              This  option specifies the font to be used for displaying widget
198              text.  The default is “fixed”.
199
200       -rv    This option indicates that reverse video should be simulated  by
201              swapping the foreground and background colors.
202
203       -geometry geometry
204              This  option  specifies  the  preferred size and position of the
205              window.
206
207       -display host:display
208              This option specifies the X server to contact.
209
210       -xrm resourcestring
211              This option specifies a resource string to be used.
212

Environment

214       GROFF_FONT_PATH
215              A list of directories in which to seek the selected  output  de‐
216              vice's  directory  of  device  and  font description files.  See
217              troff(1) and groff_font(5).
218

Files

220       /usr/share/X11/app-defaults/GXditview
221       /usr/share/X11/app-defaults/GXditview-color
222              define X application defaults for gxditview.  Users can override
223              these  values  in  the  .Xdefaults file, normally located in the
224              user's home directory.  See appres(1) and xrdb(1).
225
226       /usr/share/groff/1.23.0/font/devX100/DESC
227              describes the X100 output device.
228
229       /usr/share/groff/1.23.0/font/devX100/F
230              describes the font known as F on device X100.
231
232       /usr/share/groff/1.23.0/font/devX100-12/DESC
233              describes the X100-12 output device.
234
235       /usr/share/groff/1.23.0/font/devX100-12/F
236              describes the font known as F on device X100-12.
237
238       /usr/share/groff/1.23.0/font/devX75/DESC
239              describes the X75 output device.
240
241       /usr/share/groff/1.23.0/font/devX75/F
242              describes the font known as F on device X75.
243
244       /usr/share/groff/1.23.0/font/devX75-12/DESC
245              describes the X75-12 output device.
246
247       /usr/share/groff/1.23.0/font/devX75-12/F
248              describes the font known as F on device X75-12.
249
250       /usr/share/groff/1.23.0/tmac/X.tmac
251              defines macros for use with the X100, X100-12, X75,  and  X75-12
252              output  devices.  It is automatically loaded by troffrc when any
253              of those output devices is selected.
254
255       /usr/share/groff/1.23.0/tmac/Xps.tmac
256              sets up troff to use gxditview as a previewer  for  device-inde‐
257              pendent  output targeting the ps output device.  It is automati‐
258              cally loaded by troffrc when troff is given the options  -X  and
259              -Tps.
260

Examples

262       The following command views this man page with a base point size of 12.
263
264              groff -TX100-12 -man gxditview.1
265
266       The  quality  of the result depends mainly on the chosen point size and
267       display resolution; for rapid previewing, however, something like
268              groff -X -P-resolution -P100 document
269       yields acceptable results.
270

Authors

272       gxditview and its predecessor xditview were written  by  Keith  Packard
273       (MIT X Consortium), Richard L. Hyde (Purdue), David Slattengren (Berke‐
274       ley), Malcolm Slaney (Schlumberger Palo  Alto  Research),  Mark  Moraes
275       (University of Toronto), and James Clark.
276
277       This  program is derived from xditview; portions of xditview originated
278       in xtroff, which was derived from suntroff.
279

See also

281       “X Logical Font Description  Conventions”  ⟨https://www.x.org/releases/
282       X11R7.6/doc/xorg-docs/specs/XLFD/xlfd.html⟩, by Jim Flowers and Stephen
283       Gildea.
284
285       X(7), xrdb(1), xditview(1), groff(1), groff_out(5)
286
287
288
289groff 1.23.0                    2 November 2023                   gxditview(1)
Impressum