Debian Codegraph @

tests/roots/test-latex-table/tabular.rst

raw
1 tabular and tabulary
2 ====================
3
4 simple table
5 ------------
6
7 ======= =======
8 header1 header2
9 ======= =======
10 cell1-1 cell1-2
11 cell2-1 cell2-2
12 cell3-1 cell3-2
13 ======= =======
14
15 table having widths option
16 --------------------------
17
18 .. _mytabular:
19
20 .. table::
21 :widths: 30,70
22 :name: namedtabular
23 :class: booktabs, colorrows
24
25 ======= =======
26 header1 header2
27 ======= =======
28 cell1-1 cell1-2
29 cell2-1 cell2-2
30 cell3-1 cell3-2
31 ======= =======
32
33 See :ref:`this <mytabular>`, same as namedtabular_.
34
35 tabulary having align option
36 ----------------------------
37
38 .. table::
39 :align: right
40
41 ======= =======
42 header1 header2
43 ======= =======
44 cell1-1 cell1-2
45 cell2-1 cell2-2
46 cell3-1 cell3-2
47 ======= =======
48
49 tabular having align option
50 ---------------------------
51
52 .. table::
53 :align: left
54 :widths: 30,70
55
56 ======= =======
57 header1 header2
58 ======= =======
59 cell1-1 cell1-2
60 cell2-1 cell2-2
61 cell3-1 cell3-2
62 ======= =======
63
64 table with tabularcolumns
65 -------------------------
66
67 .. tabularcolumns:: cc
68
69 ======= =======
70 header1 header2
71 ======= =======
72 cell1-1 cell1-2
73 cell2-1 cell2-2
74 cell3-1 cell3-2
75 ======= =======
76
77 table having three paragraphs cell in first col
78 -----------------------------------------------
79
80 +--------------+
81 | header1 |
82 +==============+
83 | cell1-1-par1 |
84 | |
85 | cell1-1-par2 |
86 | |
87 | cell1-1-par3 |
88 +--------------+
89
90
91 table having caption
92 --------------------
93
94 .. list-table:: caption for table
95 :header-rows: 1
96
97 * - header1
98 - header2
99 * - cell1-1
100 - cell1-2
101 * - cell2-1
102 - cell2-2
103 * - cell3-1
104 - cell3-2
105
106 table having verbatim
107 ---------------------
108
109 .. list-table::
110 :header-rows: 1
111
112 * - header1
113 - header2
114 * - ::
115
116 hello world
117
118 - cell1-2
119 * - cell2-1
120 - cell2-2
121 * - cell3-1
122 - cell3-2
123
124 table having formerly problematic
125 ---------------------------------
126
127 .. list-table::
128 :header-rows: 1
129
130 * - header1
131 - header2
132 * - + item1
133 + item2
134 - cell1-2
135 * - cell2-1
136 - cell2-2
137 * - cell3-1
138 - cell3-2
139
140 table having widths and formerly problematic
141 --------------------------------------------
142
143 .. list-table::
144 :header-rows: 1
145 :widths: 30,70
146
147 * - header1
148 - header2
149 * - + item1
150 + item2
151 - cell1-2
152 * - cell2-1
153 - cell2-2
154 * - cell3-1
155 - cell3-2
156
157 table having stub columns and formerly problematic
158 --------------------------------------------------
159
160 .. list-table::
161 :header-rows: 1
162 :stub-columns: 2
163
164 * - header1
165 - header2
166 - header3
167 * - + instub1-1a
168 + instub1-1b
169 - instub1-2
170 - notinstub1-3
171 * - cell2-1
172 - cell2-2
173 - cell2-3