[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Groff] UTP Chapters and problems with macros.
From: |
Werner LEMBERG |
Subject: |
Re: [Groff] UTP Chapters and problems with macros. |
Date: |
Wed, 24 Jul 2002 11:59:45 +0200 (CEST) |
> Attached is a sample troff table that will produce the
> warning. I was mistaken on one area. The output is identical to
> that produced by groff-1.17.2. The only difference is that 1.17.2
> does not produce the warning.
The warnings are correct! Due to the many `\ ' which insert
unpaddable whitespace groff indeed can't adjust the line. The right
way to achieve the desired effect is to use .nf and .fi instead:
----------------------------------------------------------------------
.TS
expand box;
c c
l lw(3.5i).
Escape Description
_
T{
\f[C]\\v\fP '\f[I]distance'\fP
T} T{
.nf
Move \f[I]distance\fP vertically down the page. Precede \f[I]distance\fP
with a minus sign to move back up the page.
.fi
T}
T{
\f[C]\\h\fP '\f[I]distance'\fP
T} T{
.nf
Move \f[I]distance\fP horizontally to the right. Precede \f[I]distance\fP
with a minus sign to move back to the left.
.fi
T}
.TE
----------------------------------------------------------------------
All warnings are gone.
Personally, I would prefer to use .na and .ad instead to produce
ragged-right text and to avoid dependency on the actual text width of
the document, but this is a minor issue since the width is already
specified.
Werner