1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-24 00:02:09 +02:00
tldr/pages/common/troff.md
2022-08-20 02:38:55 +02:00

731 B

troff

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}}