SUMMERY: Using groff

From: Roetman, Paul <PRoetman_at_CSXLines.com>
Date: Thu, 14 Dec 2000 16:12:30 -0500

Hello

It seems that Groff/Troff/Nroff are not used that much any
more.....(Shocked?). That seems strange to me, as this seems to be the only
efficient method of converting raw text into a post script file, with boxes,
giff, lines, arrows, circles, etc.
Thanks to Dean Provins (not from this list!) for
http://www.ucalgary.ca/~dprovins/

I managed to view the HOWTO via this GhostScript command. I don't think it
worked prior due to the environment variables not being set.

GROFF_FONT_PATH=/usr/local/share/groff/font;export GROFF_FONT_PATH
GROFF_TMAC_PATH=/usr/local/share/groff/tmac;export GROFF_TMAC_PATH
GROFF_TYPESETTER=ps ;export GROFF_TYPESETTER

gs -sDEVICE=x11alpha HowTo.ps > HowTo.prt
lpr -Pmyprinter HowTo.prt


and Larye D. Parkins for:

Documentation on troff and its descendants seems to be rare. This is the
only
book that seems to be in print currently:

http://www.amazon.com/exec/obidos/ISBN%3D0961533625

Some editions of "UNIX: The Complete Reference" have enough on troff/groff,
tbl,
pic, and eqn to do useful things, and the O'Reilly "*nix in a Nutshell"
books
have reference sections for the 'roff macro packages, if you can figure out
where to put the tags. The raw man pages in every system are written in
nroff/troff using the tmac.an (man) macros, so you can look at those for
general
composition style. Everyone is in love with the WYSIWYG word processors
these
days, but you can't beat groff and its partners for generating Postscript
output
from scripts.


Although I still have not found an absolute list of commands, syntax and
examples, I have enough to start working! Now my only issue is how to left
justify text within a box in pic!!!!

Cheers

Paul



"Roetman, Paul" wrote:
>
> G'day all
>
> I am about to start looking into using "groff" to convert a simple data
file
> into a postscript file - with a few boxes, and a giff file.
>
> Has anyone out there got any example scripts for this, or know of any good
> documentation?
>
> Thanks in advance.
>
> Paul Roetman
Received on Fri Dec 15 2000 - 12:49:30 NZDT

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:41 NZDT