1
21. Sections in only directives
3==============================
4
5Testing sections in only directives.
6
7.. only:: nonexisting_tag
8
9   Skipped Section
10   ---------------
11   Should not be here.
12
13.. only:: not nonexisting_tag
14
15   1.1. Section
16   ------------
17   Should be here.
18
191.2. Section
20------------
21
22.. only:: not nonexisting_tag
23
24   1.2.1. Subsection
25   ~~~~~~~~~~~~~~~~~
26   Should be here.
27
28.. only:: nonexisting_tag
29
30   Skipped Subsection
31   ~~~~~~~~~~~~~~~~~~
32   Should not be here.
33
341.3. Section
35------------
36
371.3.1. Subsection
38~~~~~~~~~~~~~~~~~
39Should be here.
40
411.4. Section
42------------
43
44.. only:: not nonexisting_tag
45
46   1.4.1. Subsection
47   ~~~~~~~~~~~~~~~~~
48   Should be here.
49
501.5. Section
51------------
52
53.. only:: not nonexisting_tag
54
55   1.5.1. Subsection
56   ~~~~~~~~~~~~~~~~~
57   Should be here.
58
591.5.2. Subsection
60~~~~~~~~~~~~~~~~~
61Should be here.
62
631.6. Section
64------------
65
661.6.1. Subsection
67~~~~~~~~~~~~~~~~~
68Should be here.
69
70.. only:: not nonexisting_tag
71
72   1.6.2. Subsection
73   ~~~~~~~~~~~~~~~~~
74   Should be here.
75
761.6.3. Subsection
77~~~~~~~~~~~~~~~~~
78Should be here.
79
801.7. Section
81------------
82
831.7.1. Subsection
84~~~~~~~~~~~~~~~~~
85Should be here.
86
87.. only:: not nonexisting_tag
88
89   1.7.1.1. Subsubsection
90   ......................
91   Should be here.
92
931.8. Section
94------------
95
961.8.1. Subsection
97~~~~~~~~~~~~~~~~~
98Should be here.
99
1001.8.1.1. Subsubsection
101......................
102Should be here.
103
104.. only:: not nonexisting_tag
105
106   1.8.1.2. Subsubsection
107   ......................
108   Should be here.
109
1101.9. Section
111------------
112
113.. only:: nonexisting_tag
114
115   Skipped Subsection
116   ~~~~~~~~~~~~~~~~~~
117
1181.9.1. Subsection
119~~~~~~~~~~~~~~~~~
120Should be here.
121
1221.9.1.1. Subsubsection
123......................
124Should be here.
125
126.. only:: not nonexisting_tag
127
128   1.10. Section
129   -------------
130   Should be here.
131
1321.11. Section
133-------------
134
135Text before subsection 11.1.
136
137.. only:: not nonexisting_tag
138
139   More text before subsection 11.1.
140
141   1.11.1. Subsection
142   ~~~~~~~~~~~~~~~~~~
143   Should be here.
144
145Text after subsection 11.1.
146
147.. only:: not nonexisting_tag
148
149   1.12. Section
150   -------------
151   Should be here.
152
153   1.12.1. Subsection
154   ~~~~~~~~~~~~~~~~~~
155   Should be here.
156
157   1.13. Section
158   -------------
159   Should be here.
160
161.. only:: not nonexisting_tag
162
163   1.14. Section
164   -------------
165   Should be here.
166
167   .. only:: not nonexisting_tag
168
169      1.14.1. Subsection
170      ~~~~~~~~~~~~~~~~~~
171      Should be here.
172
173   1.15. Section
174   -------------
175   Should be here.
176
177.. only:: nonexisting_tag
178
179   Skipped document level heading
180   ==============================
181   Should not be here.
182
183.. only:: not nonexisting_tag
184
185   2. Included document level heading
186   ==================================
187   Should be here.
188
1893. Document level heading
190=========================
191Should be here.
192
193.. only:: nonexisting_tag
194
195   Skipped document level heading
196   ==============================
197   Should not be here.
198
199.. only:: not nonexisting_tag
200
201   4. Another included document level heading
202   ==========================================
203   Should be here.
204