> You shouldn't be seeing a blank line.  What's more, removing the
> space before the opening parens should cause the \R escape to fail
> with 'troff: <file>:<line>: warning: missing number'.  A backtrace
> points directly to the \R line. 
> 
> I'm mystified.  Can you send a small example exhibiting the problem
> (input and output) along with your groff command line?
> 
I cannot reproduce the case without the blank and no extra blank line.
In the attached file the macro Pos1 gives the correct result, but an extra line.
Pos2 gives a wrong result, but I don't see any error message. 
Pos3 gives the correct result without an extra line.
With "man groff" I cannot find an option to enable error messages.

My command line is "groff -Tps  test > test.ps".
I attach the two files.

Thanks for your help,

        ulrich
.ps 20
.vs 22
.nf

.de Pos1 
\R'foo1 (\\n[.d]*254+72)/72000' \\n[foo1] mm/10
..

position: \n[.d] units, \*[Pos1]
position: \n[.d] units, \*[Pos1]

.de Pos2 
\R'foo2(\\n[.d]*254+72)/72000' \\n[foo2] mm/10
..

position: \n[.d] units, \*[Pos2]
position: \n[.d] units, \*[Pos2]

.de Pos3 
\R'foo3 (\\n[.d]*254+72)/72000' \\n[foo3] mm/10
.sp -1v
..

position: \n[.d] units, \*[Pos3]
position: \n[.d] units, \*[Pos3]



Attachment: test.ps
Description: PostScript document

Reply via email to