Dar All,
I'm afraid I've run into a laughably simple problem inflicted by lack of
understanding the internals of groff.
I want to write a macro which uses its argument to define a register:
.mso s.tmac \" Load ms
.de pageno
\\$1:\c \" displayed as intended
.nr xx \\$1 \" register is not set?
\n[xx] \" register reads zero
..
.\"
.PP
My page number:
.pageno 123
Unfortunately, while the macro argument is shown properly if written as
\\$1, I fail to set a register to the argument, so I get "123:0" instead
of "123:123".
Where is my fault?
Best,
Oliver.
--
Dr. Oliver Corff
Mail:oliver.co...@email.de