summaryrefslogtreecommitdiffstats
path: root/tests/roots/test-latex-table/complex.rst
blob: d648ff194c4f10986ab1d0789260503dc8a4069d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
complex tables
==============

grid table
----------

.. rst-class:: nocolorrows

+---------+---------+---------+
| header1 | header2 | header3 |
+=========+=========+=========+
| cell1-1 | cell1-2 | cell1-3 |
+---------+         +---------+
| cell2-1 |         | cell2-3 |
+         +---------+---------+
|         | cell3-2-par1      |
+---------+                   |
| cell4-1 | cell3-2-par2      |
+---------+---------+---------+
| cell5-1                     |
+---------+---------+---------+

grid table with tabularcolumns having no vline
----------------------------------------------

.. tabularcolumns:: TTT

+---------+---------+---------+
| header1 | header2 | header3 |
+=========+=========+=========+
| cell1-1 | cell1-2 | cell1-3 |
+---------+         +---------+
| cell2-1 |         | cell2-3 |
+         +---------+---------+
|         | cell3-2-par1      |
+---------+                   |
| cell4-1 | cell3-2-par2      |
+---------+---------+---------+
| cell5-1                     |
+---------+---------+---------+

complex spanning cell
---------------------

table having ...

* consecutive multirow at top of row (1-1 and 1-2)
* consecutive multirow at end of row (1-4 and 1-5)

.. rst-class:: standard

+-----------+-----------+-----------+-----------+-----------+
|           |           |  cell1-3  |           |           |
|           |           +-----------+           |  cell1-5  |
|  cell1-1  |  cell1-2  |           |  cell1-4  |           |
|           |           |  cell2-3  |           +-----------+
|           |           |           |           |  cell3-5  |
+-----------+-----------+-----------+-----------+-----------+