mirror of
https://github.com/jgm/pandoc.git
synced 2026-08-23 08:46:56 +00:00
This affects T.P.RoffChar, T.P.Writers.Roff, and the Man and Ms writers. That is, `\(xy` instead of `\[xy]`. This was the original AT&T troff form and is the most widely supported. The bracketed form causes problem for some tools, e.g. `makewhatis` on macOS. Closes #10716.
268 lines
1.9 KiB
Groff
268 lines
1.9 KiB
Groff
.PP
|
|
Simple table with caption:
|
|
.PP
|
|
Demonstration of simple table syntax.
|
|
.TS
|
|
tab(@);
|
|
r l c l.
|
|
T{
|
|
Right
|
|
T}@T{
|
|
Left
|
|
T}@T{
|
|
Center
|
|
T}@T{
|
|
Default
|
|
T}
|
|
_
|
|
T{
|
|
12
|
|
T}@T{
|
|
12
|
|
T}@T{
|
|
12
|
|
T}@T{
|
|
12
|
|
T}
|
|
T{
|
|
123
|
|
T}@T{
|
|
123
|
|
T}@T{
|
|
123
|
|
T}@T{
|
|
123
|
|
T}
|
|
T{
|
|
1
|
|
T}@T{
|
|
1
|
|
T}@T{
|
|
1
|
|
T}@T{
|
|
1
|
|
T}
|
|
.TE
|
|
.PP
|
|
Simple table without caption:
|
|
.PP
|
|
.TS
|
|
tab(@);
|
|
r l c l.
|
|
T{
|
|
Right
|
|
T}@T{
|
|
Left
|
|
T}@T{
|
|
Center
|
|
T}@T{
|
|
Default
|
|
T}
|
|
_
|
|
T{
|
|
12
|
|
T}@T{
|
|
12
|
|
T}@T{
|
|
12
|
|
T}@T{
|
|
12
|
|
T}
|
|
T{
|
|
123
|
|
T}@T{
|
|
123
|
|
T}@T{
|
|
123
|
|
T}@T{
|
|
123
|
|
T}
|
|
T{
|
|
1
|
|
T}@T{
|
|
1
|
|
T}@T{
|
|
1
|
|
T}@T{
|
|
1
|
|
T}
|
|
.TE
|
|
.PP
|
|
Simple table indented two spaces:
|
|
.PP
|
|
Demonstration of simple table syntax.
|
|
.TS
|
|
tab(@);
|
|
r l c l.
|
|
T{
|
|
Right
|
|
T}@T{
|
|
Left
|
|
T}@T{
|
|
Center
|
|
T}@T{
|
|
Default
|
|
T}
|
|
_
|
|
T{
|
|
12
|
|
T}@T{
|
|
12
|
|
T}@T{
|
|
12
|
|
T}@T{
|
|
12
|
|
T}
|
|
T{
|
|
123
|
|
T}@T{
|
|
123
|
|
T}@T{
|
|
123
|
|
T}@T{
|
|
123
|
|
T}
|
|
T{
|
|
1
|
|
T}@T{
|
|
1
|
|
T}@T{
|
|
1
|
|
T}@T{
|
|
1
|
|
T}
|
|
.TE
|
|
.PP
|
|
Multiline table with caption:
|
|
.PP
|
|
Here\(cqs the caption. It may span multiple lines.
|
|
.TS
|
|
tab(@);
|
|
cw(10.5n) lw(9.6n) rw(11.4n) lw(24.5n).
|
|
T{
|
|
Centered Header
|
|
T}@T{
|
|
Left Aligned
|
|
T}@T{
|
|
Right Aligned
|
|
T}@T{
|
|
Default aligned
|
|
T}
|
|
_
|
|
T{
|
|
First
|
|
T}@T{
|
|
row
|
|
T}@T{
|
|
12.0
|
|
T}@T{
|
|
Example of a row that spans multiple lines.
|
|
T}
|
|
T{
|
|
Second
|
|
T}@T{
|
|
row
|
|
T}@T{
|
|
5.0
|
|
T}@T{
|
|
Here\(cqs another one.
|
|
Note the blank line between rows.
|
|
T}
|
|
.TE
|
|
.PP
|
|
Multiline table without caption:
|
|
.PP
|
|
.TS
|
|
tab(@);
|
|
cw(10.5n) lw(9.6n) rw(11.4n) lw(24.5n).
|
|
T{
|
|
Centered Header
|
|
T}@T{
|
|
Left Aligned
|
|
T}@T{
|
|
Right Aligned
|
|
T}@T{
|
|
Default aligned
|
|
T}
|
|
_
|
|
T{
|
|
First
|
|
T}@T{
|
|
row
|
|
T}@T{
|
|
12.0
|
|
T}@T{
|
|
Example of a row that spans multiple lines.
|
|
T}
|
|
T{
|
|
Second
|
|
T}@T{
|
|
row
|
|
T}@T{
|
|
5.0
|
|
T}@T{
|
|
Here\(cqs another one.
|
|
Note the blank line between rows.
|
|
T}
|
|
.TE
|
|
.PP
|
|
Table without column headers:
|
|
.PP
|
|
.TS
|
|
tab(@);
|
|
r l c r.
|
|
T{
|
|
12
|
|
T}@T{
|
|
12
|
|
T}@T{
|
|
12
|
|
T}@T{
|
|
12
|
|
T}
|
|
T{
|
|
123
|
|
T}@T{
|
|
123
|
|
T}@T{
|
|
123
|
|
T}@T{
|
|
123
|
|
T}
|
|
T{
|
|
1
|
|
T}@T{
|
|
1
|
|
T}@T{
|
|
1
|
|
T}@T{
|
|
1
|
|
T}
|
|
.TE
|
|
.PP
|
|
Multiline table without column headers:
|
|
.PP
|
|
.TS
|
|
tab(@);
|
|
cw(10.5n) lw(9.6n) rw(11.4n) lw(24.5n).
|
|
T{
|
|
First
|
|
T}@T{
|
|
row
|
|
T}@T{
|
|
12.0
|
|
T}@T{
|
|
Example of a row that spans multiple lines.
|
|
T}
|
|
T{
|
|
Second
|
|
T}@T{
|
|
row
|
|
T}@T{
|
|
5.0
|
|
T}@T{
|
|
Here\(cqs another one.
|
|
Note the blank line between rows.
|
|
T}
|
|
.TE
|