[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Groff] absolute positioning
From: |
Werner LEMBERG |
Subject: |
Re: [Groff] absolute positioning |
Date: |
Tue, 13 Feb 2001 01:40:37 +0100 (CET) |
> > I would like to print some text to an absolute position of the
> > page. I found in the troff manual (11.1. Local Motions) the /v
> > and the /h commands but it sounds like a relative move command.
>
> The absolute position indicator (|) prefixed to a number generates
> the distance to that absolute position. For example:
>
> \h'1i' \" move right 1 inch
>
> \h'|1i' \" move (left or right) to 1 inch from left edge of page
This is not completely correct. In the horizontal direction, `|'
specifies the distance from the current *input* line position (+
indentation + page offset).
Example:
\h'5n'test
.br
abc\c
\h'5n'test
.br
gives
test
abc test
For vertical motions, `|' indeed specifies an absolute location.
Werner