From owner-freebsd-questions Thu Feb 1 19:52: 0 2001 Delivered-To: freebsd-questions@freebsd.org Received: from grumpy.dyndns.org (user-24-214-56-129.knology.net [24.214.56.129]) by hub.freebsd.org (Postfix) with ESMTP id 729B937B4EC for ; Thu, 1 Feb 2001 19:51:42 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by grumpy.dyndns.org (8.11.1/8.11.1) with ESMTP id f123oxN92050; Thu, 1 Feb 2001 21:50:59 -0600 (CST) (envelope-from dkelly@grumpy.dyndns.org) Message-Id: <200102020350.f123oxN92050@grumpy.dyndns.org> X-Mailer: exmh version 2.3.1 01/18/2001 with nmh-1.0.4 To: Roelof Osinga Cc: freebsd-questions@FreeBSD.ORG From: David Kelly Subject: Re: troff to postscript at A4? In-reply-to: Message from Roelof Osinga of "Fri, 02 Feb 2001 02:13:51 +0100." <3A7A09CF.A4BC165A@nisser.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 01 Feb 2001 21:50:59 -0600 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Roelof Osinga writes: > > How can I make it so that 'man -t id | mail -s man roelof@eboa.com' > will result in a mailed postscript file which, when printed on an > A4 printer, will lead to a nicely formatted and fully used A4 print > out. [...] > Which trick am I missing? One is the data is already in postscript format (page size is already set) before it ever reaches lpr. And in this situation it never even reaches lpr. > PS checked the man pages, the manual, freebsddiary, searched > the lists, searched the web, tried #freebsd... no dice. Then again, > that usually means I missed some little detail. But which? man groff pointed me to this file which is where I think your solution lies. But as one not used to printing on A4, it is something I'd think would have already been prepared. Haven't found an A4 switch. /usr/share/groff_font/devps/DESC Think if you would: cd /usr/share/groff_font cp -rp devps devpsUS and then edit on /usr/share/groff_font/devps/DESC then I think your printing will work. You might name the new directory devpsA4, edit the DESC file therein, and "setenv GROFF_TYPESETTER psA4" when you want A4 output. If this works the way I suspect then the default behavior will not be altered, only the new added. There is /usr/ports/print/a2ps43-a4 which is simpler and smaller than the non-43 version which you might look into for sane A4 PS page dimmensions. Compare the output of a2ps43-a4 to "groff -TpsA4" before killing any more trees than you have to. :-) -- David Kelly N4HHE, dkelly@hiwaay.net ===================================================================== The human mind ordinarily operates at only ten percent of its capacity -- the rest is overhead for the operating system. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message