diff options
author | wl <wl> | 2006-03-19 09:13:43 +0000 |
---|---|---|
committer | wl <wl> | 2006-03-19 09:13:43 +0000 |
commit | fd35600c9ec9bd19e7ba2ed61d9284625745b0ad (patch) | |
tree | 85105bd8ca5ddb0203b75f92e052287f851971f3 /doc | |
parent | 9a5e00057c37a836f28b12a7cae4bd0948003d81 (diff) | |
download | groff-fd35600c9ec9bd19e7ba2ed61d9284625745b0ad.tar.gz |
* doc/groff.texinfo: Improve documentation of `.sp'.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/groff.texinfo | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/doc/groff.texinfo b/doc/groff.texinfo index 5133775b..41fffcec 100644 --- a/doc/groff.texinfo +++ b/doc/groff.texinfo @@ -7091,7 +7091,27 @@ Space downwards @var{distance}. With no argument it advances 1@tie{}line. A negative argument causes @code{gtroff} to move up the page the specified distance. If the argument is preceded by a @samp{|} then @code{gtroff} moves that distance from the top of the page. This -request causes a line break. The default scaling indicator is @samp{v}. +request causes a line break, and that adds the current line spacing to +the space you have just specified. The default scaling indicator is +@samp{v}. + +For convenience you may wish to use the following macros to set the height +of the next line at a given distance from the top or the bottom of the +page: + +@Example +.de y-from-top-down +. sp |\\$1-\\n[.v]u +.. +. +.de y-from_bot-up +. sp |\\n[.p]u-\\$1-\\n[.v]u +.. +@endExample + +@noindent +A call to @samp{.y-from-bot-up 10c} means that the bottom of the next line +will be at 10@dmn{cm} from the paper edge at the bottom. If a vertical trap is sprung during execution of @code{sp}, the amount of vertical space after the trap is discarded. For example, this |