Debian Codegraph @

test/functional/input/data/latex-problematic.rst

raw
1 Problematic Cases for the LaTeX Writer
2 ======================================
3
4 These tests contain unusual combinations of syntax elements which may cause
5 trouble for the LaTeX writer but do not need to be tested with other writers
6 (e.g. the HTML writer).
7
8 The file `latex-problematic.rst` contains the cases with non unsatisfying
9 results. It is only used to control the visual appearance of the output, not
10 by any automated test
11
12 Sidebars
13 --------
14
15 This paragraph precedes the sidebar. This is some text. This is some
16 text. This is some text. This is some text. This is some text.
17 This is some text. This is some text. This is some text.
18
19 .. sidebar:: Sidebar Title
20
21 These are the sidebar contents. These are the sidebar contents.
22
23 These are the sidebar contents. These are the sidebar contents.
24
25 These are the sidebar contents. These are the sidebar contents.
26 These are the sidebar contents. These are the sidebar contents.
27
28 This paragraph follows the sidebar. This is some text. This is some
29 text. This is some text.
30
31 This is some text. This is some text. This is some text. This is
32 some text. This is some text. This is some text. This is some text.
33
34
35 Next Section
36 ------------
37
38 This section comes after the sidebar, and this text should float
39 around the sidebar as well. This is some text. This is some text.
40 This is some text. This is some text. This is some text. This is
41 some text. This is some text. This is some text. This is some text.
42 This is some text. This is some text. This is some text. This is
43 some text. This is some text.
44
45 This is some text. This is some text. This is some text. This is
46 some text. This is some text. This is some text. This is some text.
47 This is some text. This is some text. This is some text.
48
49 Nested Elements
50 ---------------
51
52 :Field list: | Line
53 | Block
54 :Field 2: * Bullet
55 * list
56 :Another (longer) field: * Bullet
57 * list
58 :Yet another long field:
59 * .. comment
60
61 Bullet
62
63 .. comment
64
65 * .. comment
66
67 list
68
69 .. comment
70
71 :Field: * This
72
73 is
74
75 a
76
77 * bullet
78
79 list
80
81 :Field: * | This is
82 | a bullet
83 * | list with
84 | line blocks
85 :Last field: Last field.
86
87 Too deeply nested lists fail. TODO: generate an error or provide a workaround.
88
89 .. * * * * * * * * Deeply nested list.
90
91 .. 1. 2. 3. 4. 5. 6. 7. 8. Deeply nested list.
92
93 +-----------------+
94 | | Line block |
95 | |
96 | * Bullet list |
97 | |
98 | :: |
99 | |
100 | Literal |
101 | block |
102 +-----------------+
103 | :Field 1: |
104 | Text. |
105 | :Field 2: |
106 | More text. |
107 +-----------------+
108 | +-------+-----+ |
109 | | A |* foo| |
110 | | nested| | |
111 | | table.|* bar| |
112 | +-------+-----+ |
113 +-----------------+
114 | This is a |
115 | paragraph. |
116 | |
117 | +-------+-----+ |
118 | | A |* foo| |
119 | | nested| | |
120 | | table.|* bar| |
121 | +-------+-----+ |
122 | |
123 | Another longer |
124 | paragraph. |
125 +-----------------+
126 | * A list. |
127 | * A list. |
128 | |
129 | +-------+-----+ |
130 | | A |* foo| |
131 | | nested| | |
132 | | table.|* bar| |
133 | +-------+-----+ |
134 | |
135 | * Another list. |
136 | * Another list. |
137 +-----------------+
138 | Foo |
139 | |
140 | Bar |
141 +-----------------+
142 | * Foo |
143 | |
144 | * Bar |
145 +-----------------+
146 | * This is a |
147 | paragraph. |
148 | |
149 | This is a |
150 | paragraph. |
151 | |
152 | * This is a |
153 | paragraph. |
154 | |
155 | This is a |
156 | paragraph. |
157 +-----------------+
158
159 Vertical alignment of inline images
160 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
161
162 .. |top| image:: ../../../../docs/user/rst/images/biohazard.png
163 :align: top
164 :width: 3em
165
166 .. |middle| image:: ../../../../docs/user/rst/images/biohazard.png
167 :align: middle
168 :width: 2em
169
170 .. |bottom| image:: ../../../../docs/user/rst/images/biohazard.png
171 :align: bottom
172 :width: 2.5em
173
174 A paragraph with top |top|, middle |middle|, and bottom |bottom|
175 aligned images.
176
177 A paragraph with top |top| aligned image.
178
179 A paragraph with middle |middle| aligned image.
180
181 A paragraph with bottom |bottom| aligned image.