This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Printing man pages


On Thu, Mar 02, 2006 at 02:11:09PM -0500, Reid Thompson wrote:
> Reid Thompson wrote:
> >George wrote:
> >>[...]
> >man groff | enscript  -p - | ps2pdf - groff.pdf

I am thoroughly impressed.  For man pages, I think this is optimal as
the default enscript font setting is fixed pitch, and enscript provides
a huge number of options to further customise things.  Come to think of
it, it's probably better all round, and definitely easier than LaTeX for
those one-off jobs.  

Odd, though, that the original A4 setting in
/usr/share/groff/1.18.1/font/devps/DESC seems not to affect the output.
Maybe I should read up on it in my newly-generated PDF?

> wrapped in a script ...
> ----man2pdf----
> #!/bin/bash
> 
> man $1 | enscript  -p - | ps2pdf - ${1}.pdf
> 
> echo "Created ${1}.pdf"

What, no error checking?  ;-)

Thanks for the help.

-- 
George

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]