From mboxrd@z Thu Jan 1 00:00:00 1970 From: pmarin.mail@gmail.com (pmarin) Date: Sat, 26 Mar 2011 02:14:26 +0100 Subject: [9fans] troff macro II In-Reply-To: References: Message-ID: Topicbox-Message-UUID: c1ad2c08-ead6-11e9-9d60-3106f5b1d025 Also to pay attention to the command .wh in my example: .wh -1i NP \" When you reach the final of the page less 1 inch call the command .NP On Sat, Mar 26, 2011 at 2:02 AM, pmarin wrote: > Becouse "The backslash character \ is used to introduce troff commands > and special characters *within* a line of text" (from the Troff > tutorial) > > Try: > .\" ?ABOVE IS THE ORIGINAL, BELOW MY APPENDIX > .mk > .tl '\v'-10.5i'a'b'c\v'+10.5i'' > .rt > .. > > On Sat, Mar 26, 2011 at 1:10 AM, Rudolf Sykora wrote: >> On 25 March 2011 22:52, pmarin wrote: >>> DONE! >>> Try the attached code. I am not using the ms macros. You will to >>> change the ms macros to get something similar. >>> >>> troff test.ms | tr2post | psfonts > test.ps >>> >>> Cheers. >>> pmarin >> >> Yes. This works. Actually, my problem has always only been: how to get >> back to the top of a page; to have a correct string prepared to put >> there has been easy for me. Note what I wrote in my 1st post of this >> thread: >> . >> .\" ?ABOVE IS THE ORIGINAL, BELOW MY APPENDIX >> .mk >> \v'|0.5i' >> .tl 'a'b'c' >> .rt >> .. >> >> and it comes in a modified .BT macro (which is somewhat equivalent to >> your .NP; ms actually sets [as far as I know] 3 traps on a page, 1 at >> the top [.NP] and 2 at the bottom [.FO a .BT]). If I had written just >> . >> .\" ?ABOVE IS THE ORIGINAL, BELOW MY APPENDIX >> .tl '\v'-10.5i'a'b'c\v'+10.5i'' >> .. >> >> as you have, it would have basically done what I want. So now the >> question is why >> .tl '\v'-10.5i'a'b'c\v'+10.5i'' >> moves back and does the work, whilst >> .mk >> \v'|0.5i' >> .tl 'a'b'c' >> .rt >> does not. >> Nor does this, for instance: >> \v'-10.5i' >> .tl 'a'b'c' >> \v'+10.5i' >> >> Thanks for your help >> Ruda >> >> >