{
    "mode": "man",
    "parameter": "GRODVI",
    "section": "1",
    "url": "https://www.chedong.com/phpMan.php/man/GRODVI/1/json",
    "generated": "2026-05-30T06:11:20Z",
    "synopsis": "grodvi [-dl] [-F dir] [-p papersize] [-w n] [file ...]",
    "sections": {
        "NAME": {
            "content": "grodvi - convert groff output to TeX DVI format\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "grodvi [-dl] [-F dir] [-p papersize] [-w n] [file ...]\n",
            "subsections": [
                {
                    "name": "grodvi --help",
                    "content": ""
                },
                {
                    "name": "grodvi -v",
                    "content": ""
                },
                {
                    "name": "grodvi --version",
                    "content": ""
                }
            ]
        },
        "DESCRIPTION": {
            "content": "grodvi  is  a  driver  for  groff that produces TeX DVI format.  Normally it should be run by\ngroff -Tdvi.  This will run troff -Tdvi; it will also input the macros  in  /usr/share/groff/\n1.22.4/tmac/dvi.tmac.\n\nThe  DVI  file  generated  by grodvi can be printed by any correctly-written DVI driver.  The\ntroff drawing primitives are implemented using the tpic version 2 specials.   If  the  driver\ndoes not support these, the \\D commands will not produce any output.\n\nThere is an additional drawing command available:\n\n\\D'R dh dv'\nDraw  a rule (solid black rectangle), with one corner at the current position, and the\ndiagonally opposite corner at the current position +(dh,dv).  Afterwards  the  current\nposition  will be at the opposite corner.  This produces a rule in the DVI file and so\ncan be printed even with a driver that does not support the tpic specials  unlike  the\nother \\D commands.\n\nThe  groff  command \\X'anything' is translated into the same command in the DVI file as would\nbe produced by \\special{anything} in TeX; anything may not contain a newline.\n\nFor inclusion of EPS image files, -Tdvi loads pspic.tmac automatically, providing  the  PSPIC\nmacro.  Please check grofftmac(5) for a detailed description.\n\nFont  files for grodvi can be created from tfm files using tfmtodit(1).  The font description\nfile should contain the following additional commands:\n\ninternalname name\nThe name of the tfm file (without the .tfm extension) is name.\n\nchecksum n\nThe checksum in the tfm file is n.\n\ndesignsize n\nThe designsize in the tfm file is n.\n\nThese are automatically generated by tfmtodit.\n\nThe default color for \\m and \\M is black.  Currently, the drawing color for  \\D  commands  is\nalways black, and fill color values are translated to gray.\n\nIn  troff  the  \\N  escape sequence can be used to access characters by their position in the\ncorresponding tfm file; all characters in the tfm file can be accessed this way.\n\nBy design, the DVI format doesn't care about physical dimensions of the output  medium.   In‐\nstead,  grodvi  emits  the  equivalent to TeX's \\special{papersize=width,length} on the first\npage; dvips (and possibly other DVI drivers) then sets the page size accordingly.  If  either\nthe page width or length is not positive, no papersize special is output.\n",
            "subsections": []
        },
        "OPTIONS": {
            "content": "Whitespace is permitted between a command-line option and its argument.\n",
            "subsections": [
                {
                    "name": "-d",
                    "content": "will be implemented by rules.  Other drawing commands will be ignored.\n",
                    "flag": "-d"
                },
                {
                    "name": "-F",
                    "content": "files; name is the name of the device, usually dvi.\n",
                    "flag": "-F"
                },
                {
                    "name": "-l",
                    "content": "",
                    "flag": "-l"
                },
                {
                    "name": "-p",
                    "content": "Specify  paper  dimensions.  This overrides the papersize, paperlength, and paperwidth\ncommands in the DESC file; it accepts the same arguments as the papersize command (see\ngrofffont(5) for details).\n",
                    "flag": "-p"
                },
                {
                    "name": "-v",
                    "content": "",
                    "flag": "-v"
                },
                {
                    "name": "-w",
                    "content": "fied, the line thickness defaults to 0.04 em.\n",
                    "flag": "-w"
                }
            ]
        },
        "USAGE": {
            "content": "There are styles called R, I, B, and BI mounted at font positions  1  to 4.   The  fonts  are\ngrouped into families T and H having members in each of these styles:\n\nTR     CM Roman (cmr10)\nTI     CM Text Italic (cmti10)\nTB     CM Bold Extended Roman (cmbx10)\nTBI    CM Bold Extended Text Italic (cmbxti10)\nHR     CM Sans Serif (cmss10)\nHI     CM Slanted Sans Serif (cmssi10)\nHB     CM Sans Serif Bold Extended (cmssbx10)\nHBI    CM Slanted Sans Serif Bold Extended (cmssbxo10)\n\nThere are also the following fonts which are not members of a family:\n\nCW     CM Typewriter Text (cmtt10)\nCWI    CM Italic Typewriter Text (cmitt10)\n\nSpecial  fonts are MI (cmmi10), S (cmsy10), EX (cmex10), SC (cmtex10, only for CW), and, per‐\nhaps surprisingly, TR, TI, and CW, due to the different font encodings of  text  fonts.   For\nitalic fonts, CWI is used instead of CW.\n\nFinally, the symbol fonts of the American Mathematical Society are available as special fonts\nSA (msam10) and SB (msbm10).  These two fonts are not mounted by default.\n\nUsing the option -mec (which loads the file ec.tmac) provides the EC and TC fonts.   The  de‐\nsign of the EC family is very similar to that of the CM fonts; additionally, they give a much\nbetter coverage of groff symbols.  Note that ec.tmac must be called before any  language-spe‐\ncific files; it doesn't take care of hcode values.\n",
            "subsections": []
        },
        "ENVIRONMENT": {
            "content": "GROFFFONTPATH\nA  list of directories in which to search for the devname directory in addition to the\ndefault ones.  See troff(1) and grofffont(5) for more details.\n",
            "subsections": []
        },
        "FILES": {
            "content": "/usr/share/groff/1.22.4/font/devdvi/DESC\nDevice description file.\n\n/usr/share/groff/1.22.4/font/devdvi/F\nFont description file for font F.\n\n/usr/share/groff/1.22.4/tmac/dvi.tmac\nMacros for use with grodvi.\n\n/usr/share/groff/1.22.4/tmac/ec.tmac\nMacros to switch to EC fonts.\n",
            "subsections": []
        },
        "BUGS": {
            "content": "Dvi files produced by grodvi use a different resolution (57816 units  per  inch)  from  those\nproduced by TeX.  Incorrectly written drivers which assume the resolution used by TeX, rather\nthan using the resolution specified in the DVI file will not work with grodvi.\n\nWhen using the -d option with boxed tables, vertical and horizontal lines can sometimes  pro‐\ntrude  by  one  pixel.   This  is  a consequence of the way TeX requires that the heights and\nwidths of rules be rounded.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "tfmtodit(1), groff(1), troff(1), groffout(5), grofffont(5), groffchar(7), grofftmac(5)\n\n\n\ngroff 1.22.4                                23 March 2022                                  GRODVI(1)",
            "subsections": []
        }
    },
    "summary": "grodvi - convert groff output to TeX DVI format",
    "flags": [
        {
            "flag": "-d",
            "long": null,
            "arg": null,
            "description": "will be implemented by rules. Other drawing commands will be ignored."
        },
        {
            "flag": "-F",
            "long": null,
            "arg": null,
            "description": "files; name is the name of the device, usually dvi."
        },
        {
            "flag": "-l",
            "long": null,
            "arg": null,
            "description": ""
        },
        {
            "flag": "-p",
            "long": null,
            "arg": null,
            "description": "Specify paper dimensions. This overrides the papersize, paperlength, and paperwidth commands in the DESC file; it accepts the same arguments as the papersize command (see grofffont(5) for details)."
        },
        {
            "flag": "-v",
            "long": null,
            "arg": null,
            "description": ""
        },
        {
            "flag": "-w",
            "long": null,
            "arg": null,
            "description": "fied, the line thickness defaults to 0.04 em."
        }
    ],
    "examples": [],
    "see_also": [
        {
            "name": "tfmtodit",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/tfmtodit/1/json"
        },
        {
            "name": "groff",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/groff/1/json"
        },
        {
            "name": "troff",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/troff/1/json"
        },
        {
            "name": "groffout",
            "section": "5",
            "url": "https://www.chedong.com/phpMan.php/man/groffout/5/json"
        },
        {
            "name": "grofffont",
            "section": "5",
            "url": "https://www.chedong.com/phpMan.php/man/grofffont/5/json"
        },
        {
            "name": "groffchar",
            "section": "7",
            "url": "https://www.chedong.com/phpMan.php/man/groffchar/7/json"
        },
        {
            "name": "grofftmac",
            "section": "5",
            "url": "https://www.chedong.com/phpMan.php/man/grofftmac/5/json"
        }
    ]
}