[Radiance-general] Printing man pages on a Mac on US-sized paper

Thomas Bleicher tbleicher at googlemail.com
Wed Jan 5 15:02:59 PST 2011


What's wrong with this:

groff -Tps -P-pletter -mandoc -c `man -w rtcontrib` > t.ps

Works for me without fiddling with system files.

Taken from the groff man-page, btw.

Thomas


On Wed, Jan 5, 2011 at 5:46 PM, Randolph M. Fritz <RFritz at lbl.gov> wrote:
> (A brief note for anyone who needs this.)
>
> First, set the default paper size in the groff driver by:
>  sudo find /usr/share/groff -name DESC -exec perl -pi -e 's/^papersize
> a4/papersize letter/' {} \;
>
> Then, the following command will create a PostScript file for a page without
> equations or tables:
>    groff -Tps -mandoc -c -dpaper=letter `man -w rtcontrib` >t.ps
>
> t.ps can then be opened in "preview" and printed.
>
> Bah!
> --
> Randolph M. Fritz • RFritz at lbl.gov
> Environmental Energy Technologies Division • Lawrence Berkeley Labs
>
>
>
> _______________________________________________
> Radiance-general mailing list
> Radiance-general at radiance-online.org
> http://www.radiance-online.org/mailman/listinfo/radiance-general
>



More information about the Radiance-general mailing list