|
From: | joerg van den hoff |
Subject: | Re: [Groff] pointsize changes in .NH ms-macro |
Date: | Tue, 07 Sep 2004 17:20:25 +0200 |
User-agent: | Mozilla Thunderbird 0.8 (Macintosh/20040902) |
Keith Marshall wrote:
On Monday 06 September 2004 8:06 pm, I wrote:On Monday 06 September 2004 4:30 pm, joerg van den hoff wrote:. --------< snip >--------------------it looks like the pointsize for the current footer is that which is in the PS register valid on the top of the *next* page (more precisely: the PS register itself behaves unexpectedly (at least for me)). did I miss something or is this a bug?Not sure about it being a bug, but ... .de SHEAD .\"inputs: $1: NH-level, $2: title .\"------ .br .nr incps 4-\\$1 .if \\n[incps]<0 .nr incps 0 \"just in case ... .nr PS \\n(PS+\\n[incps] .nr VS \\n(VS+\\n[incps] .ne \\n(VSp .NH \\$1 \\$2 .nr PS \\n(PS-\\n[incps] .nr VS \\n(VS-\\n[incps] .\" .. ... would seem to give the effect you are looking for -- note the addition of the .br and .ne requests.And further experimentation would suggest that it is the .br which is critical -- .fl will also work in place of .br, but the .ne would appear to be redundant!The .NH macro itself introduces a break, which springs the bottom of page trap. However, you have changed the point size *before* the trap is sprung, so your new point size affects the footer and header text within the ensuing page transition. By forcing the break before the point size change, you achieve the effect you desire.HTH. Best regards, Keith. _______________________________________________ Groff mailing list address@hidden http://lists.gnu.org/mailman/listinfo/groff
keith,thanks again for the help which solved (and explained) the problem in the first place. but:
in the attached expample the problem persists if, instead of a text body, a sufficiently large postscript file (I included one which is expected in the current directory where tt2.trf resides) is included with PSPIC. again the incorrect point size in the footer (and subsequent header) is only present if the next section starts at the top of the next page. this occurs now despite the fact that the .br is included in the .SHEAD definition.
any ideas (from anybody)? best regards, joerg
.pl 29.7c .ll 21c-2i . nr PO 1.25i . po 1.25i \"enforce PO on first page without additional .bp . nr HM 1.0i . nr FM 1.0i . if !rLL .nr LL \n[.l]u . nr LT \n(LL . nr PS 13 . nr VS \n(PS+4 .\" .ds LF "pointsize: \\n(PS------------------------------------------------------------------ .\" .de SHEAD .br .\"inputs: $1: NH-level, $2: title .\"------ .nr incps 4-\\$1 .if \\n[incps]<0 .nr incps 0 \"just in case ... .nr PS \\n(PS+\\n[incps] .nr VS \\n(VS+\\n[incps] .NH \\$1 \\$2 .nr PS \\n(PS-\\n[incps] .nr VS \\n(VS-\\n[incps] .\" .. .\"============================================================================= . SHEAD 1 "pointsize: \\n(PS .\"============================================================================= .PSPIC tt.ps .LP text text text text text text text text text text text text .ig text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text .. .\"============================================================================= . SHEAD 1 "pointsize: \\n(PS .\"============================================================================= .LP pointsize: \n(PS test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test
tt.ps
Description: PostScript document
[Prev in Thread] | Current Thread | [Next in Thread] |