X-Spam-Check-By: sourceware.org Date: Thu, 2 Mar 2006 12:44:22 -0800 From: George To: cygwin AT cygwin DOT com Subject: Re: Printing man pages Message-ID: <20060302204422.GA1716@home> Mail-Followup-To: cygwin AT cygwin DOT com References: <20060302065638 DOT GA1528 AT home> <4407422C DOT 3030202 AT ateb DOT com> <4407434D DOT 7030601 AT ateb DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4407434D.7030601@ateb.com> User-Agent: Mutt/1.4.2.1i X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com 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/