info > DITROFF(7)

πŸ“– NAME

ditroff β€” classical device-independent roff

πŸš€ Quick Reference

Use Case Command Description
πŸ“„ Process ditroff input with groff groff -Tps input Generate PostScript from ditroff/troff code
πŸ“„ Output to PDF groff -Tpdf input Produce PDF directly
πŸ–₯️ Terminal preview groff -Tutf8 input Render text output for terminal viewing
πŸ“¦ Format man pages groff -man -Tps file Format a man page to PostScript

πŸ“š DESCRIPTION

The name ditroff refers to a historical development stage of the roff(7) text processing system. In roff systems extant today, the name troff is a synonym for ditroff.

Early versions of roff by Joe Ossanna generated two programs from the same sources, using conditional compilation to distinguish them. nroff produced text-oriented TTY output, while troff generated graphical output for exactly one output device, the Wang Graphic Systems CAT phototypesetter.

In 1979, Brian Kernighan rewrote troff to support more devices by creating an intermediate output format for troff that could be fed into postprocessor programs which actually do the printout on the device. Kernighan's version marks what is known as β€œclassical troff” today. In order to distinguish it from Ossanna's original version, it was called ditroff (device independent troff) on some systems, though this naming isn't mentioned in the classical documentation.

Today, all existing roff systems are based on Kernighan's multi-device troff. The distinction between troff and ditroff is no longer necessary; each modern troff provides the complete functionality of ditroff.

The easiest way to use ditroff is via the GNU roff system, groff. The groff(1) program is a wrapper around (di)troff that automatically handles device postprocessing.

✍️ AUTHORS

This document was written by Bernd Warken <groff-bernd.warken-72@web.de>.

πŸ”— SEE ALSO

DITROFF(7)
πŸ“– NAME πŸš€ Quick Reference πŸ“š DESCRIPTION ✍️ AUTHORS πŸ”— SEE ALSO

Generated by phpman v4.9.26-1-g511901d · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-08-03 19:34 @216.73.216.156
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 Transitional!Valid CSS!
Enhanced by LLM: deepseek-v4-flash / taotoken.net / www.chedong.com - original format