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.