From owner-freebsd-questions Fri Feb 2 4:39:21 2001 Delivered-To: freebsd-questions@freebsd.org Received: from nisser.com (c0039.upc-c.chello.nl [212.187.0.39]) by hub.freebsd.org (Postfix) with ESMTP id 6C0BF37B401 for ; Fri, 2 Feb 2001 04:39:03 -0800 (PST) Received: from nisser.com (roelof [10.0.0.2]) by nisser.com (8.9.3/8.9.2) with ESMTP id NAA65098; Fri, 2 Feb 2001 13:38:59 +0100 (CET) (envelope-from roelof@nisser.com) Message-ID: <3A7AAA63.22BEBC5D@nisser.com> Date: Fri, 02 Feb 2001 13:38:59 +0100 From: Roelof Osinga Organization: Nisser - Nr. 1 in Veiligheid X-Mailer: Mozilla 4.72 [en] (Windows NT 5.0; U) X-Accept-Language: en,pdf MIME-Version: 1.0 To: David Kelly Cc: freebsd-questions@FreeBSD.ORG Subject: Re: troff to postscript at A4? References: <200102020350.f123oxN92050@grumpy.dyndns.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG David Kelly wrote: > > 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. 'man -t' means pass it groff. Groff is a typesetter extended way beyond the originall troff. One of the devices is 'ps' for PostScript. It's even the default device. Once the source has been compiled to ps it's to late. Somewhere before that in the pipeline it has to be typeset for an A4 format. Last time I looked at that, however, was in '93 using the EMX(?) port of things GNU to OS/2. One of them things was TeX. That had the same 'problem'. From TeX to dvi, from dvi to postscript. Somewhere in that pipeline it had to be made clear to TeX what the actual papersize was. Alas, too long ago for my shabby memory, I'm afraid. Then again, man pages are in troff not TeX so... > 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 > ... See my reply to Ted. > ... > 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. :-) Those are specialised ASCII to PS formatters. There's also an utility that will do a ps to ps conversion (psutil). Hm, that also has a "fixtpps (perl) filter to fix Troff Tpscript documents". Doesn't say what problem gets fixed or why, though. Still... Whatever happenned with that common print something or other standard? Was supposed to surpass Windows in userfriendlyness. Roelof -- Home is where the (@) http://eboa.com/ is. Nisser home -- http://www.Nisser.com/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message