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

NAME

6       grodvi - convert groff output to TeX dvi format
7

SYNOPSIS

9       grodvi [ -dv ] [ -wn ] [ -Fdir ] [ files... ]
10
11       It is possible to have whitespace between a command line option and its
12       parameter.
13

DESCRIPTION

15       grodvi is a driver for groff that produces TeX dvi format.  Normally it
16       should  be run by groff -Tdvi.  This will run troff -Tdvi; it will also
17       input the macros /usr/share/groff/1.18.1.4/tmac/dvi.tmac; if the  input
18       is    being    preprocessed    with    eqn    it    will   also   input
19       /usr/share/groff/1.18.1.4/font/devdvi/eqnchar.
20
21       The dvi file generated by grodvi can be printed by any  correctly-writ‐
22       ten dvi driver.  The troff drawing primitives are implemented using the
23       tpic version 2 specials.  If the driver does not support these, the  \D
24       commands will not produce any output.
25
26       There is an additional drawing command available:
27
28       \D'R dh dv'
29              Draw a rule (solid black rectangle), with one corner at the cur‐
30              rent position, and the diagonally opposite corner at the current
31              position  +(dh,dv).   Afterwards the current position will be at
32              the opposite corner.  This produces a rule in the dvi  file  and
33              so  can  be printed even with a driver that does not support the
34              tpic specials unlike the other \D commands.
35
36       The groff command \X'anything' is translated into the same  command  in
37       the  dvi  file  as would be produced by \special{anything} in TeX; any‐
38       thing may not contain a newline.
39
40       For inclusion of EPS image files,  grodvi  loads  pspic.tmac  automati‐
41       cally,  providing  the  PSPIC  macro.   Please  check  grops  (1) for a
42       detailed description of this macro.
43
44       Font files for grodvi can be created from tfm files using  tfmtodit(1).
45       The  font description file should contain the following additional com‐
46       mands:
47
48       internalname name
49                     The name of the tfm file (without the .tfm extension)  is
50                     name.
51
52       checksum n    The checksum in the tfm file is n.
53
54       designsize n  The designsize in the tfm file is n.
55
56       These are automatically generated by tfmtodit.
57
58       The default color for \m and \M is black.  Currently, the drawing color
59       for \D commands is always black, and fill color values  are  translated
60       to gray.
61
62       In  troff  the  \N  escape sequence can be used to access characters by
63       their position in the corresponding tfm file; all characters in the tfm
64       file can be accessed this way.
65

OPTIONS

67       -d     Do  not  use tpic specials to implement drawing commands.  Hori‐
68              zontal and vertical lines will be implemented by  rules.   Other
69              drawing commands will be ignored.
70
71       -v     Print the version number.
72
73       -wn    Set  the  default  line thickness to n thousandths of an em.  If
74              this option isn't specified,  the  line  thickness  defaults  to
75              0.04 em.
76
77       -Fdir  Prepend  directory  dir/devname  to the search path for font and
78              device description files; name is the name of the  device,  usu‐
79              ally dvi.
80

USAGE

82       There  are styles called R, I, B, and BI mounted at font positions 1 to
83       4.  The fonts are grouped into families T and H having members in  each
84       of these styles:
85
86              TR     CM Roman (cmr10)
87
88              TI     CM Text Italic (cmti10)
89
90              TB     CM Bold Extended Roman (cmbx10)
91
92              TBI    CM Bold Extended Text Italic (cmbxti10)
93
94              HR     CM Sans Serif (cmss10)
95
96              HI     CM Slanted Sans Serif (cmssi10)
97
98              HB     CM Sans Serif Bold Extended (cmssbx10)
99
100              HBI    CM Slanted Sans Serif Bold Extended (cmssbxo10)
101
102       There are also the following fonts which are not members of a family:
103
104              CW     CM Typewriter Text (cmtt10)
105
106              CWI    CM Italic Typewriter Text (cmitt10)
107
108       Special  fonts  are  MI (cmmi10), S (cmsy10), EX (cmex10), and, perhaps
109       surprisingly, TR, TI, and CW, due to the different  font  encodings  of
110       text fonts.  For italic fonts, CWI is used instead of CW.
111
112       Finally,  the  symbol  fonts  of  the American Mathematical Society are
113       available as special fonts SA (msam10)  and  SB  (msbm10).   These  two
114       fonts are not mounted by default.
115
116       Using  the  option  -mec (loading the file ec.tmac) EC and TC fonts are
117       used.  The design of the EC family is very similar to that  of  the  CM
118       fonts; additionally, they give a much better coverage of groff symbols.
119       Note that ec.tmac must be called before any language-specific files; it
120       doesn't take care of hcode values.
121

FILES

123       /usr/share/groff/1.18.1.4/font/devdvi/DESC
124              Device description file.
125
126       /usr/share/groff/1.18.1.4/font/devdvi/F
127              Font description file for font F.
128
129       /usr/share/groff/1.18.1.4/tmac/dvi.tmac
130              Macros for use with grodvi.
131
132       /usr/share/groff/1.18.1.4/tmac/ec.tmac
133              Macros to switch to EC fonts.
134

BUGS

136       Dvi  files  produced  by grodvi use a different resolution (57816 units
137       per inch) to those produced by TeX.  Incorrectly written drivers  which
138       assume  the  resolution  used  by TeX, rather than using the resolution
139       specified in the dvi file will not work with grodvi.
140
141       When using the -d option with boxed  tables,  vertical  and  horizontal
142       lines  can  sometimes  protrude by one pixel.  This is a consequence of
143       the way TeX requires that the heights and widths of rules be rounded.
144

SEE ALSO

146       tfmtodit(1),   groff(1),   troff(1),    groff_out(5),    groff_font(5),
147       groff_char(7)
148
149
150
151Groff Version 1.18.1.4         16 September 2002                     GRODVI(1)
Impressum