troff

Typesetting processor for the groff (GNU Troff) document formatting system. See also groff. More information: <https://manned.org/troff>.

Install

All systems
curl cmd.cat/troff.sh
Debian Debian
apt-get install groff-base
Ubuntu
apt-get install groff-base
Arch Arch Linux
pacman -S plan9port
image/svg+xml Kali Linux
apt-get install groff-base
CentOS
yum install groff-base
Fedora
dnf install groff-base
Windows (WSL2)
sudo apt-get update sudo apt-get install groff-base
OS X
brew install plan9port
Raspbian
apt-get install groff-base

Typesetting processor for the groff (GNU Troff) document formatting system. See also groff. More information: <https://manned.org/troff>.

  • Format output for a PostScript printer, saving the output to a file:
    troff path/to/input.roff | grops > path/to/output.ps
  • Format output for a PostScript printer using the [me] macro package, saving the output to a file:
    troff -me path/to/input.roff | grops > path/to/output.ps
  • Format output as [a]SCII text using the [man] macro package:
    troff -T ascii -man path/to/input.roff | grotty
  • Format output as a [pdf] file, saving the output to a file:
    troff -T pdf path/to/input.roff | gropdf > path/to/output.pdf

© tl;dr; authors and contributors