🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.text
Article #6536

Re: fancy margins with troff -mm

#6536
From: Michael Morrell
Date: Fri, 09 Jun 1989 18:24
26 lines
1285 bytes
/ hpsal2:comp.text / holub@violet.berkeley.edu / 10:39 am  Jun  8, 1989 /
Has anyone modified -mm so that it will print wide left and narrow right
margines on even numbered pages and wide-right/narrow-left margins on odd pages?
That is, I need the wide margin to be at the outside of the page and the narrow
margin to be at the inside, like this:

even (left) page:	odd (right) page:
+----------------+	+----------------+
| header....text |	| header....text |
|		 |	|		 |
|      text text |	| text text 	 |
|      text text |	| text text 	 |
|      text text |	| text text 	 |
|      text text |	| text text 	 |
+----------------+	+----------------+
----------

I think all you have to do is switch the page offset for odd and even pages.
Add some code like:

  .if e .po 2i
  .if o .po 0

in either a header or footer macro (for example, .PX).

    Michael
Technical Details
Message-ID: <2610027@hpsal2.HP.COM>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!ucbvax!hplabs!hpda!hpcupt1!hpsal2!morrell
References: <25354@agate.BERKELEY.EDU>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!ucbvax!hplabs!hpda!hpcupt1!hpsal2!morrell
From: morrell@hpsal2.HP.COM (Michael Morrell)
Newsgroups: comp.text
Subject: Re: fancy margins with troff -mm
Message-ID: <2610027@hpsal2.HP.COM>
Date: 9 Jun 89 18:24:38 GMT
References: <25354@agate.BERKELEY.EDU>
Organization: HP System Architecture Lab, Cupertino
Lines: 26