Groff for Windows

Groff: text processing utilities




The groff (GNU Troff) software is a typesetting package which reads plain text mixed with formatting commands and produces formatted output. Groff now supports HTML.

Included in this release are implementations of troff, pic, eqn, tbl, refer, grap, the -man macros and the -ms macros, and drivers for PostScript, TeX dvi format, HP LaserJet 4 printers, HTML format (still alpha), and typewriter-like devices. Also included is a modified version of the Berkeley -me macros, and an implementation of the -mm macros.

Besides Groff, the package contains Grap<>, Deroff<>, PolyglotMan<> and Troff2LaTeX. There may be newer versions of Grap and Deroff. The Html preprocessor of Groff is now included.




If you download the Setup program of the package, any requirements for running applications, such as dynamic link libraries (DLL's) from the dependencies as listed below under Requirements, are already included. If you download the package as Zip files, then you must download and install the dependencies zip file yourself. Developer files (header files and libraries) from other packages are however not included; so if you wish to develop your own applications, you must separately install the required packages.

DescriptionDownloadSizeLast changeMd5sum
• Complete package, except sources Setup  5353615 10 January 2009  9d6835a4d41fc24d615dc1fa991e95cd
• Sources Setup  670871 10 January 2009  c3df288ad8f7ae3ab17b2f8a7c62e888
• Binaries Zip  3451234 10 January 2009  3f519efb7b1d1bf41c510913ebcc069d
• Developer files Zip  17687 10 January 2009  7c8bda6a35a23fa9d6891acb3a9ae498
• Documentation Zip  3402127 10 January 2009  aab7905b2212419ee93c3e19f58fac87
• Sources Zip  695924 29 October 2008  8be5bb2f497d048cd756d591c9c6b870
• Dependencies Zip  791299 14 March 2008  77ebd594dad091f5702d32ff5a049bfe
• Original source

You can also download the files from the GnuWin32 files page. New releases of the port of this package can be monitored.

Installation, Usage and Help

Groff can be installed in any directory, provided the subdirectory structure is maintained. Groff first looks for the compiled-in location of its macro and font files (C:/Progra~1/Groff/share/groff), and then in share/groff in the actual installation directory. Alternative locations of the macro and font files can be given by setting several environment variables: - GROFF_TMAC_PATH: A semicolon separated list of directories in which to search for macro files. groff will scan directories given in the M option before those in GROFF_TMAC_PATH, and then the standard directories: - the directories specified with troff/groff’s -M command line option; - the directories given in the GROFF_TMAC_PATH environment variable; - the current directory (only if in unsafe mode, which is enabled by the -U command line switch); - the home directory; - a platform-specific directory: c:/progra 1/Groff/lib/groff/site-tmac, or if this does not exist: <install directory>/lib/groff/site-tmac; - a site-specific (platform-independent) directory: c:/progra 1/Groff/share/groff/site-tmac, or if this does not exist: <install directory>/share/groff/site-tmac; - the main tmac directory: c:/progra 1/Groff/share/groff/<version>/tmac, or if this does not exist: <install directory>/share/groff/<version>/tmac, where <version> is the current version number of Groff (at present 1.19.1). - GROFF_FONT_PATH: A semicolon separated list of directories in which to search for the devname directory. groff will scan directories given in the -F option before these, and then in the standard directories: - the directories specified with troff/groff’s -F command line option; - the directories given in the GROFF_FONT_PATH environment variable; - a site-specific (platform-independent) directory: c:/progra~1/Groff/share/groff/site-font, or if this does not exist: <install directory>/share/groff/site-font; - the main tmac directory: c:/progra~1/Groff/share/groff/<version>/font, or if this does not exist: <install directory>/share/groff/<version>/font; - /usr/lib/font. - GRAP_DEFINES: A semicolon separated list of directories in which grap searches its defines file. If that value is a relative path name, the path specified in the M option given to grap will be searched for it. GRAP_DEFINES overrides the compiled in location of the defines file (C:/Progra~1/Groff/share/grap/grap.defines), but may be overridden by the files specified in the D option given to grap. Note that in the present version of groff it is not possible to give the D option to groff; it will not pass it on to grap. For example, if the current version number is 1.19.1 and your macro and font files are in D:\Applications\Groff, then, assuming you have kept the subdirectory structures for these files, you should set the following: - set GROFF_TMAC_PATH=D:/Applic~1/Groff/share/groff/site-tmac;D:/Applic~1/Groff/share/groff/1.19.1/tmac - set GROFF_FONT_PATH=D:/Applic~1/Groff/share/groff/1.19.1/font - set GRAP_DEFINES=D:/Applic~1/Groff/share/grap/grap.defines Note that there is no need to set these environment variables if Groff is installed in D:\Applications\Groff; it will then itself find its macro and font files. Documentation Manuals in several formats (Windows Help, Info, Postscript and Pdf) are in Groff\doc, Groff\info and Groff\man and their subfolders. The original Unix documents can be found at the Troff documentation-page<>. Viewing Groff output Groff can produce TeX-dvi-output, Postscript, Ascii and Html. To view and print dvi-files you must use a dvi-viewer, e.g. Yap<>, WinDvi<> or DviOut<>. Yap and WinDvi are part of TeX-distributions for Windows, DviOut is a stand-alone dvi-viewer. They can also be found at any CTAN-archive<>. Postscript can be viewed and printed with Ghostscript<>, which can also convert Postscript to Pdf.

General Installation Instructions

GnuWin32 Help (feature requests, bugs, etc)


Requirements for running applications, excluding external ones such as msvcrt.dll, perl, etc, are included in the Setup program and the dependencies zip file.

groff,1.20.1,gnu,win32,win32s,win64,gnuwin32,i386,i486,i586,i686,ia64,x86-64, gnuwin64,gnuwin,mswindows,ms-windows,windows,95,98,me,nt,2000,2k,xp,2003,vista,2008