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 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138
|
Some Tests for the LaTeX Writer
===============================
These tests contain unusual combinations of syntax elements which may cause
trouble for the LaTeX writer but do not need to be tested with other writers.
Block Quotes
------------
This block quote comes directly after the section heading and is
followed by a paragraph.
This is the second paragraph of the block quote and it contains
some more text filling up some space which would otherwise be
empty.
-- Attribution
This is a paragraph.
This block quote does not have an attribution.
This is another paragraph.
Another block quote at the end of the section.
More Block Quotes
-----------------
Block quote followed by a transition.
----------
Another block quote.
Images
------
Image with 20% width:
.. image:: ../../../docs/user/rst/images/title.png
:width: 20%
Image with 100% width:
.. image:: ../../../docs/user/rst/images/title.png
:width: 100%
Rowspanning tables
------------------
Several rowspanning cells in a table.
Problem:
In LaTeX, "overwritten" cells need to be defined as empty cells.
Docutils (similarily to HTML) uses is the "Exchange Table Model" (also known
as CALS tables, see docs/ref/soextblx.dtd) which defines only the remaining
cells in a row "affected" by multirow cells.
Therefore, visit_entry() is only called for the remaining cells and the
LaTeX writer needs bookkeeping to write out the required number of extra
'&'s.
+-----+----------+----------+------+
| 11 | 12 | 13 | 14 |
+-----+----------+----------+------+
| 21 | 2/3 2 | | 24 |
+-----+ | +------+
| 31 | | 2…4 3 | 34 |
+-----+----------+ +------+
| 41 | 42 | | 14 |
+-----+----------+----------+------+
+-------+-------+----+
| 11 | 12 | 13 |
+-------+-------+----+
| 2/3 1 | | 23 |
| | +----+
| | 2/3 2 | 33 |
+-------+-------+----+
+-------+----+
| 11 | 12 |
+-------+----+
| 2/3 1 | 22 |
| +----+
| | 32 |
+-------+----+
+----+--------+----+
| 11 | 12 | 13 |
+----+--------+----+
| 21 | 2/3 2 | 23 |
+----+ +----+
| 31 | | 33 |
+----+--------+----+
+----+--------+
| 11 | 12 |
+----+--------+
| 21 | 2/3 1 |
+----+ |
| 31 | |
+----+--------+
+----+--------+
| 11 | 1/2 1 |
+----+ |
| 21 | |
+----+--------+
| 31 | 32 |
+----+--------+
+----+------------+--------+
| 11 | 1/2 2 | |
+----+ | 1/2 3 |
| 21 | | |
+----+------------+--------+
+-------+----+--------+
| | 12 | 1/2 3 |
| 1/2 3 +----+ |
| | 22 | |
+-------+----+--------+
+-------+----+
| | 12 |
| 1/2 3 +----+
| | 22 |
+-------+----+
| 31 | 32 |
+-------+----+
|