delorie.com/archives/browse.cgi | search |
X-Spam-Check-By: | sourceware.org |
Message-ID: | <4407434D.7030601@ateb.com> |
Date: | Thu, 02 Mar 2006 14:11:09 -0500 |
From: | Reid Thompson <reid DOT thompson AT ateb DOT com> |
Reply-To: | reid DOT thompson AT ateb DOT com |
User-Agent: | Thunderbird 1.5 (Windows/20051201) |
MIME-Version: | 1.0 |
To: | cygwin AT cygwin DOT com |
Subject: | Re: Printing man pages |
References: | <20060302065638 DOT GA1528 AT home> <4407422C DOT 3030202 AT ateb DOT com> |
In-Reply-To: | <4407422C.3030202@ateb.com> |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Reid Thompson wrote: > George wrote: >> Generating a PDF from the grep man page, for example, using: >> >> man -t `man -w grep` | ps2pdf - grep.pdf >> >> which, by default, is actually >> >> /usr/bin/groff -Tps -mandoc `man -w grep` | ps2pdf - grep.pdf >> >> results in a fairly unattractive PDF file. The man page title is >> dropped from the output, and the top margin is borked. >> >> On the other hand, using >> >> /usr/bin/groff -Thtml -mandoc `man -w grep` > grep.html >> >> yields something more satisfactory, but not in a format for printing. >> >> I'm finding that reading through the groff man page(s) is like >> [obligatory hippo joke], so I'm hoping I'm missing something obvious. >> >> Thanks. >> >> > man groff | enscript -p - | ps2pdf - groff.pdf > > -- > 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/ > wrapped in a script ... ----man2pdf---- #!/bin/bash man $1 | enscript -p - | ps2pdf - ${1}.pdf echo "Created ${1}.pdf" ----------------- -- 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |