1GRODVI(1) General Commands Manual GRODVI(1)
2
3
4
6 grodvi - convert groff output to TeX DVI format
7
9 grodvi [-dl] [-F dir] [-p papersize] [-w n] [file ...]
10
11 grodvi --help
12
13 grodvi -v
14 grodvi --version
15
17 grodvi is a driver for groff that produces TeX DVI format. Normally it
18 should be run by groff -Tdvi. This will run troff -Tdvi; it will also
19 input the macros in /usr/share/groff/1.22.4/tmac/dvi.tmac.
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, -Tdvi loads pspic.tmac automatically,
41 providing the PSPIC macro. Please check groff_tmac(5) for a detailed
42 description.
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 name.
50
51 checksum n
52 The checksum in the tfm file is n.
53
54 designsize n
55 The designsize in the tfm file is n.
56
57 These are automatically generated by tfmtodit.
58
59 The default color for \m and \M is black. Currently, the drawing color
60 for \D commands is always black, and fill color values are translated
61 to gray.
62
63 In troff the \N escape sequence can be used to access characters by
64 their position in the corresponding tfm file; all characters in the tfm
65 file can be accessed this way.
66
67 By design, the DVI format doesn't care about physical dimensions of the
68 output medium. Instead, grodvi emits the equivalent to TeX's \spe‐
69 cial{papersize=width,length} on the first page; dvips (and possibly
70 other DVI drivers) then sets the page size accordingly. If either the
71 page width or length is not positive, no papersize special is output.
72
74 Whitespace is permitted between a command-line option and its argument.
75
76 -d Do not use tpic specials to implement drawing commands. Hori‐
77 zontal and vertical lines will be implemented by rules. Other
78 drawing commands will be ignored.
79
80 -Fdir Prepend directory dir/devname to the search path for font and
81 device description files; name is the name of the device, usu‐
82 ally dvi.
83
84 -l Specify landscape orientation.
85
86 -ppapersize
87 Specify paper dimensions. This overrides the papersize, paper‐
88 length, and paperwidth commands in the DESC file; it accepts the
89 same arguments as the papersize command (see groff_font(5) for
90 details).
91
92 -v Print the version number.
93
94 -wn Set the default line thickness to n thousandths of an em. If
95 this option isn't specified, the line thickness defaults to
96 0.04 em.
97
99 There are styles called R, I, B, and BI mounted at font positions 1
100 to 4. The fonts are grouped into families T and H having members in
101 each of these styles:
102
103 TR CM Roman (cmr10)
104 TI CM Text Italic (cmti10)
105 TB CM Bold Extended Roman (cmbx10)
106 TBI CM Bold Extended Text Italic (cmbxti10)
107 HR CM Sans Serif (cmss10)
108 HI CM Slanted Sans Serif (cmssi10)
109 HB CM Sans Serif Bold Extended (cmssbx10)
110 HBI CM Slanted Sans Serif Bold Extended (cmssbxo10)
111
112 There are also the following fonts which are not members of a family:
113
114 CW CM Typewriter Text (cmtt10)
115 CWI CM Italic Typewriter Text (cmitt10)
116
117 Special fonts are MI (cmmi10), S (cmsy10), EX (cmex10), SC (cmtex10,
118 only for CW), and, perhaps surprisingly, TR, TI, and CW, due to the
119 different font encodings of text fonts. For italic fonts, CWI is used
120 instead of CW.
121
122 Finally, the symbol fonts of the American Mathematical Society are
123 available as special fonts SA (msam10) and SB (msbm10). These two
124 fonts are not mounted by default.
125
126 Using the option -mec (which loads the file ec.tmac) provides the EC
127 and TC fonts. The design of the EC family is very similar to that of
128 the CM fonts; additionally, they give a much better coverage of groff
129 symbols. Note that ec.tmac must be called before any language-specific
130 files; it doesn't take care of hcode values.
131
133 GROFF_FONT_PATH
134 A list of directories in which to search for the devname direc‐
135 tory in addition to the default ones. See troff(1) and
136 groff_font(5) for more details.
137
139 /usr/share/groff/1.22.4/font/devdvi/DESC
140 Device description file.
141
142 /usr/share/groff/1.22.4/font/devdvi/F
143 Font description file for font F.
144
145 /usr/share/groff/1.22.4/tmac/dvi.tmac
146 Macros for use with grodvi.
147
148 /usr/share/groff/1.22.4/tmac/ec.tmac
149 Macros to switch to EC fonts.
150
152 Dvi files produced by grodvi use a different resolution (57816 units
153 per inch) from those produced by TeX. Incorrectly written drivers
154 which assume the resolution used by TeX, rather than using the resolu‐
155 tion specified in the DVI file will not work with grodvi.
156
157 When using the -d option with boxed tables, vertical and horizontal
158 lines can sometimes protrude by one pixel. This is a consequence of
159 the way TeX requires that the heights and widths of rules be rounded.
160
162 tfmtodit(1), groff(1), troff(1), groff_out(5), groff_font(5),
163 groff_char(7), groff_tmac(5)
164
165
166
167groff 1.22.4 20 January 2022 GRODVI(1)