# phpman > man > gxditview(1)

[GXDITVIEW(1)](https://www.chedong.com/phpMan.php/man/GXDITVIEW/1/markdown)                           General Commands Manual                          [GXDITVIEW(1)](https://www.chedong.com/phpMan.php/man/GXDITVIEW/1/markdown)



## NAME
       gxditview - display groff intermediate output files

## SYNOPSIS
       **gxditview** [_X-toolkit-option_...] [**-backingStore** _backing-store-type_] [**-filename** _string_]
                 [**-page** _n_] [**-printCommand** _string_] [**-resolution** _res_] [_file_]

### gxditview -help
### gxditview --help

## DESCRIPTION
       The **gxditview** program displays the _groff_ _intermediate_ _output_, see **groff**___**[out**(5)](https://www.chedong.com/phpMan.php/man/out/5/markdown), on an X  dis‐
       play.   It  uses  the standard X11 fonts, so it does not require access to the server machine
       for font loading.  There are several ways to use **gxditview**.

       The _groff_ _intermediate_ _output_ can be generated by **groff** **-Z**.  This can be viewed by explicitly
       calling  **gxditview**  _filename_.   If  _filename_  is  **-**,  **gxditview** will read the standard input;
       _filename_ cannot be omitted.  The _groff_ _intermediate_ _output_  is  different  for  all  devices.
       **gxditview** can view it for all devices, but the quality is device dependent.

       The  best  results are achieved with the **X*** devices for **groff**'s option **-T**.  There are four **X***
       devices: **-TX75**, **-TX75-12**, **-TX100**, **-TX100-12**.  They differ  by  the  X  resolution  (75dpi  or
       100dpi) and the used base font size (10pt or 12pt).  They are especially built for **gxditview**.
       When using one of them **groff** generates the _intermediate_ _output_  for  this  device  and  calls
       **gxditview**  automatically for viewing.  For example, to view this man page with a base resolu‐
       tion of 12pt, say

              **groff** **-TX100-12** **-man** **-rS12** **gxditview.1**

       (option **-rS**_XX_ is documented in the **groff**___**[man**(7)](https://www.chedong.com/phpMan.php/man/man/7/markdown) man page).

       **groff**'s option **-X** produces _intermediate_ _output_ for the  _PostScript_  device  and  subsequently
       uses  **gxditview**  as  a viewer for it.  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_

       yields acceptable results.

       During the run of **gxditview**, the left mouse button brings up a menu with  the  following  en‐
       tries:

### Next Page
               Display the next page.

### Previous Page
               Display the previous page.

### Select Page
               Select a particular numbered page specified by a dialog box.

       **Print**   Print  the  _groff_ _intermediate_ _output_ using a command specified by a dialog box.  The
               default command initially displayed is controlled by the **printCommand** application re‐
               source, and by the **-printCommand** option.

       **Open**    Open  for display a new file specified by a dialog box.  The file should contain some
               _groff_ _intermediate_ _output_.  If the filename starts with **|** it will be taken  to  be  a
               command to read from.

       **Quit**    Exit from **gxditview**.

       The  _n_,  _Space_,  _Return_,  and  _Next_ (_PgDn_) keys are bound to the **Next** **Page** action.  The _p_, _b_,
       _BackSpace_, _Delete_, and _Prior_ (_PgUp_) keys are bound to the **Previous** **Page** 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 the **Rerasterize**  action  which  rereads  the
       current  file, and redisplays the current page; if the current file is a command, the command
       will be reexecuted.  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 specify the length and width in  ma‐
       chine units of the virtual page displayed by **gxditview**.

## OPTIONS
       The  **gxditview**  program accepts all of the standard X Toolkit command-line options along with
       the additional options listed below:

### -help

### -page

### -backingStore
               Redisplay of the _groff_ _intermediate_ _output_ window can take up to a second or so, this
               option  causes  the  server  to  save the window contents so that when it is scrolled
               around the viewport, the window is painted from  contents  saved  in  backing  store.
               _backing-store-type_ can be one of **Always**, **WhenMapped** or **NotUseful**.

### -printCommand
               The default command displayed in the dialog box for the **Print** menu entry will be _com__‐
               _mand_.

### -resolution
               The _groff_ _intermediate_ _output_ file will be displayed at a resolution of _res_ dpi,  un‐
               less the _DESC_ file contains the **X11** command, in which case the device resolution will
               be used.  This corresponds to the _Dvi_ widget's **resolution** resource.  The  default  is
               75.

### -filename
               The  default  filename  displayed  in  the dialog box for the **Open** menu entry will be
               _string_.  This can be either a filename, or a command starting with **|**.

       The following standard X Toolkit command-line arguments are commonly used with **gxditview**:

### -bg
               This option specifies the color to use for the background of the window.  The default
               is _white_.

### -bd
               This  option specifies the color to use for the border of the window.  The default is
               _black_.

### -bw
               This option specifies the width in pixels of the border surrounding the window.

### -fg
               This option specifies the color to use for displaying text.  The default is _black_.

### -fn
               This option specifies the font to be used for displaying widget text.  The default is
               _fixed_.

### -rv
               ground and background colors.

### -geometry
               This option specifies the preferred size and position of the window.

### -display
               This option specifies the X server to contact.

### -xrm
               This option specifies a resource string to be used.

## X DEFAULTS
       This program uses the _Dvi_ widget in the X Toolkit.  It understands all of the  core  resource
       names and classes as well as:

       **width** (class **Width**)
               Specifies the width of the window.

       **height** (class **Height**)
               Specifies the height of the window.

       **foreground** (class **Foreground**)
               Specifies the default foreground color.

       **font** (class **Font**)
               Specifies the font to be used for error messages.

       **fontMap** (class **FontMap**)
               Specifies  the  mapping from _groff_ font names to X font names.  This must be a string
               containing a sequence of lines.  Each line contains two whitespace separated  fields:
               first the _groff_ font name, and secondly the X font name.  The default is
               "\
               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\
               "

## ENVIRONMENT
       _GROFF_FONT_PATH_
              A  list of directories in which to search for the _dev_name directory in addition to the
              default ones.  See [**troff**(1)](https://www.chedong.com/phpMan.php/man/troff/1/markdown) and **groff**___**[font**(5)](https://www.chedong.com/phpMan.php/man/font/5/markdown) for more details.

## FILES
       _/etc/X11/app-defaults/GXditview_
       _/etc/X11/app-defaults/GXditview-color_
              The default resource files of **gxditview**.  Users should override these  values  in  the
              _.Xdefaults_  file,  normally located in the user's home directory.  See [**xrdb**(1)](https://www.chedong.com/phpMan.php/man/xrdb/1/markdown) and **ap**‐‐
              [**pres**(1)](https://www.chedong.com/phpMan.php/man/pres/1/markdown) for more.

## AUTHORS
       **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.

## SEE ALSO
       [**X**(7)](https://www.chedong.com/phpMan.php/man/X/7/markdown), [**xrdb**(1)](https://www.chedong.com/phpMan.php/man/xrdb/1/markdown), [**xditview**(1)](https://www.chedong.com/phpMan.php/man/xditview/1/markdown), [**groff**(1)](https://www.chedong.com/phpMan.php/man/groff/1/markdown), **groff**___**[out**(5)](https://www.chedong.com/phpMan.php/man/out/5/markdown)

## ORIGIN
       This program is derived from **xditview**; portions of **xditview** originated in  **xtroff**  which  was
       derived from **suntroff**.



groff 1.22.4                                23 March 2022                               [GXDITVIEW(1)](https://www.chedong.com/phpMan.php/man/GXDITVIEW/1/markdown)
