Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 01 Feb 2001 21:50:59 -0600
From:      David Kelly <dkelly@hiwaay.net>
To:        Roelof Osinga <roelof@nisser.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: troff to postscript at A4? 
Message-ID:  <200102020350.f123oxN92050@grumpy.dyndns.org>
In-Reply-To: Message from Roelof Osinga <roelof@nisser.com>  of "Fri, 02 Feb 2001 02:13:51 %2B0100." <3A7A09CF.A4BC165A@nisser.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200102020350.f123oxN92050>