[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [SLUG] troff
On Sun, May 20, 2001 at 02:32:35AM +1000, root wrote:
> Hi everyone,
> I notice when programmers write books they tend to write them using
> troff/nroff/groff with pic, eqn, etc to do various things.
> % troff myfile.troff > myfile.ps
> But it was invalid when I tried to view it in ghostview.
> Ahh, I give up. The useless manual page doesn't do me any good.
> I hope someone can tell me how to use troff to make it output a ".ps"
> file for me so I can view it in ghostview and practice my troff
> commands. I couldn't even get a postscript "Hello, World!" to work! ;-)
I'm not familiar enough with troff; but with groff
groff -Tascii -man /usr/share/man/man1/ls.1.gz
will give you what the man command does.
groff -Tps -man /usr/share/man/man1/ls.1.gz
is a postscript version of the same.
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug