delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/03/02/13:52:17

X-Spam-Check-By: sourceware.org
Date: Thu, 2 Mar 2006 10:52:06 -0800
From: George <d1945 AT sbcglobal DOT net>
To: cygwin AT cygwin DOT com
Subject: Re: Printing man pages
Message-ID: <20060302185206.GA1188@home>
Reply-To: George <d1945 AT sbcglobal DOT net>
Mail-Followup-To: cygwin AT cygwin DOT com
References: <20060302065638 DOT GA1528 AT home> <loom DOT 20060302T150324-302 AT post DOT gmane DOT org>
Mime-Version: 1.0
In-Reply-To: <loom.20060302T150324-302@post.gmane.org>
User-Agent: Mutt/1.4.2.1i
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
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

On Thu, Mar 02, 2006 at 02:08:03PM +0000, Tony Richardson wrote:
> George <d1945 <at> sbcglobal.net> writes:
         ^^^^^^^^^^^^^^^^^^^^^^^^^^

Brilliant idea.  I think I'll steal it, and hope others do the same.

> > 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.
> 
> Sounds like it might be an incorrect media size setting.
> The default groff PostScript media size is A4.  Changing the
> papersize setting in /usr/share/groff/1.18.1/font/devps/DESC
> to "letter" may help.

Bingo!

It's funny that the thought occurred to me, too.  I came across another
A4 setting somewhere recently and remember being extremely annoyed at
seeing a non-US-centric setting.  The lack of chauvanism was refreshing,
but not so much as to make me feel less annoyed.

Thanks very much 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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019