|
From: | Larry Kollar |
Subject: | Re: [Groff] which request tells postprocessor about papersize |
Date: | Thu, 30 Sep 2004 21:48:45 -0400 |
I tried to print A4 pages generated by `groff -dpaper=a4 -Tps`. Of course this resulted in truncated, shifted and / or scaled output (depending on the printer used). The tmac man page told me to use the -P-pa4 command line option to inform the output driver about the real paper format. Now there are times when I want to put the papersize inside of my groff file and thus will have to tell the postprocessor about what I did. Could anyone tell me how to do that.
When I'm concerned about multiple page sizes, I use a Makefile to drive it. Grab the source for my "Writing Effective Manual Pages" paper at http://home.alltel.net/kollar/groff/effman.tar.gz to see an example; I've also excerpted the Makefile here: .SUFFIXES: .ms .ps .html SMALLFLAGS = -rSMALL=1 -P-p9i,7i effman_s.ps: effman.ms groff $(GROFFLAGS) $(SMALLFLAGS) effman.ms >effman_s.ps The file "msweb.ms" (which gets .so'ed into the main source) sets margins and column widths based on the presence of the "SMALL" register. It should be simple enough to adapt that for A4 or any other page size needed. Hope that gets you started! -- Larry Kollar k o l l a r @ a l l t e l . n e t Unix Text Processing: "UTP Revival" http://home.alltel.net/kollar/utp/
[Prev in Thread] | Current Thread | [Next in Thread] |