[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Groff] Behviour of .write request
From: |
Radek |
Subject: |
[Groff] Behviour of .write request |
Date: |
Tue, 14 Apr 2015 22:21:52 +0200 |
Hello,
I'm learnig groff and run into following problem.
In ".de article" macro I use following
... typeset the article header where article is like chapter.
... play a games with numerci register counting articles, sections, ...
.sp 5v
\fCactual_page=\\n[actual_page], %=\\n[%]\fP
.tm Article: \\$1, \\n[%]
.\" Generate TOC entry
.write toc .ta .25i 5i +.25iR
.write toc \t\\n[article_number] \\$1 \a\t\\n[%],\\n[actual_page]
.write toc .br
..
The problem is, I see good numbers from \fCactual_page=
But the numbers from .tm command are wrong and the numbers writtn into
toc stream are also wrong. They do not match.
The numbers \n% and \n[actual_page] written to toc slowly depart from
real \n% and \n[actual_page]. At the end of cca 25 page document
there is difference is 5 pages.
--
Radek
- [Groff] Behviour of .write request,
Radek <=