groff
-
Documentation:
-
To send a plain text file to a postscript printer, go:
groff -ms file | lpr
groff -ms file > file.ps
-
To send a plain text file to a postscript printer without filling or justification,
(i.e. file prints as is, with given indentation):
(echo '.nf';cat file) | groff -ms > file.ps
(echo '.nf';cat file) | groff -ms | lpr
-
Frequently used commands:
- .in: set indentation
- .fi: fill lines
- .nf: no filling
- <B>text<P>: bold text
- <I>text<P>: italic text
- \*(DY: insert date, with -ms
-
Use -ms macro package for proper page breaks and page numbering.
-
To view a man page in a terminal:
groff -man -Tascii man_page.n | less