gobbi@crcge1.UUCP (Laurent Gobbi) (07/28/87)
HELP !!! Is there a guru of troff among you ? .nr xx nn means : the register xx takes the value nn (everybody knows...) But what means : .nr xx n1 n2 (I've seen in 'me' package something like .nr ch 0 1) Please mail gobbi@crcge1. thank you.
straka@ihlpf.ATT.COM (Straka) (07/30/87)
In article <2730@crcge1.UUCP> gobbi@crcge1.UUCP (Laurent Gobbi) writes: > But what means : > .nr xx n1 n2 (I've seen in 'me' package something > like .nr ch 0 1) According to my documentation, .nr R +N M The number register R is assigned the value +N with respect to the previous value, if any. The automatic incrementing value is set to M. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -- Rich Straka ihnp4!ihlpf!straka Advice for the day: "MSDOS - just say no."
pls@sortac.UUCP (Pat Sullivan) (07/31/87)
In article <2730@crcge1.UUCP> gobbi@crcge1.UUCP writes: > .nr xx nn > means : > the register xx takes the value nn (everybody knows...) > But what means : > .nr xx n1 n2 Actually, in ".nr xx nn", nn may be signed, in which case register xx is incremented or decremented by nn. In ".nr xx n1 n2", xx takes the value n1, and xx's auto-increment value is set to n2. After this form of .nr, "\n+(xx" would be interpreted as the value of xx after incrementing xx by n2; "\n-(xx" would likewise be interpreted as the value of xx after decrementing xx by n2. ============================================================ Pat Sullivan - {akgua|ihnp4}!sortac!pls - voice 404-257-7382