форматировать таблицы в документах groff (format tables in groff documents)
Примеры (Examples)
A simple table definition follows.
.TS
c c c .
This iscentered
Well, thisalso
.TE
By using c c c
, each cell in the whole table will be centered.
The separating character is here the default tab.
The result is
This is centered
Well, this also
This definition is identical to
.TS
tab(@);
ccc.
This@is@centered
Well,@this@also
.TE
Here, the separating tab character is changed to the letter @
.
Moreover a title can be added and the centering directions can be
changed to many other formats:
.TS
tab(@);
c s s
l c n .
Title
left@centers@123
another@number@75
.TE
The result is
Title
left centers 123
another number 75
Here l
means left-justified, and n
means numerical, which is here
right-justified.