[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[groff] 02/17: doc/groff.texi (Page Control): Revise \n(nl stuff.
From: |
G. Branden Robinson |
Subject: |
[groff] 02/17: doc/groff.texi (Page Control): Revise \n(nl stuff. |
Date: |
Tue, 25 May 2021 09:35:46 -0400 (EDT) |
gbranden pushed a commit to branch master
in repository groff.
commit 717b54024490d7eb6c799f4607edadcfa44535c7
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Tue May 25 13:17:55 2021 +1000
doc/groff.texi (Page Control): Revise \n(nl stuff.
* doc/groff.texi (Page Control): Revise \n[nl] discussion.
- Mildly recast.
- Add forward cross reference to Traps node.
- Update example to be more realistic and use Texinfo @result command
for output.
---
doc/groff.texi | 46 +++++++++++++++++++++-------------------------
1 file changed, 21 insertions(+), 25 deletions(-)
diff --git a/doc/groff.texi b/doc/groff.texi
index 476f0e2..8c9dba0 100644
--- a/doc/groff.texi
+++ b/doc/groff.texi
@@ -9182,49 +9182,45 @@ request allows negative values for @var{space},
@code{os} ignores them.
@cindex position, vertical, current (@code{nl})
This register contains the current vertical position. If the vertical
position is zero and the top of page transition hasn't happened yet,
-@code{nl} is set to negative value. @code{gtroff} itself does this at
-the very beginning of a document before anything has been printed, but
-the main usage is to plant a header trap on a page if this page has
-already started.
-
-Consider the following:
+@code{nl} is negative. GNU @code{troff} itself does this at the very
+beginning of a document before anything has been printed---but the main
+application for such a value is to plant and spring a header trap on a
+page if that page has already started (@pxref{Traps}).
@Example
-.de xxx
+.de header
. sp
-. tl ''Header''
+. tl ''Goldbach Solution''
. sp
..
.
First page.
+@r{@dots{}}
.bp
-.wh 0 xxx
+.wh 0 header \" plant header trap at top of page
.nr nl (-1)
Second page.
+@r{@dots{}}
@endExample
-
-@noindent
-Result:
-
@Example
-First page.
-
-...
-
- Header
-
-Second page.
-
-...
+ @result{} First page.
+ @result{}
+ @result{} @r{@dots{}}
+ @result{}
+ @result{} Goldbach Solution
+ @result{}
+ @result{} Second page.
+ @result{}
+ @result{} @r{@dots{}}
@endExample
@noindent
-Without resetting @code{nl} to a negative value, the just planted trap
+Without resetting @code{nl} to a negative value, the trap just planted
would be active beginning with the @emph{next} page, not the current
one.
-@xref{Diversions}, for a comparison with the @code{.h} and @code{.d}
-registers.
+@xref{Diversions}, for a comparison of @code{nl} with the @code{.h} and
+@code{.d} registers.
@endDefreg
@codequotebacktick off
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [groff] 02/17: doc/groff.texi (Page Control): Revise \n(nl stuff.,
G. Branden Robinson <=