9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: pmarin.mail@gmail.com (pmarin)
Subject: [9fans] troff macro II
Date: Sat, 26 Mar 2011 02:14:26 +0100	[thread overview]
Message-ID: <AANLkTimEUqCAWQabcNECQ+xSvNDf7tNFCacGk33c=8Jk@mail.gmail.com> (raw)
In-Reply-To: <AANLkTinMeM--bBMG0duHZfuK5eXAi7iZHFQ+TSvZDbdY@mail.gmail.com>

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 <pmarin.mail at gmail.com> 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 <rudolf.sykora at gmail.com> wrote:
>> On 25 March 2011 22:52, pmarin <pmarin.mail at gmail.com> 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
>>
>>
>



      reply	other threads:[~2011-03-26  1:14 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-24 16:54 Rudolf Sykora
     [not found] ` <AANLkTin9Kh3O6qP-tw2VEUSiQsq+K97LXEsCgGOvcwHC@mail.gmail.com>
     [not found]   ` <AANLkTint2rqA6PxTGxaUa49DVaPD-Ocgpy8y4UEVG84z@mail.gmail.com>
2011-03-24 17:36     ` Gregory Pavelcak
2011-03-25 18:21       ` Rudolf Sykora
2011-03-25 20:49 ` pmarin
2011-03-25 21:52 ` pmarin
2011-03-26  0:10   ` Rudolf Sykora
2011-03-26  1:02     ` pmarin
2011-03-26  1:14       ` pmarin [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='AANLkTimEUqCAWQabcNECQ+xSvNDf7tNFCacGk33c=8Jk@mail.gmail.com' \
    --to=pmarin.mail@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).