Troff Resources
This page contains numerous resources for people using troff.
My thanks to the Computing Sciences Research Group at Bell Labs
for making PostScript copies of so many of their reports available.
Note that the raw troff input for the
document set
that came with the Seventh Edition release Unix
(aka Unix Version 7, dated 1979) is now available.
Thanks again to Bell Labs for making this available.
troff
- Groff.
This is the GNU troff package (groff), written by
James J. Clark.
It includes implementations of troff, eqn, pic, refer, and tbl.
The current version is 1.11a.
Can you imagine anyone rewriting troff from scratch,
in what ended up as about 60,000 lines of C++?
Wow, I am impressed.
If it were not for James' freely available reimplementation,
troff would be dead by now.
-
Troff User's Manual
by Jospeh F. Ossanna and Brian W. Kernighan,
revised November 1992.
This is the definitive guide to all troff commands.
GNU's gtroff adds numerous capabilities to troff
and these enhancements are described in the gtroff man page.
-
A TROFF Tutorial
by Brian W. Kernighan,
August 4, 1978.
This is a wonderful tutorial on how to use raw troff.
-
A Typesetter-independent TROFF
by Brian W. Kernighan,
revised March 1992.
This describes the changes made to troff to make it
typesetter independent.
The details are only of interest to people writing troff postprocessors
for new devices, but the historical details are interesting.
tbl
eqn
pic
-
PIC-A Graphics Language for Typesetting, User Manual
by Brian W. Kernighan,
revised May 1991.
This is the pic user's manual. I use this all the time.
GNU's gpic adds numerous capabilities to pic (alignment of text
with arrows, and the like) and these enhancements are described
in the gpic man page.
-
Making Pictures with GNU PIC
by Eric S. Raymond,
August 1995.
This is an update of the generic pic user's manual, for GNU pic.
This manual was distributed with version 1.11 of groff.
-
Examples of picMacros.
This 7-page PostScript document contains examples of the pic macros
that I use when writing my books. This
file
contains all the pic macros that I use for my books.
- Turning PIC Into HTML.
I wanted to include some pic figures into an HTML document and spent
quite a few hours figuring out how to do this.
Here is my summary.
Macros
grap
Indexing
refer
Back to W. Richard Stevens' Home Page