WIPIVERSE All articles

groff (software)

groff (pronounced /ˈdʒiːrɒf/, "JEE-roff"), also called GNU troff, is a typesetting system that reads plain text input containing formatting commands and produces formatted output in formats such as PostScript, PDF, HTML, ASCII, or UTF-8 for terminal display. It is the GNU Project's free and open-source replacement for the AT&T Unix troff and nroff text formatters, which were themselves developed from the original roff.

Overview

groff is a reimplementation and extension of the device-independent troff (ditroff) system. It processes text mixed with low-level typesetting primitives, macros from supplied packages, or user-defined macros. The system includes a number of helper programs, preprocessors, and postprocessors, including eqn (mathematical equations), tbl (tables), pic (diagrams), and soelim (file inclusion). Several macro packages are provided that duplicate, expand, or replace the standard troff macro packages.

History

groff was written primarily in C++ by James Clark, modeled after ditroff with numerous extensions. The first version, 0.3.1, was released in June 1990, and the first stable version, 1.04, was announced in November 1991. It was developed as free software to provide an easily obtainable replacement for the proprietary AT&T troff/nroff package, which was not always available even on branded UNIX systems. In 1999, Werner Lemberg and Ted Harding took over maintenance of the project.

Significance

groff is widely available on POSIX and other systems owing to its long association with Unix manual pages, including man pages. The troff macro language is used to format man pages, the standard form of documentation on Unix and Unix-like systems. groff is a key component of free, open-source, and Unix-derived operating systems such as Linux and 4.4 BSD derivatives. Some systems have replaced it with alternatives; for example, OpenBSD replaced groff with mandoc in its base installation beginning with the 4.9 release, as did macOS starting with Ventura.

Licensing

groff is distributed under the GNU General Public License (GPL). It was released under GPL-1.0-or-later from 1990 until August 1992, GPL-2.0-or-later from 1992 until January 2009, and GPL-3.0-or-later since January 2009.

Development status

Development of new groff features remains active. The software continues to be maintained as part of the GNU Project and is capable of producing typographically sophisticated documents while consuming minimal system resources.

Browse

More topics to explore

    Browse all articles