Debian Codegraph @

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

raw
1 complex tables
2 ==============
3
4 grid table
5 ----------
6
7 .. rst-class:: nocolorrows
8
9 +---------+---------+---------+
10 | header1 | header2 | header3 |
11 +=========+=========+=========+
12 | cell1-1 | cell1-2 | cell1-3 |
13 +---------+ +---------+
14 | cell2-1 | | cell2-3 |
15 + +---------+---------+
16 | | cell3-2-par1 |
17 +---------+ |
18 | cell4-1 | cell3-2-par2 |
19 +---------+---------+---------+
20 | cell5-1 |
21 +---------+---------+---------+
22
23 grid table with tabularcolumns
24 ------------------------------
25
26 .. tabularcolumns:: TTT
27
28 +---------+---------+---------+
29 | header1 | header2 | header3 |
30 +=========+=========+=========+
31 | cell1-1 | cell1-2 | cell1-3 |
32 +---------+ +---------+
33 | cell2-1 | | cell2-3 |
34 + +---------+---------+
35 | | cell3-2-par1 |
36 +---------+ |
37 | cell4-1 | cell3-2-par2 |
38 +---------+---------+---------+
39 | cell5-1 |
40 +---------+---------+---------+
41
42 complex spanning cell
43 ---------------------
44
45 table having ...
46
47 * consecutive multirow at top of row (1-1 and 1-2)
48 * consecutive multirow at end of row (1-4 and 1-5)
49
50 .. rst-class:: standard
51
52 +-----------+-----------+-----------+-----------+-----------+
53 | | | cell1-3 | | |
54 | | +-----------+ | cell1-5 |
55 | cell1-1 | cell1-2 | | cell1-4 | |
56 | | | cell2-3 | +-----------+
57 | | | | | cell3-5 |
58 +-----------+-----------+-----------+-----------+-----------+