summaryrefslogtreecommitdiff
path: root/docutils/test/functional/expected/standalone_rst_latex.tex
blob: ba5b63bb0b4ed893d3bc4440f3e42ee8e36cb53b (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
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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
\documentclass[10pt,a4paper,english]{article}
\usepackage{babel}
\usepackage{ae}
\usepackage{aeguill}
\usepackage{shortvrb}
\usepackage[latin1]{inputenc}
\usepackage{tabularx}
\usepackage{longtable}
\setlength{\extrarowheight}{2pt}
\usepackage{amsmath}
\usepackage{graphicx}
\usepackage{color}
\usepackage{multirow}
\usepackage{ifthen}
\usepackage[colorlinks=true,linkcolor=blue,urlcolor=blue]{hyperref}
\usepackage[DIV12]{typearea}
%% generator Docutils: http://docutils.sourceforge.net/
\newlength{\admonitionwidth}
\setlength{\admonitionwidth}{0.9\textwidth}
\newlength{\docinfowidth}
\setlength{\docinfowidth}{0.9\textwidth}
\newlength{\locallinewidth}
\newcommand{\optionlistlabel}[1]{\bf #1 \hfill}
\newenvironment{optionlist}[1]
{\begin{list}{}
  {\setlength{\labelwidth}{#1}
   \setlength{\rightmargin}{1cm}
   \setlength{\leftmargin}{\rightmargin}
   \addtolength{\leftmargin}{\labelwidth}
   \addtolength{\leftmargin}{\labelsep}
   \renewcommand{\makelabel}{\optionlistlabel}}
}{\end{list}}
\newlength{\lineblockindentation}
\setlength{\lineblockindentation}{2.5em}
\newenvironment{lineblock}[1]
{\begin{list}{}
  {\setlength{\partopsep}{\parskip}
   \addtolength{\partopsep}{\baselineskip}
   \topsep0pt\itemsep0.15\baselineskip\parsep0pt
   \leftmargin#1}
 \raggedright}
{\end{list}}
% begin: floats for footnotes tweaking.
\setlength{\floatsep}{0.5em}
\setlength{\textfloatsep}{\fill}
\addtolength{\textfloatsep}{3em}
\renewcommand{\textfraction}{0.5}
\renewcommand{\topfraction}{0.5}
\renewcommand{\bottomfraction}{0.5}
\setcounter{totalnumber}{50}
\setcounter{topnumber}{50}
\setcounter{bottomnumber}{50}
% end floats for footnotes
% some commands, that could be overwritten in the style file.
\newcommand{\rubric}[1]{\subsection*{~\hfill {\it #1} \hfill ~}}
\newcommand{\titlereference}[1]{\textsl{#1}}
% end of "some commands"
\title{reStructuredText Test Document\\
\large{Examples of Syntax Constructs}
}
\author{}
\date{}
\hypersetup{
pdftitle={reStructuredText Test Document},
pdfauthor={David Goodger;Me;Myself;I}
}
\raggedbottom
\begin{document}
\maketitle

%___________________________________________________________________________
\begin{center}
\begin{tabularx}{\docinfowidth}{lX}
\textbf{Author}: &
	David Goodger \\
\textbf{Address}: &
	{\raggedright
123 Example Street~\\
Example, EX  Canada~\\
A1B 2C3 } \\
\textbf{Contact}: &
	\href{mailto:goodger@users.sourceforge.net}{goodger@users.sourceforge.net} \\
\textbf{Author}: &
	Me \\
\textbf{Author}: &
	Myself \\
\textbf{Author}: &
	I \\
\textbf{Organization}: &
	humankind \\
\textbf{Date}: &
	Now, or yesterday.  Or maybe even \emph{before} yesterday. \\
\textbf{Status}: &
	This is a ``work in progress'' \\
\textbf{Revision}: &
	is managed by a version control system. \\
\textbf{Version}: &
	1 \\
\textbf{Copyright}: &
	This document has been placed in the public domain. You
may do with it as you wish. You may copy, modify,
redistribute, reattribute, sell, buy, rent, lease,
destroy, or improve it, quote it at length, excerpt,
incorporate, collate, fold, staple, or mutilate it, or do
anything else to it that your or anyone else's heart
desires. \\
\textbf{field name}: &
	This is a ``generic bibliographic field''. \\
\textbf{field name ``2''}: &
	Generic bibliographic fields may contain multiple body elements.

Like this. \\
\end{tabularx}
\end{center}

\setlength{\locallinewidth}{\linewidth}


\subsubsection*{~\hfill Dedication\hfill ~}

For Docutils users {\&} co-developers.

\subsubsection*{~\hfill Abstract\hfill ~}

This is a test document, containing at least one example of each
reStructuredText construct.

% This is a comment. Note how any initial comments are moved by
% transforms to after the document title, subtitle, and docinfo. 
% Above is the document title, and below is the subtitle.
% They are transformed from section titles after parsing. 
% bibliographic fields (which also require a transform): 
\hypertarget{table-of-contents}{}
\pdfbookmark[0]{Table of Contents}{table-of-contents}
\subsubsection*{~\hfill Table of Contents\hfill ~}
\begin{list}{}{}
\item {} \href{\#structural-elements}{1~~~Structural Elements}
\begin{list}{}{}
\item {} \href{\#section-title}{1.1~~~Section Title}

\item {} \href{\#empty-section}{1.2~~~Empty Section}

\item {} \href{\#transitions}{1.3~~~Transitions}

\end{list}

\item {} \href{\#body-elements}{2~~~Body Elements}
\begin{list}{}{}
\item {} \href{\#paragraphs}{2.1~~~Paragraphs}
\begin{list}{}{}
\item {} \href{\#inline-markup}{2.1.1~~~Inline Markup}

\end{list}

\item {} \href{\#bullet-lists}{2.2~~~Bullet Lists}

\item {} \href{\#enumerated-lists}{2.3~~~Enumerated Lists}

\item {} \href{\#definition-lists}{2.4~~~Definition Lists}

\item {} \href{\#field-lists}{2.5~~~Field Lists}

\item {} \href{\#option-lists}{2.6~~~Option Lists}

\item {} \href{\#literal-blocks}{2.7~~~Literal Blocks}

\item {} \href{\#line-blocks}{2.8~~~Line Blocks}

\item {} \href{\#block-quotes}{2.9~~~Block Quotes}

\item {} \href{\#doctest-blocks}{2.10~~~Doctest Blocks}

\item {} \href{\#footnotes}{2.11~~~Footnotes}

\item {} \href{\#citations}{2.12~~~Citations}

\item {} \href{\#targets}{2.13~~~Targets}
\begin{list}{}{}
\item {} \href{\#duplicate-target-names}{2.13.1~~~Duplicate Target Names}

\item {} \href{\#id20}{2.13.2~~~Duplicate Target Names}

\end{list}

\item {} \href{\#directives}{2.14~~~Directives}
\begin{list}{}{}
\item {} \href{\#document-parts}{2.14.1~~~Document Parts}

\item {} \href{\#images}{2.14.2~~~Images}

\item {} \href{\#admonitions}{2.14.3~~~Admonitions}

\item {} \href{\#topics-sidebars-and-rubrics}{2.14.4~~~Topics, Sidebars, and Rubrics}

\item {} \href{\#target-footnotes}{2.14.5~~~Target Footnotes}

\item {} \href{\#replacement-text}{2.14.6~~~Replacement Text}

\item {} \href{\#compound-paragraph}{2.14.7~~~Compound Paragraph}

\item {} \href{\#parsed-literal-blocks}{2.14.8~~~Parsed Literal Blocks}

\end{list}

\item {} \href{\#substitution-definitions}{2.15~~~Substitution Definitions}

\item {} \href{\#comments}{2.16~~~Comments}

\item {} \href{\#raw-text}{2.17~~~Raw text}

\item {} \href{\#container}{2.18~~~Container}

\item {} \href{\#colspanning-tables}{2.19~~~Colspanning tables}

\item {} \href{\#rowspanning-tables}{2.20~~~Rowspanning tables}

\end{list}

\item {} \href{\#tests-for-the-latex-writer}{3~~~Tests for the LaTeX writer}
\begin{list}{}{}
\item {} \href{\#monospaced-non-alphanumeric-characters}{3.1~~~Monospaced non-alphanumeric characters}

\item {} \href{\#various-non-ascii-characters}{3.2~~~Various non-ASCII characters}

\end{list}

\item {} \href{\#error-handling}{4~~~Error Handling}

\end{list}



%___________________________________________________________________________

\hypertarget{structural-elements}{}
\pdfbookmark[0]{1~~~Structural Elements}{structural-elements}
\section*{1~~~Structural Elements}


%___________________________________________________________________________

\hypertarget{section-title}{}
\pdfbookmark[1]{1.1~~~Section Title}{section-title}
\subsection*{1.1~~~Section Title}
\textbf{Section Subtitle}\vspace{0.2cm}

\noindent 
That's it, the text just above this line.


%___________________________________________________________________________

\hypertarget{empty-section}{}
\pdfbookmark[1]{1.2~~~Empty Section}{empty-section}
\subsection*{1.2~~~Empty Section}


%___________________________________________________________________________

\hypertarget{transitions}{}
\pdfbookmark[1]{1.3~~~Transitions}{transitions}
\subsection*{1.3~~~Transitions}

Here's a transition:


%___________________________________________________________________________
\hspace*{\fill}\hrulefill\hspace*{\fill}


It divides the section.  Transitions may also occur between sections:


%___________________________________________________________________________
\hspace*{\fill}\hrulefill\hspace*{\fill}



%___________________________________________________________________________

\hypertarget{body-elements}{}
\pdfbookmark[0]{2~~~Body Elements}{body-elements}
\section*{2~~~Body Elements}


%___________________________________________________________________________

\hypertarget{paragraphs}{}
\pdfbookmark[1]{2.1~~~Paragraphs}{paragraphs}
\subsection*{2.1~~~Paragraphs}

A paragraph.


%___________________________________________________________________________

\hypertarget{inline-markup}{}
\pdfbookmark[2]{2.1.1~~~Inline Markup}{inline-markup}
\subsubsection*{2.1.1~~~Inline Markup}

Paragraphs contain text and may contain inline markup: \emph{emphasis},
\textbf{strong emphasis}, \texttt{inline literals}, standalone hyperlinks
(\href{http://www.python.org}{http://www.python.org}), external hyperlinks (\href{http://www.python.org/}{Python}\raisebox{.5em}[0em]{\scriptsize\hyperlink{id25}{5}}), internal
cross-references (\href{\#example}{example}), external hyperlinks with embedded URIs
(\href{http://www.python.org}{Python web site}), \href{http://www.python.org/}{anonymous hyperlink
references}\raisebox{.5em}[0em]{\scriptsize\hyperlink{id25}{5}} (\href{http://docutils.sourceforge.net/}{a second reference}\raisebox{.5em}[0em]{\scriptsize\hyperlink{id30}{6}}), footnote references (manually
numbered\raisebox{.5em}[0em]{\scriptsize\hyperlink{id8}{1}}, anonymous auto-numbered\raisebox{.5em}[0em]{\scriptsize\hyperlink{id11}{3}}, labeled auto-numbered\raisebox{.5em}[0em]{\scriptsize\hyperlink{label}{2}}, or symbolic\raisebox{.5em}[0em]{\scriptsize\hyperlink{id12}{*}}), citation references ([\hyperlink{cit2002}{CIT2002}]),
substitution references (\includegraphics{../../../docs/user/rst/images/biohazard.png}), and \hypertarget{inline-hyperlink-targets}{inline hyperlink targets}
(see \href{\#id22}{Targets} below for a reference back to here).  Character-level
inline markup is also possible (although exceedingly ugly!) in \emph{re}\texttt{Structured}\emph{Text}.  Problems are indicated by {\color{red}\bfseries{}{\textbar}problematic{\textbar}} text
(generated by processing errors; this one is intentional).  Here is a
reference to the \href{\#doctitle}{doctitle} and the \href{\#subtitle}{subtitle}.

The default role for interpreted text is \titlereference{Title Reference}.  Here are
some explicit interpreted text roles: a PEP reference (\href{http://www.python.org/peps/pep-0287.html}{PEP 287}); an
RFC reference (\href{http://www.faqs.org/rfcs/rfc2822.html}{RFC 2822}); a $_{subscript}$; a $^{superscript}$;
and explicit roles for \emph{standard} \textbf{inline}
\texttt{markup}.
% DO NOT RE-WRAP THE FOLLOWING PARAGRAPH! 

Let's test wrapping and whitespace significance in inline literals:
\texttt{This is an example of -{}-inline-literal -{}-text, -{}-including some-{}-
strangely-{}-hyphenated-words.  Adjust-the-width-of-your-browser-window
to see how the text is wrapped.  -{}- -{}-{}-{}- -{}-{}-{}-{}-{}-{}-{}-  Now note    the
spacing    between the    words of    this sentence    (words
should    be grouped    in pairs).}

If the \texttt{-{}-pep-references} option was supplied, there should be a
live link to PEP 258 here.


%___________________________________________________________________________

\hypertarget{bullet-lists}{}
\pdfbookmark[1]{2.2~~~Bullet Lists}{bullet-lists}
\subsection*{2.2~~~Bullet Lists}
\begin{itemize}
\item {} 
A bullet list
\begin{itemize}
\item {} 
Nested bullet list.

\item {} 
Nested item 2.

\end{itemize}

\item {} 
Item 2.

Paragraph 2 of item 2.
\begin{itemize}
\item {} 
Nested bullet list.

\item {} 
Nested item 2.
\begin{itemize}
\item {} 
Third level.

\item {} 
Item 2.

\end{itemize}

\item {} 
Nested item 3.

\item {} 
This nested list should be compacted by the HTML writer.
\hypertarget{target}{}% Even if this item contains a target and a comment. 

\end{itemize}

\end{itemize}


%___________________________________________________________________________

\hypertarget{enumerated-lists}{}
\pdfbookmark[1]{2.3~~~Enumerated Lists}{enumerated-lists}
\subsection*{2.3~~~Enumerated Lists}
\newcounter{listcnt1}
\begin{list}{\arabic{listcnt1}.}
{
\usecounter{listcnt1}
\setlength{\rightmargin}{\leftmargin}
}
\item {} 
Arabic numerals.
\newcounter{listcnt2}
\begin{list}{\alph{listcnt2})}
{
\usecounter{listcnt2}
\setlength{\rightmargin}{\leftmargin}
}
\item {} 
lower alpha)
\newcounter{listcnt3}
\begin{list}{(\roman{listcnt3})}
{
\usecounter{listcnt3}
\setlength{\rightmargin}{\leftmargin}
}
\item {} 
(lower roman)
\newcounter{listcnt4}
\begin{list}{\Alph{listcnt4}.}
{
\usecounter{listcnt4}
\setlength{\rightmargin}{\leftmargin}
}
\item {} 
upper alpha.
\newcounter{listcnt5}
\begin{list}{\Roman{listcnt5})}
{
\usecounter{listcnt5}
\setlength{\rightmargin}{\leftmargin}
}
\item {} 
upper roman)

\end{list}

\end{list}

\end{list}

\end{list}

\item {} 
Lists that don't start at 1:
\newcounter{listcnt6}
\begin{list}{\arabic{listcnt6}.}
{
\usecounter{listcnt6}
\addtocounter{listcnt6}{2}
\setlength{\rightmargin}{\leftmargin}
}
\item {} 
Three

\item {} 
Four

\end{list}
\newcounter{listcnt7}
\begin{list}{\Alph{listcnt7}.}
{
\usecounter{listcnt7}
\addtocounter{listcnt7}{2}
\setlength{\rightmargin}{\leftmargin}
}
\item {} 
C

\item {} 
D

\end{list}
\newcounter{listcnt8}
\begin{list}{\roman{listcnt8}.}
{
\usecounter{listcnt8}
\addtocounter{listcnt8}{2}
\setlength{\rightmargin}{\leftmargin}
}
\item {} 
iii

\item {} 
iv

\end{list}

\end{list}


%___________________________________________________________________________

\hypertarget{definition-lists}{}
\pdfbookmark[1]{2.4~~~Definition Lists}{definition-lists}
\subsection*{2.4~~~Definition Lists}
\begin{description}
%[visit_definition_list_item]
\item[{Term}] %[visit_definition]

Definition

%[depart_definition]
%[depart_definition_list_item]
%[visit_definition_list_item]
\item[{Term}] (\textbf{classifier})
%[visit_definition]

Definition paragraph 1.

Definition paragraph 2.

%[depart_definition]
%[depart_definition_list_item]
%[visit_definition_list_item]
\item[{Term}] %[visit_definition]

Definition

%[depart_definition]
%[depart_definition_list_item]
%[visit_definition_list_item]
\item[{Term}] (\textbf{classifier one})
(\textbf{classifier two})
%[visit_definition]

Definition

%[depart_definition]
%[depart_definition_list_item]
\end{description}


%___________________________________________________________________________

\hypertarget{field-lists}{}
\pdfbookmark[1]{2.5~~~Field Lists}{field-lists}
\subsection*{2.5~~~Field Lists}
\begin{quote}
\begin{description}
\item [what:]
Field lists map field names to field bodies, like database
records.  They are often part of an extension syntax.  They are
an unambiguous variant of RFC 2822 fields.


\item [how arg1 arg2:]
The field marker is a colon, the field name, and a colon.

The field body may contain one or more body elements, indented
relative to the field marker.


\item [credits:]
This paragraph has the \titlereference{credits} class set.  (This is actually not
about credits but just for ensuring that the class attribute
doesn't get stripped away.)


\end{description}
\end{quote}


%___________________________________________________________________________

\hypertarget{option-lists}{}
\pdfbookmark[1]{2.6~~~Option Lists}{option-lists}
\subsection*{2.6~~~Option Lists}

For listing command-line options:
% [option list]
\begin{optionlist}{3cm}
\item [-a]  
command-line option ``a''
\item [-b file]  
options can have arguments
and long descriptions
\item [-{}-long]  
options can be long also
\item [-{}-input=file]  
long options can also have
arguments
\item [-{}-very-long-option]  
The description can also start on the next line.

The description may contain multiple body elements,
regardless of where it starts.
\item [-x, -y, -z]  
Multiple options are an ``option group''.
\item [-v, -{}-verbose]  
Commonly-seen: short {\&} long options.
\item [-1 file, -{}-one=file, -{}-two file]  
Multiple options with arguments.
\item [/V]  
DOS/VMS-style options too
\end{optionlist}

There must be at least two spaces between the option and the
description.


%___________________________________________________________________________

\hypertarget{literal-blocks}{}
\pdfbookmark[1]{2.7~~~Literal Blocks}{literal-blocks}
\subsection*{2.7~~~Literal Blocks}

Literal blocks are indicated with a double-colon (``::'') at the end of
the preceding paragraph (over there \texttt{-{}->}).  They can be indented:
\begin{quote}{\ttfamily \raggedright \noindent
if~literal{\_}block:~\\
~~~~text~=~'is~left~as-is'~\\
~~~~spaces{\_}and{\_}linebreaks~=~'are~preserved'~\\
~~~~markup{\_}processing~=~None
}\end{quote}

Or they can be quoted without indentation:
\begin{quote}{\ttfamily \raggedright \noindent
>{}>~Great~idea!~\\
>~\\
>~Why~didn't~I~think~of~that?
}\end{quote}


%___________________________________________________________________________

\hypertarget{line-blocks}{}
\pdfbookmark[1]{2.8~~~Line Blocks}{line-blocks}
\subsection*{2.8~~~Line Blocks}

This section tests line blocks.  Line blocks are body elements which
consist of lines and other line blocks.  Nested line blocks cause
indentation.

\begin{lineblock}{0em}
\item[] This is a line block.  It ends with a blank line.
\item[] 
\begin{lineblock}{\lineblockindentation}
\item[] New lines begin with a vertical bar (``{\textbar}'').
\item[] Line breaks and initial indent are significant, and preserved.
\item[] 
\begin{lineblock}{\lineblockindentation}
\item[] Continuation lines are also possible.  A long line that is intended
to wrap should begin with a space in place of the vertical bar.
\end{lineblock}
\item[] The left edge of a continuation line need not be aligned with
the left edge of the text above it.
\end{lineblock}
\end{lineblock}

\begin{lineblock}{0em}
\item[] This is a second line block.
\item[] 
\item[] Blank lines are permitted internally, but they must begin with a ``{\textbar}''.
\end{lineblock}

Another line block, surrounded by paragraphs:

\begin{lineblock}{0em}
\item[] And it's no good waiting by the window
\item[] It's no good waiting for the sun
\item[] Please believe me, the things you dream of
\item[] They don't fall in the lap of no-one
\end{lineblock}

Take it away, Eric the Orchestra Leader!
\begin{quote}

\begin{lineblock}{0em}
\item[] A one, two, a one two three four
\item[] 
\item[] Half a bee, philosophically,
\item[] 
\begin{lineblock}{\lineblockindentation}
\item[] must, \emph{ipso facto}, half not be.
\end{lineblock}
\item[] But half the bee has got to be,
\item[] 
\begin{lineblock}{\lineblockindentation}
\item[] \emph{vis a vis} its entity.  D'you see?
\item[] 
\end{lineblock}
\item[] But can a bee be said to be
\item[] 
\begin{lineblock}{\lineblockindentation}
\item[] or not to be an entire bee,
\item[] 
\begin{lineblock}{\lineblockindentation}
\item[] when half the bee is not a bee,
\item[] 
\begin{lineblock}{\lineblockindentation}
\item[] due to some ancient injury?
\item[] 
\end{lineblock}
\end{lineblock}
\end{lineblock}
\item[] Singing...
\end{lineblock}
\end{quote}


%___________________________________________________________________________

\hypertarget{block-quotes}{}
\pdfbookmark[1]{2.9~~~Block Quotes}{block-quotes}
\subsection*{2.9~~~Block Quotes}

Block quotes consist of indented body elements:
\begin{quote}

My theory by A. Elk.  Brackets Miss, brackets.  This theory goes
as follows and begins now.  All brontosauruses are thin at one
end, much much thicker in the middle and then thin again at the
far end.  That is my theory, it is mine, and belongs to me and I
own it, and what it is too.

\begin{flushright}
---Anne Elk (Miss)
\end{flushright}
\end{quote}


%___________________________________________________________________________

\hypertarget{doctest-blocks}{}
\pdfbookmark[1]{2.10~~~Doctest Blocks}{doctest-blocks}
\subsection*{2.10~~~Doctest Blocks}
\begin{verbatim}>>> print 'Python-specific usage examples; begun with ">>>"'
Python-specific usage examples; begun with ">>>"
>>> print '(cut and pasted from interactive Python sessions)'
(cut and pasted from interactive Python sessions)\end{verbatim}


%___________________________________________________________________________

\hypertarget{footnotes}{}
\pdfbookmark[1]{2.11~~~Footnotes}{footnotes}
\subsection*{2.11~~~Footnotes}
\begin{figure}[b]\hypertarget{id8}$^{1}$
A footnote contains body elements, consistently indented by at
least 3 spaces.

This is the footnote's second paragraph.
\end{figure}
\begin{figure}[b]\hypertarget{label}$^{2}$
Footnotes may be numbered, either manually (as in\raisebox{.5em}[0em]{\scriptsize\hyperlink{id8}{1}}) or
automatically using a ``{\#}''-prefixed label.  This footnote has a
label so it can be referred to from multiple places, both as a
footnote reference (\raisebox{.5em}[0em]{\scriptsize\hyperlink{label}{2}}) and as a hyperlink reference
(\href{\#label}{label}).
\end{figure}
\begin{figure}[b]\hypertarget{id11}$^{3}$
This footnote is numbered automatically and anonymously using a
label of ``{\#}'' only.

This is the second paragraph.

And this is the third paragraph.
\end{figure}
\begin{figure}[b]\hypertarget{id12}$^{*}$
Footnotes may also use symbols, specified with a ``*'' label.
Here's a reference to the next footnote:\raisebox{.5em}[0em]{\scriptsize\hyperlink{id14}{{\dag}}}.
\end{figure}
\begin{figure}[b]\hypertarget{id14}$^{{\dag}}$
This footnote shows the next symbol in the sequence.
\end{figure}
\begin{figure}[b]\hypertarget{id15}$^{4}$
Here's an unreferenced footnote, with a reference to a
nonexistent footnote:{\color{red}\bfseries{}{[}5{]}{\_}}.
\end{figure}


%___________________________________________________________________________

\hypertarget{citations}{}
\pdfbookmark[1]{2.12~~~Citations}{citations}
\subsection*{2.12~~~Citations}
\begin{figure}[b]\hypertarget{cit2002}[CIT2002]
Citations are text-labeled footnotes. They may be
rendered separately and differently from footnotes.
\end{figure}

Here's a reference to the above, [\hyperlink{cit2002}{CIT2002}], and a {\color{red}\bfseries{}{[}nonexistent{]}{\_}}
citation.


%___________________________________________________________________________

\hypertarget{targets}{}
\hypertarget{another-target}{}
\pdfbookmark[1]{2.13~~~Targets}{targets}
\pdfbookmark[1]{2.13~~~Targets}{another-target}
\subsection*{2.13~~~Targets}

This paragraph is pointed to by the explicit ``example'' target. A
reference can be found under \href{\#inline-markup}{Inline Markup}, above. \href{\#inline-hyperlink-targets}{Inline
hyperlink targets} are also possible.

Section headers are implicit targets, referred to by name. See
\href{\#id22}{Targets}, which is a subsection of \href{\#body-elements}{Body Elements}.

Explicit external targets are interpolated into references such as
``\href{http://www.python.org/}{Python}\raisebox{.5em}[0em]{\scriptsize\hyperlink{id25}{5}}''.

Targets may be indirect and anonymous.  Thus \href{\#id22}{this phrase} may also
refer to the \href{\#id22}{Targets} section.

Here's a {\color{red}\bfseries{}`hyperlink reference without a target`{\_}}, which generates an
error.


%___________________________________________________________________________

\hypertarget{duplicate-target-names}{}
\pdfbookmark[2]{2.13.1~~~Duplicate Target Names}{duplicate-target-names}
\subsubsection*{2.13.1~~~Duplicate Target Names}

Duplicate names in section headers or other implicit targets will
generate ``info'' (level-1) system messages.  Duplicate names in
explicit targets will generate ``warning'' (level-2) system messages.


%___________________________________________________________________________

\hypertarget{id20}{}
\pdfbookmark[2]{2.13.2~~~Duplicate Target Names}{id20}
\subsubsection*{2.13.2~~~Duplicate Target Names}

Since there are two ``Duplicate Target Names'' section headers, we
cannot uniquely refer to either of them by name.  If we try to (like
this: {\color{red}\bfseries{}`Duplicate Target Names`{\_}}), an error is generated.


%___________________________________________________________________________

\hypertarget{directives}{}
\pdfbookmark[1]{2.14~~~Directives}{directives}
\subsection*{2.14~~~Directives}
\begin{list}{}{}
\item {} \href{\#document-parts}{2.14.1~~~Document Parts}

\item {} \href{\#images}{2.14.2~~~Images}

\item {} \href{\#admonitions}{2.14.3~~~Admonitions}

\item {} \href{\#topics-sidebars-and-rubrics}{2.14.4~~~Topics, Sidebars, and Rubrics}

\item {} \href{\#target-footnotes}{2.14.5~~~Target Footnotes}

\item {} \href{\#replacement-text}{2.14.6~~~Replacement Text}

\item {} \href{\#compound-paragraph}{2.14.7~~~Compound Paragraph}

\item {} \href{\#parsed-literal-blocks}{2.14.8~~~Parsed Literal Blocks}

\end{list}


These are just a sample of the many reStructuredText Directives.  For
others, please see
\href{http://docutils.sourceforge.net/docs/ref/rst/directives.html}{http://docutils.sourceforge.net/docs/ref/rst/directives.html}.


%___________________________________________________________________________

\hypertarget{document-parts}{}
\pdfbookmark[2]{2.14.1~~~Document Parts}{document-parts}
\subsubsection*{2.14.1~~~Document Parts}

An example of the ``contents'' directive can be seen above this section
(a local, untitled table of \href{\#contents}{contents}) and at the beginning of the
document (a document-wide \href{\#table-of-contents}{table of contents}).


%___________________________________________________________________________

\hypertarget{images}{}
\pdfbookmark[2]{2.14.2~~~Images}{images}
\subsubsection*{2.14.2~~~Images}

An image directive (also clickable -{}- a hyperlink reference):
\href{\#directives}{\includegraphics{../../../docs/user/rst/images/title.png}}
Image with multiple IDs:

\includegraphics{../../../docs/user/rst/images/title.png}

A centered image:

{\hfill\includegraphics{../../../docs/user/rst/images/biohazard.png}\hfill}

A left-aligned image:

{\includegraphics{../../../docs/user/rst/images/biohazard.png}\hfill}

A right-aligned image:

{\hfill\includegraphics{../../../docs/user/rst/images/biohazard.png}}

A figure directive:
\begin{figure}[htbp]\begin{flushright}

\includegraphics[width=50]{../../../docs/user/rst/images/biohazard.png}
\caption{A figure is an image with a caption and/or a legend:}{\small 
\begin{longtable}[c]{|p{0.16\locallinewidth}|p{0.56\locallinewidth}|}
\hline

re
 & 
Revised, revisited, based on 're' module.
 \\
\hline

Structured
 & 
Structure-enhanced text, structuredtext.
 \\
\hline

Text
 & 
Well it is, isn't it?
 \\
\hline
\end{longtable}

This paragraph is also part of the legend.
}\end{flushright}\end{figure}
\begin{figure}[htbp]\begin{flushleft}

\includegraphics[width=50]{../../../docs/user/rst/images/biohazard.png}
\caption{A left-aligned figure.}{\small 
This is the legend.
}\end{flushleft}\end{figure}

This paragraph might flow around the figure...

A centered figure:
\begin{figure}[htbp]\begin{flushcenter}

\includegraphics[width=50]{../../../docs/user/rst/images/biohazard.png}
\caption{This is the caption.}{\small 
This is the legend.

The legend may consist of several paragraphs.
}\end{flushcenter}\end{figure}

This paragraph might flow around the figure...

A left-aligned figure:
\begin{figure}[htbp]\begin{flushleft}

\includegraphics[width=50]{../../../docs/user/rst/images/biohazard.png}
\caption{This is the caption.}{\small 
This is the legend.

The legend may consist of several paragraphs.
}\end{flushleft}\end{figure}

This paragraph might flow around the figure...

Now widths:

An image 2 em wide:

\includegraphics[width=2em]{../../../docs/user/rst/images/biohazard.png}

An image 2 em wide and 30 pixel high:

\includegraphics[width=2em]{../../../docs/user/rst/images/biohazard.png}

An image occupying 70{\%} of the line width:

\includegraphics[width=70%]{../../../docs/user/rst/images/biohazard.png}

An image 3 cm high:

\includegraphics{../../../docs/user/rst/images/biohazard.png}


%___________________________________________________________________________

\hypertarget{admonitions}{}
\pdfbookmark[2]{2.14.3~~~Admonitions}{admonitions}
\subsubsection*{2.14.3~~~Admonitions}
\begin{center}\begin{sffamily}
\fbox{\parbox{\admonitionwidth}{
\textbf{\large Attention!}
\vspace{2mm}

Directives at large.
}}
\end{sffamily}
\end{center}
\begin{center}\begin{sffamily}
\fbox{\parbox{\admonitionwidth}{
\textbf{\large Caution!}
\vspace{2mm}

Don't take any wooden nickels.
}}
\end{sffamily}
\end{center}
\begin{center}\begin{sffamily}
\fbox{\parbox{\admonitionwidth}{
\textbf{\large !DANGER!}
\vspace{2mm}

Mad scientist at work!
}}
\end{sffamily}
\end{center}
\begin{center}\begin{sffamily}
\fbox{\parbox{\admonitionwidth}{
\textbf{\large Error}
\vspace{2mm}

Does not compute.
}}
\end{sffamily}
\end{center}
\begin{center}\begin{sffamily}
\fbox{\parbox{\admonitionwidth}{
\textbf{\large Hint}
\vspace{2mm}

It's bigger than a bread box.
}}
\end{sffamily}
\end{center}
\begin{center}\begin{sffamily}
\fbox{\parbox{\admonitionwidth}{
\textbf{\large Important}
\vspace{2mm}
\begin{itemize}
\item {} 
Wash behind your ears.

\item {} 
Clean up your room.

\item {} 
Call your mother.

\item {} 
Back up your data.

\end{itemize}
}}
\end{sffamily}
\end{center}
\begin{center}\begin{sffamily}
\fbox{\parbox{\admonitionwidth}{
\textbf{\large Note}
\vspace{2mm}

This is a note.
}}
\end{sffamily}
\end{center}
\begin{center}\begin{sffamily}
\fbox{\parbox{\admonitionwidth}{
\textbf{\large Tip}
\vspace{2mm}

15{\%} if the service is good.
}}
\end{sffamily}
\end{center}
\begin{center}\begin{sffamily}
\fbox{\parbox{\admonitionwidth}{
\textbf{\large Warning}
\vspace{2mm}

Strong prose may provoke extreme mental exertion.
Reader discretion is strongly advised.
}}
\end{sffamily}
\end{center}
\begin{center}\begin{sffamily}
\fbox{\parbox{\admonitionwidth}{
\vspace{2mm}
\textbf{\large And, by the way...}
\smallskip

You can make up your own admonition too.
}}
\end{sffamily}
\end{center}


%___________________________________________________________________________

\hypertarget{topics-sidebars-and-rubrics}{}
\pdfbookmark[2]{2.14.4~~~Topics, Sidebars, and Rubrics}{topics-sidebars-and-rubrics}
\subsubsection*{2.14.4~~~Topics, Sidebars, and Rubrics}

\setlength{\locallinewidth}{0.9\admonitionwidth}
\begin{center}\begin{sffamily}
\fbox{\colorbox[gray]{0.80}{\parbox{\admonitionwidth}{
\textbf{\large Sidebar Title}
\smallskip
~\\
\textbf{Optional Subtitle}
\smallskip

This is a sidebar.  It is for text outside the flow of the main
text.
\rubric{This is a rubric inside a sidebar}

Sidebars often appears beside the main text with a border and
background color.
}}}
\end{sffamily}
\end{center}

\setlength{\locallinewidth}{\linewidth}
\subsubsection*{~\hfill Topic Title\hfill ~}

This is a topic.

\rubric{This is a rubric}


%___________________________________________________________________________

\hypertarget{target-footnotes}{}
\pdfbookmark[2]{2.14.5~~~Target Footnotes}{target-footnotes}
\subsubsection*{2.14.5~~~Target Footnotes}
\begin{figure}[b]\hypertarget{id25}$^{5}$
\href{http://www.python.org/}{http://www.python.org/}
\end{figure}
\begin{figure}[b]\hypertarget{id30}$^{6}$
\href{http://docutils.sourceforge.net/}{http://docutils.sourceforge.net/}
\end{figure}


%___________________________________________________________________________

\hypertarget{replacement-text}{}
\pdfbookmark[2]{2.14.6~~~Replacement Text}{replacement-text}
\subsubsection*{2.14.6~~~Replacement Text}

I recommend you try \href{http://www.python.org/}{Python, \emph{the} best language around}\raisebox{.5em}[0em]{\scriptsize\hyperlink{id25}{5}}.


%___________________________________________________________________________

\hypertarget{compound-paragraph}{}
\pdfbookmark[2]{2.14.7~~~Compound Paragraph}{compound-paragraph}
\subsubsection*{2.14.7~~~Compound Paragraph}

Compound 1, paragraph 1.

Compound 1, paragraph 2.
\begin{itemize}
\item {} 
Compound 1, list item one.

\item {} 
Compound 1, list item two.

\end{itemize}

Another compound statement:

Compound 2, a literal block:
\begin{quote}{\ttfamily \raggedright \noindent
Compound~2,~literal.
}\end{quote}
Compound 2, this is a test.

Compound 3, only consisting of one paragraph.
\begin{quote}{\ttfamily \raggedright \noindent
Compound~4.~\\
This~one~starts~with~a~literal~block.
}\end{quote}
Compound 4, a paragraph.

Now something \emph{really} perverted -{}- a nested compound block.  This is
just to test that it works at all; the results don't have to be
meaningful.

Compound 5, block 1 (a paragraph).

Compound 6, block 2 in compound 5.

Compound 6, another paragraph.

Compound 5, block 3 (a paragraph).

Compound 7, with a table inside:

\begin{longtable}[c]{|p{0.25\locallinewidth}|p{0.25\locallinewidth}|p{0.25\locallinewidth}|}
\hline

Left cell, first
paragraph.

Left cell, second
paragraph.
 & 
Middle cell,
consisting of
exactly one
paragraph.
 & 
Right cell.

Paragraph 2.

Paragraph 3.
 \\
\hline
\end{longtable}
Compound 7, a paragraph after the table.

Compound 7, another paragraph.


%___________________________________________________________________________

\hypertarget{parsed-literal-blocks}{}
\pdfbookmark[2]{2.14.8~~~Parsed Literal Blocks}{parsed-literal-blocks}
\subsubsection*{2.14.8~~~Parsed Literal Blocks}
\begin{quote}{\ttfamily \raggedright \noindent
This~is~a~parsed~literal~block.~\\
~~~~This~line~is~indented.~~The~next~line~is~blank.~\\
~\\
Inline~markup~is~supported,~e.g.~\emph{emphasis},~\textbf{strong},~\texttt{literal~\\
text},~footnotes\raisebox{.5em}[0em]{\scriptsize\hyperlink{id8}{1}},~\hypertarget{id22}{targets},~and~\href{http://www.python.org/}{references}.
}\end{quote}


%___________________________________________________________________________

\hypertarget{substitution-definitions}{}
\pdfbookmark[1]{2.15~~~Substitution Definitions}{substitution-definitions}
\subsection*{2.15~~~Substitution Definitions}

An inline image (\includegraphics{../../../docs/user/rst/images/biohazard.png}) example:

(Substitution definitions are not visible in the HTML source.)


%___________________________________________________________________________

\hypertarget{comments}{}
\pdfbookmark[1]{2.16~~~Comments}{comments}
\subsection*{2.16~~~Comments}

Here's one:
% Comments begin with two dots and a space. Anything may
% follow, except for the syntax of footnotes, hyperlink
% targets, directives, or substitution definitions.
% 
% Double-dashes -- "--" -- must be escaped somehow in HTML output. 

(View the HTML source to see the comment.)


%___________________________________________________________________________

\hypertarget{raw-text}{}
\pdfbookmark[1]{2.17~~~Raw text}{raw-text}
\subsection*{2.17~~~Raw text}

This does not necessarily look nice, because there may be missing white space.

It's just there to freeze the behavior.
A test.Second test.Another test with myclass set.
This is the fourth test with myrawroleclass set.
Fifth test in LaTeX.\\Line two.

%___________________________________________________________________________

\hypertarget{container}{}
\pdfbookmark[1]{2.18~~~Container}{container}
\subsection*{2.18~~~Container}

paragraph 1

paragraph 2


%___________________________________________________________________________

\hypertarget{colspanning-tables}{}
\pdfbookmark[1]{2.19~~~Colspanning tables}{colspanning-tables}
\subsection*{2.19~~~Colspanning tables}

This table has a cell spanning two columns:

\begin{longtable}[c]{|p{0.07\locallinewidth}|p{0.07\locallinewidth}|p{0.09\locallinewidth}|}
\hline
\multicolumn{2}{|l|}{\textbf{
Inputs
}} & \textbf{
Output
} \\
\hline
\textbf{
A
} & \textbf{
B
} & \textbf{
A or B
} \\
\hline
\endhead

False
 & 
False
 & 
False
 \\
\hline

True
 & 
False
 & 
True
 \\
\hline

False
 & 
True
 & 
True
 \\
\hline

True
 & 
True
 & 
True
 \\
\hline
\end{longtable}


%___________________________________________________________________________

\hypertarget{rowspanning-tables}{}
\pdfbookmark[1]{2.20~~~Rowspanning tables}{rowspanning-tables}
\subsection*{2.20~~~Rowspanning tables}

Here's a table with cells spanning several rows:

\begin{longtable}[c]{|p{0.30\locallinewidth}|p{0.16\locallinewidth}|p{0.23\locallinewidth}|}
\hline
\textbf{
Header row, column 1
(header rows optional)
} & \textbf{
Header 2
} & \textbf{
Header 3
} \\
\hline
\endhead

body row 1, column 1
 & 
column 2
 & 
column 3
 \\
\hline

body row 2
 & \multirow{2}{0.16\locallinewidth}{
Cells may
span rows.
} & \multirow{2}{0.23\locallinewidth}{
Another
rowspanning
cell.
} \\
\cline{1-1}

body row 3
 &  \\
\hline
\end{longtable}


%___________________________________________________________________________

\hypertarget{tests-for-the-latex-writer}{}
\pdfbookmark[0]{3~~~Tests for the LaTeX writer}{tests-for-the-latex-writer}
\section*{3~~~Tests for the LaTeX writer}


%___________________________________________________________________________

\hypertarget{monospaced-non-alphanumeric-characters}{}
\pdfbookmark[1]{3.1~~~Monospaced non-alphanumeric characters}{monospaced-non-alphanumeric-characters}
\subsection*{3.1~~~Monospaced non-alphanumeric characters}

These are all ASCII characters except a-zA-Z0-9 and space:

\texttt{!!!"{}"{}"{\#}{\#}{\#}{\$}{\$}{\$}{\%}{\%}{\%}{\&}{\&}{\&}'{}'{}'((()))***+++,{},{},-{}-{}-...///:::}

\texttt{;;;<{}<{}<===>{}>{}>???@@@{[}{[}{[}{\textbackslash}{\textbackslash}{\textbackslash}{]}{]}{]}{\textasciicircum}{\textasciicircum}{\textasciicircum}{\_}{\_}{\_}`{}`{}`{\{}{\{}{\{}|||{\}}{\}}{\}}{\textasciitilde}{\textasciitilde}{\textasciitilde}}

\texttt{xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx}

The two lines of non-alphanumeric characters should both have the same
width as the third line.


%___________________________________________________________________________

\hypertarget{various-non-ascii-characters}{}
\pdfbookmark[1]{3.2~~~Various non-ASCII characters}{various-non-ascii-characters}
\subsection*{3.2~~~Various non-ASCII characters}

\begin{longtable}[c]{|p{0.03\locallinewidth}|p{0.42\locallinewidth}|}
\hline

©
 & 
copyright sign
 \\
\hline

®
 & 
registered sign
 \\
\hline

«
 & 
left pointing guillemet
 \\
\hline

»
 & 
right pointing guillemet
 \\
\hline

{--}
 & 
en-dash
 \\
\hline

{---}
 & 
em-dash
 \\
\hline

`
 & 
single turned comma quotation mark
 \\
\hline

'
 & 
single comma quotation mark
 \\
\hline

,
 & 
low single comma quotation mark
 \\
\hline

``
 & 
double turned comma quotation mark
 \\
\hline

''
 & 
double comma quotation mark
 \\
\hline

,,
 & 
low double comma quotation mark
 \\
\hline

{\dag}
 & 
dagger
 \\
\hline

{\ddag}
 & 
double dagger
 \\
\hline

{\dots}
 & 
ellipsis
 \\
\hline

{\texttrademark}
 & 
trade mark sign
 \\
\hline

{$\Leftrightarrow$}
 & 
left-right double arrow
 \\
\hline
\end{longtable}

The following line should not be wrapped, because it uses
non-breakable spaces:

X~X~X~X~X~X~X~X~X~X~X~X~X~X~X~X~X~X~X~X~X~X~X~X~X~X~X~X~X~X~X~X~X~X~X~X~X~X~X~X~X~X~X~X~X~X~X~X~X~X~X~X~X~X~X~X~X~X~X~X~X~X~X~X~X~X


%___________________________________________________________________________

\hypertarget{error-handling}{}
\pdfbookmark[0]{4~~~Error Handling}{error-handling}
\section*{4~~~Error Handling}

Any errors caught during processing will generate system messages.

There should be five messages in the following, auto-generated
section, ``Docutils System Messages'':
% section should be added by Docutils automatically 


%___________________________________________________________________________

\section*{Docutils System Messages}

Undefined substitution referenced: ``problematic''.


Unknown target name: ``5''.


Unknown target name: ``nonexistent''.


Unknown target name: ``hyperlink reference without a target''.


Duplicate target name, cannot be used as a unique reference: ``duplicate target names''.


\end{document}