]> git.cameronkatri.com Git - mandoc.git/blob - regress/mdoc/Bl/column.in
warn about some non-portable idioms in .Bl -column;
[mandoc.git] / regress / mdoc / Bl / column.in
1 .Dd October 14, 2015
2 .Dt BL-COLUMN 1
3 .Os OpenBSD
4 .Sh NAME
5 .Nm Bl-column
6 .Nd lists with multiple columns
7 .Sh DESCRIPTION
8 .Bl -column "a"
9 .It a
10 .El
11 .Bl -column "a" "b"
12 .It a Ta b
13 .El
14 .\" avoid "c" which means "cm"
15 .Bl -column "a" "b" "cc"
16 .It a Ta b Ta cc
17 .It a b cc
18 .It "a" b cc
19 .It "a b" cc
20 .It "a b cc"
21 .El
22 .Bl -column "a" "b" "cc" "d"
23 .It a Ta b Ta cc Ta d
24 .El
25 .Bl -column "a" "b" "cc" "d" "e"
26 .It a Ta b Ta cc Ta d Ta e
27 .El
28 .\" Probing up to the utter limits of groff.
29 .\" With more than 5 columns or more than 78 characters per line,
30 .\" groff .Bl -column turns completely mad.
31 .\" mandoc can do more, but it's no use testing that.
32 .Bd -literal
33 5 + 35 + 4 + 34 = 78:
34 .Ed
35 .Bl -column "x35xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" "x34xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
36 .It x35xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx Ta x34xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
37 .It a Ta b
38 .El
39 .Bd -literal
40 5 + (22+4)*2 + 21 = 78:
41 .Ed
42 .Bl -column "x22xxxxxxxxxxxxxxxxxxx" "x22xxxxxxxxxxxxxxxxxxx" "x21xxxxxxxxxxxxxxxxxx"
43 .It x22xxxxxxxxxxxxxxxxxxx Ta x22xxxxxxxxxxxxxxxxxxx Ta x21xxxxxxxxxxxxxxxxxx
44 .It a Ta b Ta c
45 .El
46 .Bd -literal
47 5 + 16 + (4+15)*3 = 78:
48 .Ed
49 .Bl -column "x16xxxxxxxxxxxxx" "x15xxxxxxxxxxxx" "x15xxxxxxxxxxxx" "x15xxxxxxxxxxxx"
50 .It x16xxxxxxxxxxxxx Ta x15xxxxxxxxxxxx Ta x15xxxxxxxxxxxx Ta x15xxxxxxxxxxxx
51 .It a Ta b Ta c Ta d
52 .El
53 .Bd -literal
54 5 + 13 + (3+12)*4 = 78:
55 .Ed
56 .Bl -column "x13xxxxxxxxxx" "x12xxxxxxxxx" "x12xxxxxxxxx" "x12xxxxxxxxx" "x12xxxxxxxxx"
57 .It x13xxxxxxxxxx Ta x12xxxxxxxxx Ta x12xxxxxxxxx Ta x12xxxxxxxxx Ta x12xxxxxxxxx
58 .It a Ta b Ta c Ta d Ta e
59 .El
60 .\" Trailing white space in phrases.
61 .Bl -column "aaaa" "bbbb"
62 .It "a" Ta "b"
63 .It "a " Ta "b"
64 .It "a " Ta "b"
65 .It a b
66 .It a b
67 .It a b
68 .El
69 .\" Wrong number of columns.
70 .Bl -column "a" "b"
71 .It
72 .It "a"
73 .It "a" Ta "b"
74 .It
75 .It "a" Ta "b" Ta "c"
76 .It "a" Ta "b" Ta "c" Ta "d"
77 .It "a" Ta "b" Ta "c" Ta "d" Ta "e"
78 .It
79 .El
80 .\" Mixed tab and Ta
81 .Bl -column a b c d
82 .It a b c d
83 .It a b c Ta d
84 .It a b Ta c d
85 .It a b Ta c Ta d
86 .It a Ta b c d
87 .It a Ta b c Ta d
88 .It a Ta b Ta c d
89 .It a Ta b Ta c Ta d
90 .El
91 .\" Macros before and after tabs
92 .Bl -column "aa" "OpenBSD OpenBSD OpenBSD"
93 .It aa Ta Ox Ox Ox Ta tab-tab
94 .It aa Ta Ox Ox Ox tab-ta
95 .It aa Ox Ox Ox Ta ta-tab
96 .It aa Ox Ox Ox ta-ta
97 .It aa Ox Ox Ox ta-bl/ta
98 .It aa Ox Ox Ox ta/bl-ta
99 .It aa Ox Ox Ox ta/bl-bl/ta
100 .It aa Ta bb Ta
101 ta at eol
102 .It aa bb
103 tab at eol
104 .El
105 .\" Interrupted column list
106 .Bl -column "aa" -width 6n -compact "bb" "cc"
107 .It aa Ta bb Ta cc Ta dd
108 .El