[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [SLUG] Latex and man pages



Hi All,

John Ferlito wrote:
> Is there a nice way to include man pages in latex so they get formatted nicely? 
> Something similar to the way lgrind formats C files.

Not quite sure what you really need to do but this may help.
'man man' says...

   -t     Use  /usr/bin/groff -Tps -mandoc to format the
man<AD>
              ual page, passing the output to stdout.  The
output
              from  /usr/bin/groff  -Tps  -mandoc  may need
to be
              passed through some filter or another before 
being
              printed.

This produces Postscript which can be viewed with Ghostview.
You can manipulate it with mpage or the psutils package.
Then if you need to, that ps file can be included in your
LaTeX file with \includegraphics{my_manpage.ps}. 
Alternatively use groff and set the output device to dvi
with '-Tdvi'. 

Mike

--------------------------------------------------------------------
Michael Lake
University of Technology, Sydney
Email: mailto:Mike.Lake@nospam.uts.edu.au Ph: 02 9514 1724 Fx: 02
9514 1628 
URL: http://www.science.uts.edu.au/~mikel
Linux enthusiast, active caver and interested in anything
technical.
--------------------------------------------------------------------
--
SLUG - Sydney Linux Users Group Mailing List - http://www.slug.org.au
To unsubscribe send email to slug-request@nospam.slug.org.au with
unsubscribe in the text