groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [mom] R_MARGIN ignored


From: Frederic Chartier
Subject: Re: [mom] R_MARGIN ignored
Date: Fri, 28 Apr 2023 10:53:28 +0200

On 2023-04-27 21:18 -0400, Peter Schaffter wrote:
> On Thu, Apr 27, 2023, Frederic Chartier wrote:
> > I'm having trouble controlling the margins with -mom...  L_MARGIN
> > is honoured but R_MARGIN is ignored.  I must be doing something
> > wrong, but what ?
> 
> You're not doing anything wrong.  It's a bug.  Not sure when it
> crept in, but the fix is simple.  Replace the PAGEWIDTH macro in
> your om.tmac with
> 
> .MAC PAGEWIDTH END
> .    br
> .    nr #PAGE_WIDTH \\$1
> .    if !r#L_MARGIN .L_MARGIN \\n[.o]
> .    if !r#R_MARGIN .R_MARGIN 1i
> .    if '\\*[.T]'pdf' \X'papersize=\\n[#PAGE_WIDTH]z,\\n[#PAGE_LENGTH]z'\c
> .END

Works for me. Thanks, Peter.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]