From mboxrd@z Thu Jan 1 00:00:00 1970 From: pmarin.mail@gmail.com (pmarin) Date: Fri, 25 Mar 2011 21:49:57 +0100 Subject: [9fans] troff macro II In-Reply-To: References: Message-ID: Topicbox-Message-UUID: c1582eba-ead6-11e9-9d60-3106f5b1d025 Read carefully the section 9, 10 and 11 of "A TROFF Tutorial"[1]. I think is exactly what you are looking for. [1] http://www.kohala.com/start/troff/v7man/trofftut/trofftut.ps On Thu, Mar 24, 2011 at 5:54 PM, Rudolf Sykora wrote: > Hello 9fans, > > since in the previous thread started by me ('troff macros for > typesetting books/longer texts') nobody touched my question about > producing wanted headings, I started experimenting, but so far has not > been quite successful. > > Since text to appear in my headings is to mirror section names, like > '1.2', and a beginning of such a section appears somewhere lower on a > page---definitely below the page heading---, I must create a page > heading just after the very page is filled, i.e., as I feel, the > heading could actually be produced when the ms .BT macro (usually used > to typeset footings) is called. So I naively tried to redefine the .BT > macro, actually, by just appending 4 extra lines: > > .de BT > .nr PX \\n(.s > .nr PF \\n(.f > .ft 1 > .ps \\n(PS > 'lt \\n(LTu > .po \\n(POu > .if \\n%>0 .tl \(ts\\*(LF\(ts\\*(CF\(ts\\*(RF\(ts > .ft \\n(PF > .ps \\n(PX > .\" ?ABOVE IS THE ORIGINAL, BELOW MY APPENDIX > .mk > \v'|0.5i' > .tl 'a'b'c' > .rt > .. > > Please consider this just as an experiment (no point-size changes,...). > This for some reason doesn't work. > Since some of you probably have experience, could sb. tell what is wrong? > > Thank you > Ruda > >