File: tables_latex.txt

package info (click to toggle)
python-docutils 0.16%2Bdfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 8,864 kB
  • sloc: python: 45,783; lisp: 14,475; xml: 1,785; javascript: 1,032; sh: 140; makefile: 111
file content (52 lines) | stat: -rw-r--r-- 2,169 bytes parent folder | download | duplicates (3)
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
More Tables
-----------

A table with multi-paragraph multicolumn cells:

+----------+--------------+---------------------------------+-----------+
| test     | **bold hd**  | multicolumn 1                   | *emph hd* |
|          |              |                                 |           |
|          |              | With a second paragraph         |           |
+----------+--------------+--------------+--------+---------+-----------+
| multicolumn 2           | cell         | cell   | cell    | cell      |
|                         |              |        |         |           |
| With a second paragraph |              |        |         |           |
+----------+--------------+--------------+--------+---------+-----------+
| cell     | multicolumn 3 (one line,    | cell   | cell    | cell      |
|          | but very very very very     |        |         |           |
|          | very looooong)              |        |         |           |
+----------+--------------+--------------+--------+---------+-----------+
| cell     | cell         | cell         | Short multicolumn 4          |
+----------+--------------+--------------+------------------------------+

Tables with multi-paragraph multirow cells currently fail due to a LaTeX
limitation (see https://sourceforge.net/p/docutils/bugs/225/).

A table with multirow header and column-widths set by LaTeX:

.. table::
   :widths: auto

   +------------+-------------------+
   | XXX        | Variable Summary  |
   |            +-------------------+
   |            | Description       |
   +============+===================+
   | multicollumn cell              |
   +--------------------------------+

In a table with column-widths set by LaTeX, each cell has just one line.
Paragraphs are merged (a warning is given).

.. table::
   :widths: auto

   +------------+-------------------+
   | 11         | first paragraph   |
   |            |                   |
   |            | second paragraph  |
   |            |                   |
   |            | third paragraph   |
   +------------+-------------------+
   | 21         | 22                |
   +------------+-------------------+