pandoc/test/tables.ms
John MacFarlane efbb329f1a Groff escaping changes.
- `--ascii` is now turned on automatically for man output, for
  portability.  All man output will be escaped to ASCII.
- In T.P.Writers.Groff, `escapeChar`, `escapeString`, and
  `escapeCode` now take a boolean parameter that selects
  ascii-only output.  This is used by the Ms writer for
  `--ascii`, instead of doing an extra pass after writing
  the document.
- In ms output without `--ascii`, unicode is used whenever
  possible (e.g. for double quotes).
- A few escapes are changed: e.g. `\[rs]` instead of `\\` for
  backslash, and `\ga]` instead of `` \` `` for backtick.
2018-10-18 10:21:34 -07:00

267 lines
2 KiB
Text
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

.LP
Simple table with caption:
.PP
Demonstration of simple table syntax.
.TS
delim(@@) 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
.LP
Simple table without caption:
.PP
.TS
delim(@@) 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
.LP
Simple table indented two spaces:
.PP
Demonstration of simple table syntax.
.TS
delim(@@) 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
.LP
Multiline table with caption:
.PP
Heres the caption. It may span multiple lines.
.TS
delim(@@) 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{
Heres another one.
Note the blank line between rows.
T}
.TE
.LP
Multiline table without caption:
.PP
.TS
delim(@@) 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{
Heres another one.
Note the blank line between rows.
T}
.TE
.LP
Table without column headers:
.PP
.TS
delim(@@) 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
.LP
Multiline table without column headers:
.PP
.TS
delim(@@) 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{
Heres another one.
Note the blank line between rows.
T}
.TE