Fix: output hypertargets
[docutils.git] / test / functional / expected / standalone_rst_latex.tex
blobdabeac6886b7dea9adfb7f879d574777e96bfe3e
1 \documentclass[10pt,a4paper,english]{article}
2 \usepackage{babel}
3 \usepackage{ae}
4 \usepackage{aeguill}
5 \usepackage{shortvrb}
6 \usepackage[latin1]{inputenc}
7 \usepackage{tabularx}
8 \usepackage{longtable}
9 \setlength{\extrarowheight}{2pt}
10 \usepackage{amsmath}
11 \usepackage{graphicx}
12 \usepackage{color}
13 \usepackage{multirow}
14 \usepackage{ifthen}
15 \usepackage[colorlinks=true,linkcolor=blue,urlcolor=blue]{hyperref}
16 \usepackage[DIV12]{typearea}
17 %% generator Docutils: http://docutils.sourceforge.net/
18 \newlength{\admonitionwidth}
19 \setlength{\admonitionwidth}{0.9\textwidth}
20 \newlength{\docinfowidth}
21 \setlength{\docinfowidth}{0.9\textwidth}
22 \newlength{\locallinewidth}
23 \newcommand{\optionlistlabel}[1]{\bf #1 \hfill}
24 \newenvironment{optionlist}[1]
25 {\begin{list}{}
26 {\setlength{\labelwidth}{#1}
27 \setlength{\rightmargin}{1cm}
28 \setlength{\leftmargin}{\rightmargin}
29 \addtolength{\leftmargin}{\labelwidth}
30 \addtolength{\leftmargin}{\labelsep}
31 \renewcommand{\makelabel}{\optionlistlabel}}
32 }{\end{list}}
33 \newlength{\lineblockindentation}
34 \setlength{\lineblockindentation}{2.5em}
35 \newenvironment{lineblock}[1]
36 {\begin{list}{}
37 {\setlength{\partopsep}{\parskip}
38 \addtolength{\partopsep}{\baselineskip}
39 \topsep0pt\itemsep0.15\baselineskip\parsep0pt
40 \leftmargin#1}
41 \raggedright}
42 {\end{list}}
43 % begin: floats for footnotes tweaking.
44 \setlength{\floatsep}{0.5em}
45 \setlength{\textfloatsep}{\fill}
46 \addtolength{\textfloatsep}{3em}
47 \renewcommand{\textfraction}{0.5}
48 \renewcommand{\topfraction}{0.5}
49 \renewcommand{\bottomfraction}{0.5}
50 \setcounter{totalnumber}{50}
51 \setcounter{topnumber}{50}
52 \setcounter{bottomnumber}{50}
53 % end floats for footnotes
54 % some commands, that could be overwritten in the style file.
55 \newcommand{\rubric}[1]{\subsection*{~\hfill {\it #1} \hfill ~}}
56 \newcommand{\titlereference}[1]{\textsl{#1}}
57 % end of "some commands"
58 \title{reStructuredText Test Document\\
59 \large{Examples of Syntax Constructs}
61 \author{}
62 \date{}
63 \hypersetup{
64 pdftitle={reStructuredText Test Document},
65 pdfauthor={David Goodger;Me;Myself;I}
67 \raggedbottom
68 \begin{document}
69 \maketitle
71 %___________________________________________________________________________
72 \begin{center}
73 \begin{tabularx}{\docinfowidth}{lX}
74 \textbf{Author}: &
75 David Goodger \\
76 \textbf{Address}: &
77 {\raggedright
78 123 Example Street~\\
79 Example, EX Canada~\\
80 A1B 2C3 } \\
81 \textbf{Contact}: &
82 \href{mailto:goodger@python.org}{goodger@python.org} \\
83 \textbf{Author}: &
84 Me \\
85 \textbf{Author}: &
86 Myself \\
87 \textbf{Author}: &
88 I \\
89 \textbf{Organization}: &
90 humankind \\
91 \textbf{Date}: &
92 Now, or yesterday. Or maybe even \emph{before} yesterday. \\
93 \textbf{Status}: &
94 This is a ``work in progress'' \\
95 \textbf{Revision}: &
96 is managed by a version control system. \\
97 \textbf{Version}: &
98 1 \\
99 \textbf{Copyright}: &
100 This document has been placed in the public domain. You
101 may do with it as you wish. You may copy, modify,
102 redistribute, reattribute, sell, buy, rent, lease,
103 destroy, or improve it, quote it at length, excerpt,
104 incorporate, collate, fold, staple, or mutilate it, or do
105 anything else to it that your or anyone else's heart
106 desires. \\
107 \textbf{field name}: &
108 This is a ``generic bibliographic field''. \\
109 \textbf{field name ``2''}: &
110 Generic bibliographic fields may contain multiple body elements.
112 Like this. \\
113 \end{tabularx}
114 \end{center}
116 \setlength{\locallinewidth}{\linewidth}
119 \subsubsection*{~\hfill Dedication\hfill ~}
121 For Docutils users {\&} co-developers.
123 \subsubsection*{~\hfill Abstract\hfill ~}
125 This is a test document, containing at least one example of each
126 reStructuredText construct.
128 % This is a comment. Note how any initial comments are moved by
129 % transforms to after the document title, subtitle, and docinfo.
130 \hypertarget{doctitle}{}% Above is the document title, and below is the subtitle.
131 % They are transformed from section titles after parsing.
132 \hypertarget{subtitle}{}% bibliographic fields (which also require a transform):
133 \hypertarget{table-of-contents}{}
134 \pdfbookmark[0]{Table of Contents}{table-of-contents}
135 \subsubsection*{~\hfill Table of Contents\hfill ~}
136 \begin{list}{}{}
137 \item {} \href{\#structural-elements}{1~~~Structural Elements}
138 \begin{list}{}{}
139 \item {} \href{\#section-title}{1.1~~~Section Title}
141 \item {} \href{\#empty-section}{1.2~~~Empty Section}
143 \item {} \href{\#transitions}{1.3~~~Transitions}
145 \end{list}
147 \item {} \href{\#body-elements}{2~~~Body Elements}
148 \begin{list}{}{}
149 \item {} \href{\#paragraphs}{2.1~~~Paragraphs}
150 \begin{list}{}{}
151 \item {} \href{\#inline-markup}{2.1.1~~~Inline Markup}
153 \end{list}
155 \item {} \href{\#bullet-lists}{2.2~~~Bullet Lists}
157 \item {} \href{\#enumerated-lists}{2.3~~~Enumerated Lists}
159 \item {} \href{\#definition-lists}{2.4~~~Definition Lists}
161 \item {} \href{\#field-lists}{2.5~~~Field Lists}
163 \item {} \href{\#option-lists}{2.6~~~Option Lists}
165 \item {} \href{\#literal-blocks}{2.7~~~Literal Blocks}
167 \item {} \href{\#line-blocks}{2.8~~~Line Blocks}
169 \item {} \href{\#block-quotes}{2.9~~~Block Quotes}
171 \item {} \href{\#doctest-blocks}{2.10~~~Doctest Blocks}
173 \item {} \href{\#footnotes}{2.11~~~Footnotes}
175 \item {} \href{\#citations}{2.12~~~Citations}
177 \item {} \href{\#targets}{2.13~~~Targets}
178 \begin{list}{}{}
179 \item {} \href{\#duplicate-target-names}{2.13.1~~~Duplicate Target Names}
181 \item {} \href{\#id20}{2.13.2~~~Duplicate Target Names}
183 \end{list}
185 \item {} \href{\#directives}{2.14~~~Directives}
186 \begin{list}{}{}
187 \item {} \href{\#document-parts}{2.14.1~~~Document Parts}
189 \item {} \href{\#images}{2.14.2~~~Images}
191 \item {} \href{\#admonitions}{2.14.3~~~Admonitions}
193 \item {} \href{\#topics-sidebars-and-rubrics}{2.14.4~~~Topics, Sidebars, and Rubrics}
195 \item {} \href{\#target-footnotes}{2.14.5~~~Target Footnotes}
197 \item {} \href{\#replacement-text}{2.14.6~~~Replacement Text}
199 \item {} \href{\#compound-paragraph}{2.14.7~~~Compound Paragraph}
201 \item {} \href{\#parsed-literal-blocks}{2.14.8~~~Parsed Literal Blocks}
203 \end{list}
205 \item {} \href{\#substitution-definitions}{2.15~~~Substitution Definitions}
207 \item {} \href{\#comments}{2.16~~~Comments}
209 \item {} \href{\#raw-text}{2.17~~~Raw text}
211 \item {} \href{\#container}{2.18~~~Container}
213 \item {} \href{\#colspanning-tables}{2.19~~~Colspanning tables}
215 \item {} \href{\#rowspanning-tables}{2.20~~~Rowspanning tables}
217 \end{list}
219 \item {} \href{\#tests-for-the-latex-writer}{3~~~Tests for the LaTeX writer}
220 \begin{list}{}{}
221 \item {} \href{\#monospaced-non-alphanumeric-characters}{3.1~~~Monospaced non-alphanumeric characters}
223 \item {} \href{\#various-non-ascii-characters}{3.2~~~Various non-ASCII characters}
225 \item {} \href{\#custom-roles}{3.3~~~Custom Roles}
227 \end{list}
229 \item {} \href{\#error-handling}{4~~~Error Handling}
231 \end{list}
235 %___________________________________________________________________________
237 \hypertarget{structural-elements}{}
238 \pdfbookmark[0]{1~~~Structural Elements}{structural-elements}
239 \section*{1~~~Structural Elements}
242 %___________________________________________________________________________
244 \hypertarget{section-title}{}
245 \pdfbookmark[1]{1.1~~~Section Title}{section-title}
246 \subsection*{1.1~~~Section Title}
247 \textbf{Section Subtitle}\vspace{0.2cm}
249 \noindent
250 That's it, the text just above this line.
253 %___________________________________________________________________________
255 \hypertarget{empty-section}{}
256 \pdfbookmark[1]{1.2~~~Empty Section}{empty-section}
257 \subsection*{1.2~~~Empty Section}
260 %___________________________________________________________________________
262 \hypertarget{transitions}{}
263 \pdfbookmark[1]{1.3~~~Transitions}{transitions}
264 \subsection*{1.3~~~Transitions}
266 Here's a transition:
269 %___________________________________________________________________________
270 \hspace*{\fill}\hrulefill\hspace*{\fill}
273 It divides the section. Transitions may also occur between sections:
276 %___________________________________________________________________________
277 \hspace*{\fill}\hrulefill\hspace*{\fill}
281 %___________________________________________________________________________
283 \hypertarget{body-elements}{}
284 \pdfbookmark[0]{2~~~Body Elements}{body-elements}
285 \section*{2~~~Body Elements}
288 %___________________________________________________________________________
290 \hypertarget{paragraphs}{}
291 \pdfbookmark[1]{2.1~~~Paragraphs}{paragraphs}
292 \subsection*{2.1~~~Paragraphs}
294 A paragraph.
297 %___________________________________________________________________________
299 \hypertarget{inline-markup}{}
300 \pdfbookmark[2]{2.1.1~~~Inline Markup}{inline-markup}
301 \subsubsection*{2.1.1~~~Inline Markup}
303 Paragraphs contain text and may contain inline markup: \emph{emphasis},
304 \textbf{strong emphasis}, \texttt{inline literals}, standalone hyperlinks
305 (\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
306 cross-references (\href{\#example}{example}), external hyperlinks with embedded URIs
307 (\href{http://www.python.org}{Python web site}), \href{http://www.python.org/}{anonymous hyperlink
308 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
309 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}]),
310 substitution references (\includegraphics{../../../docs/user/rst/images/biohazard.png}), and \hypertarget{inline-hyperlink-targets}{inline hyperlink targets}
311 (see \href{\#id22}{Targets} below for a reference back to here). Character-level
312 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
313 (generated by processing errors; this one is intentional). Here is a
314 reference to the \href{\#doctitle}{doctitle} and the \href{\#subtitle}{subtitle}.
316 The default role for interpreted text is \titlereference{Title Reference}. Here are
317 some explicit interpreted text roles: a PEP reference (\href{http://www.python.org/dev/peps/pep-0287}{PEP 287}); an
318 RFC reference (\href{http://www.faqs.org/rfcs/rfc2822.html}{RFC 2822}); a $_{subscript}$; a $^{superscript}$;
319 and explicit roles for \emph{standard} \textbf{inline}
320 \texttt{markup}.
321 % DO NOT RE-WRAP THE FOLLOWING PARAGRAPH!
323 Let's test wrapping and whitespace significance in inline literals:
324 \texttt{This is an example of -{}-inline-literal -{}-text, -{}-including some-{}-
325 strangely-{}-hyphenated-words. Adjust-the-width-of-your-browser-window
326 to see how the text is wrapped. -{}- -{}-{}-{}- -{}-{}-{}-{}-{}-{}-{}- Now note the
327 spacing between the words of this sentence (words
328 should be grouped in pairs).}
330 If the \texttt{-{}-pep-references} option was supplied, there should be a
331 live link to PEP 258 here.
334 %___________________________________________________________________________
336 \hypertarget{bullet-lists}{}
337 \pdfbookmark[1]{2.2~~~Bullet Lists}{bullet-lists}
338 \subsection*{2.2~~~Bullet Lists}
339 \begin{itemize}
340 \item {}
341 A bullet list
342 \begin{itemize}
343 \item {}
344 Nested bullet list.
346 \item {}
347 Nested item 2.
349 \end{itemize}
351 \item {}
352 Item 2.
354 Paragraph 2 of item 2.
355 \begin{itemize}
356 \item {}
357 Nested bullet list.
359 \item {}
360 Nested item 2.
361 \begin{itemize}
362 \item {}
363 Third level.
365 \item {}
366 Item 2.
368 \end{itemize}
370 \item {}
371 Nested item 3.
373 \item {}
374 This nested list should be compacted by the HTML writer.
375 \hypertarget{target}{}% Even if this item contains a target and a comment.
377 \end{itemize}
379 \end{itemize}
382 %___________________________________________________________________________
384 \hypertarget{enumerated-lists}{}
385 \pdfbookmark[1]{2.3~~~Enumerated Lists}{enumerated-lists}
386 \subsection*{2.3~~~Enumerated Lists}
387 \newcounter{listcnt0}
388 \begin{list}{\arabic{listcnt0}.}
390 \usecounter{listcnt0}
391 \setlength{\rightmargin}{\leftmargin}
393 \item {}
394 Arabic numerals.
395 \newcounter{listcnt1}
396 \begin{list}{\alph{listcnt1})}
398 \usecounter{listcnt1}
399 \setlength{\rightmargin}{\leftmargin}
401 \item {}
402 lower alpha)
403 \newcounter{listcnt2}
404 \begin{list}{(\roman{listcnt2})}
406 \usecounter{listcnt2}
407 \setlength{\rightmargin}{\leftmargin}
409 \item {}
410 (lower roman)
411 \newcounter{listcnt3}
412 \begin{list}{\Alph{listcnt3}.}
414 \usecounter{listcnt3}
415 \setlength{\rightmargin}{\leftmargin}
417 \item {}
418 upper alpha.
419 \newcounter{listcnt4}
420 \begin{list}{\Roman{listcnt4})}
422 \usecounter{listcnt4}
423 \setlength{\rightmargin}{\leftmargin}
425 \item {}
426 upper roman)
428 \end{list}
430 \end{list}
432 \end{list}
434 \end{list}
436 \item {}
437 Lists that don't start at 1:
438 \setcounter{listcnt1}{0}
439 \begin{list}{\arabic{listcnt1}.}
441 \usecounter{listcnt1}
442 \addtocounter{listcnt1}{2}
443 \setlength{\rightmargin}{\leftmargin}
445 \item {}
446 Three
448 \item {}
449 Four
451 \end{list}
452 \setcounter{listcnt1}{0}
453 \begin{list}{\Alph{listcnt1}.}
455 \usecounter{listcnt1}
456 \addtocounter{listcnt1}{2}
457 \setlength{\rightmargin}{\leftmargin}
459 \item {}
462 \item {}
465 \end{list}
466 \setcounter{listcnt1}{0}
467 \begin{list}{\roman{listcnt1}.}
469 \usecounter{listcnt1}
470 \addtocounter{listcnt1}{2}
471 \setlength{\rightmargin}{\leftmargin}
473 \item {}
476 \item {}
479 \end{list}
481 \end{list}
484 %___________________________________________________________________________
486 \hypertarget{definition-lists}{}
487 \pdfbookmark[1]{2.4~~~Definition Lists}{definition-lists}
488 \subsection*{2.4~~~Definition Lists}
489 \begin{description}
490 %[visit_definition_list_item]
491 \item[{Term}] %[visit_definition]
493 Definition
495 %[depart_definition]
496 %[depart_definition_list_item]
497 %[visit_definition_list_item]
498 \item[{Term}] (\textbf{classifier})
499 %[visit_definition]
501 Definition paragraph 1.
503 Definition paragraph 2.
505 %[depart_definition]
506 %[depart_definition_list_item]
507 %[visit_definition_list_item]
508 \item[{Term}] %[visit_definition]
510 Definition
512 %[depart_definition]
513 %[depart_definition_list_item]
514 %[visit_definition_list_item]
515 \item[{Term}] (\textbf{classifier one})
516 (\textbf{classifier two})
517 %[visit_definition]
519 Definition
521 %[depart_definition]
522 %[depart_definition_list_item]
523 \end{description}
526 %___________________________________________________________________________
528 \hypertarget{field-lists}{}
529 \pdfbookmark[1]{2.5~~~Field Lists}{field-lists}
530 \subsection*{2.5~~~Field Lists}
531 \begin{quote}
532 \begin{description}
533 \item [what:]
534 Field lists map field names to field bodies, like database
535 records. They are often part of an extension syntax. They are
536 an unambiguous variant of RFC 2822 fields.
539 \item [how arg1 arg2:]
540 The field marker is a colon, the field name, and a colon.
542 The field body may contain one or more body elements, indented
543 relative to the field marker.
546 \item [credits:]
547 This paragraph has the \titlereference{credits} class set. (This is actually not
548 about credits but just for ensuring that the class attribute
549 doesn't get stripped away.)
552 \end{description}
553 \end{quote}
556 %___________________________________________________________________________
558 \hypertarget{option-lists}{}
559 \pdfbookmark[1]{2.6~~~Option Lists}{option-lists}
560 \subsection*{2.6~~~Option Lists}
562 For listing command-line options:
563 % [option list]
564 \begin{optionlist}{3cm}
565 \item [-a]
566 command-line option ``a''
567 \item [-b file]
568 options can have arguments
569 and long descriptions
570 \item [-{}-long]
571 options can be long also
572 \item [-{}-input=file]
573 long options can also have
574 arguments
575 \item [-{}-very-long-option]
576 The description can also start on the next line.
578 The description may contain multiple body elements,
579 regardless of where it starts.
580 \item [-x, -y, -z]
581 Multiple options are an ``option group''.
582 \item [-v, -{}-verbose]
583 Commonly-seen: short {\&} long options.
584 \item [-1 file, -{}-one=file, -{}-two file]
585 Multiple options with arguments.
586 \item [/V]
587 DOS/VMS-style options too
588 \end{optionlist}
590 There must be at least two spaces between the option and the
591 description.
594 %___________________________________________________________________________
596 \hypertarget{literal-blocks}{}
597 \pdfbookmark[1]{2.7~~~Literal Blocks}{literal-blocks}
598 \subsection*{2.7~~~Literal Blocks}
600 Literal blocks are indicated with a double-colon (``::'') at the end of
601 the preceding paragraph (over there \texttt{-{}->}). They can be indented:
602 \begin{quote}{\ttfamily \raggedright \noindent
603 if~literal{\_}block:~\\
604 ~~~~text~=~'is~left~as-is'~\\
605 ~~~~spaces{\_}and{\_}linebreaks~=~'are~preserved'~\\
606 ~~~~markup{\_}processing~=~None
607 }\end{quote}
609 Or they can be quoted without indentation:
610 \begin{quote}{\ttfamily \raggedright \noindent
611 >{}>~Great~idea!~\\
612 >~\\
613 >~Why~didn't~I~think~of~that?
614 }\end{quote}
617 %___________________________________________________________________________
619 \hypertarget{line-blocks}{}
620 \pdfbookmark[1]{2.8~~~Line Blocks}{line-blocks}
621 \subsection*{2.8~~~Line Blocks}
623 This section tests line blocks. Line blocks are body elements which
624 consist of lines and other line blocks. Nested line blocks cause
625 indentation.
627 \begin{lineblock}{0em}
628 \item[] This is a line block. It ends with a blank line.
629 \item[]
630 \begin{lineblock}{\lineblockindentation}
631 \item[] New lines begin with a vertical bar (``{\textbar}'').
632 \item[] Line breaks and initial indent are significant, and preserved.
633 \item[]
634 \begin{lineblock}{\lineblockindentation}
635 \item[] Continuation lines are also possible. A long line that is intended
636 to wrap should begin with a space in place of the vertical bar.
637 \end{lineblock}
638 \item[] The left edge of a continuation line need not be aligned with
639 the left edge of the text above it.
640 \end{lineblock}
641 \end{lineblock}
643 \begin{lineblock}{0em}
644 \item[] This is a second line block.
645 \item[]
646 \item[] Blank lines are permitted internally, but they must begin with a ``{\textbar}''.
647 \end{lineblock}
649 Another line block, surrounded by paragraphs:
651 \begin{lineblock}{0em}
652 \item[] And it's no good waiting by the window
653 \item[] It's no good waiting for the sun
654 \item[] Please believe me, the things you dream of
655 \item[] They don't fall in the lap of no-one
656 \end{lineblock}
658 Take it away, Eric the Orchestra Leader!
659 \begin{quote}
661 \begin{lineblock}{0em}
662 \item[] A one, two, a one two three four
663 \item[]
664 \item[] Half a bee, philosophically,
665 \item[]
666 \begin{lineblock}{\lineblockindentation}
667 \item[] must, \emph{ipso facto}, half not be.
668 \end{lineblock}
669 \item[] But half the bee has got to be,
670 \item[]
671 \begin{lineblock}{\lineblockindentation}
672 \item[] \emph{vis a vis} its entity. D'you see?
673 \item[]
674 \end{lineblock}
675 \item[] But can a bee be said to be
676 \item[]
677 \begin{lineblock}{\lineblockindentation}
678 \item[] or not to be an entire bee,
679 \item[]
680 \begin{lineblock}{\lineblockindentation}
681 \item[] when half the bee is not a bee,
682 \item[]
683 \begin{lineblock}{\lineblockindentation}
684 \item[] due to some ancient injury?
685 \item[]
686 \end{lineblock}
687 \end{lineblock}
688 \end{lineblock}
689 \item[] Singing...
690 \end{lineblock}
691 \end{quote}
694 %___________________________________________________________________________
696 \hypertarget{block-quotes}{}
697 \pdfbookmark[1]{2.9~~~Block Quotes}{block-quotes}
698 \subsection*{2.9~~~Block Quotes}
700 Block quotes consist of indented body elements:
701 \begin{quote}
703 My theory by A. Elk. Brackets Miss, brackets. This theory goes
704 as follows and begins now. All brontosauruses are thin at one
705 end, much much thicker in the middle and then thin again at the
706 far end. That is my theory, it is mine, and belongs to me and I
707 own it, and what it is too.
709 \begin{flushright}
710 ---Anne Elk (Miss)
711 \end{flushright}
712 \end{quote}
715 %___________________________________________________________________________
717 \hypertarget{doctest-blocks}{}
718 \pdfbookmark[1]{2.10~~~Doctest Blocks}{doctest-blocks}
719 \subsection*{2.10~~~Doctest Blocks}
720 \begin{verbatim}>>> print 'Python-specific usage examples; begun with ">>>"'
721 Python-specific usage examples; begun with ">>>"
722 >>> print '(cut and pasted from interactive Python sessions)'
723 (cut and pasted from interactive Python sessions)\end{verbatim}
726 %___________________________________________________________________________
728 \hypertarget{footnotes}{}
729 \pdfbookmark[1]{2.11~~~Footnotes}{footnotes}
730 \subsection*{2.11~~~Footnotes}
731 \begin{figure}[b]\hypertarget{id8}$^{1}$
732 A footnote contains body elements, consistently indented by at
733 least 3 spaces.
735 This is the footnote's second paragraph.
736 \end{figure}
737 \begin{figure}[b]\hypertarget{label}$^{2}$
738 Footnotes may be numbered, either manually (as in\raisebox{.5em}[0em]{\scriptsize\hyperlink{id8}{1}}) or
739 automatically using a ``{\#}''-prefixed label. This footnote has a
740 label so it can be referred to from multiple places, both as a
741 footnote reference (\raisebox{.5em}[0em]{\scriptsize\hyperlink{label}{2}}) and as a hyperlink reference
742 (\href{\#label}{label}).
743 \end{figure}
744 \begin{figure}[b]\hypertarget{id11}$^{3}$
745 This footnote is numbered automatically and anonymously using a
746 label of ``{\#}'' only.
748 This is the second paragraph.
750 And this is the third paragraph.
751 \end{figure}
752 \begin{figure}[b]\hypertarget{id12}$^{*}$
753 Footnotes may also use symbols, specified with a ``*'' label.
754 Here's a reference to the next footnote:\raisebox{.5em}[0em]{\scriptsize\hyperlink{id14}{{\dag}}}.
755 \end{figure}
756 \begin{figure}[b]\hypertarget{id14}$^{{\dag}}$
757 This footnote shows the next symbol in the sequence.
758 \end{figure}
759 \begin{figure}[b]\hypertarget{id15}$^{4}$
760 Here's an unreferenced footnote, with a reference to a
761 nonexistent footnote:{\color{red}\bfseries{}{[}5{]}{\_}}.
762 \end{figure}
765 %___________________________________________________________________________
767 \hypertarget{citations}{}
768 \pdfbookmark[1]{2.12~~~Citations}{citations}
769 \subsection*{2.12~~~Citations}
770 \begin{figure}[b]\hypertarget{cit2002}[CIT2002]
771 Citations are text-labeled footnotes. They may be
772 rendered separately and differently from footnotes.
773 \end{figure}
775 Here's a reference to the above, [\hyperlink{cit2002}{CIT2002}], and a {\color{red}\bfseries{}{[}nonexistent{]}{\_}}
776 citation.
777 \hypertarget{another-target}{}
779 %___________________________________________________________________________
781 \hypertarget{targets}{}
782 \hypertarget{another-target}{}
783 \pdfbookmark[1]{2.13~~~Targets}{targets}
784 \pdfbookmark[1]{2.13~~~Targets}{another-target}
785 \subsection*{2.13~~~Targets}
786 \hypertarget{example}{}
787 This paragraph is pointed to by the explicit ``example'' target. A
788 reference can be found under \href{\#inline-markup}{Inline Markup}, above. \href{\#inline-hyperlink-targets}{Inline
789 hyperlink targets} are also possible.
791 Section headers are implicit targets, referred to by name. See
792 \href{\#id22}{Targets}, which is a subsection of \href{\#body-elements}{Body Elements}.
794 Explicit external targets are interpolated into references such as
795 ``\href{http://www.python.org/}{Python}\raisebox{.5em}[0em]{\scriptsize\hyperlink{id25}{5}}''.
797 Targets may be indirect and anonymous. Thus \href{\#id22}{this phrase} may also
798 refer to the \href{\#id22}{Targets} section.
799 \hypertarget{id22}{}
800 Here's a {\color{red}\bfseries{}`hyperlink reference without a target`{\_}}, which generates an
801 error.
804 %___________________________________________________________________________
806 \hypertarget{duplicate-target-names}{}
807 \pdfbookmark[2]{2.13.1~~~Duplicate Target Names}{duplicate-target-names}
808 \subsubsection*{2.13.1~~~Duplicate Target Names}
810 Duplicate names in section headers or other implicit targets will
811 generate ``info'' (level-1) system messages. Duplicate names in
812 explicit targets will generate ``warning'' (level-2) system messages.
815 %___________________________________________________________________________
817 \hypertarget{id20}{}
818 \pdfbookmark[2]{2.13.2~~~Duplicate Target Names}{id20}
819 \subsubsection*{2.13.2~~~Duplicate Target Names}
821 Since there are two ``Duplicate Target Names'' section headers, we
822 cannot uniquely refer to either of them by name. If we try to (like
823 this: {\color{red}\bfseries{}`Duplicate Target Names`{\_}}), an error is generated.
826 %___________________________________________________________________________
828 \hypertarget{directives}{}
829 \pdfbookmark[1]{2.14~~~Directives}{directives}
830 \subsection*{2.14~~~Directives}
831 \begin{list}{}{}
832 \item {} \href{\#document-parts}{2.14.1~~~Document Parts}
834 \item {} \href{\#images}{2.14.2~~~Images}
836 \item {} \href{\#admonitions}{2.14.3~~~Admonitions}
838 \item {} \href{\#topics-sidebars-and-rubrics}{2.14.4~~~Topics, Sidebars, and Rubrics}
840 \item {} \href{\#target-footnotes}{2.14.5~~~Target Footnotes}
842 \item {} \href{\#replacement-text}{2.14.6~~~Replacement Text}
844 \item {} \href{\#compound-paragraph}{2.14.7~~~Compound Paragraph}
846 \item {} \href{\#parsed-literal-blocks}{2.14.8~~~Parsed Literal Blocks}
848 \end{list}
851 These are just a sample of the many reStructuredText Directives. For
852 others, please see
853 \href{http://docutils.sourceforge.net/docs/ref/rst/directives.html}{http://docutils.sourceforge.net/docs/ref/rst/directives.html}.
856 %___________________________________________________________________________
858 \hypertarget{document-parts}{}
859 \pdfbookmark[2]{2.14.1~~~Document Parts}{document-parts}
860 \subsubsection*{2.14.1~~~Document Parts}
862 An example of the ``contents'' directive can be seen above this section
863 (a local, untitled table of \href{\#contents}{contents}) and at the beginning of the
864 document (a document-wide \href{\#table-of-contents}{table of contents}).
867 %___________________________________________________________________________
869 \hypertarget{images}{}
870 \pdfbookmark[2]{2.14.2~~~Images}{images}
871 \subsubsection*{2.14.2~~~Images}
873 An image directive (also clickable -{}- a hyperlink reference):
874 \href{\#directives}{\includegraphics{../../../docs/user/rst/images/title.png}}
875 Image with multiple IDs:
876 \hypertarget{image-target-1}{}\hypertarget{image-target-2}{}\hypertarget{image-target-3}{}
877 \includegraphics{../../../docs/user/rst/images/title.png}
879 A centered image:
881 {\hfill\includegraphics{../../../docs/user/rst/images/biohazard.png}\hfill}
883 A left-aligned image:
885 {\includegraphics{../../../docs/user/rst/images/biohazard.png}\hfill}
887 A right-aligned image:
889 {\hfill\includegraphics{../../../docs/user/rst/images/biohazard.png}}
891 A figure directive:
892 \begin{figure}[htbp]\begin{flushright}
894 \includegraphics[width=50]{../../../docs/user/rst/images/biohazard.png}
895 \caption{A figure is an image with a caption and/or a legend:}{\small
896 \begin{longtable}[c]{|p{0.16\locallinewidth}|p{0.56\locallinewidth}|}
897 \hline
901 Revised, revisited, based on 're' module.
903 \hline
905 Structured
907 Structure-enhanced text, structuredtext.
909 \hline
911 Text
913 Well it is, isn't it?
915 \hline
916 \end{longtable}
918 This paragraph is also part of the legend.
919 }\end{flushright}\end{figure}
920 \begin{figure}[htbp]\begin{flushleft}
922 \includegraphics[width=50]{../../../docs/user/rst/images/biohazard.png}
923 \caption{A left-aligned figure.}{\small
924 This is the legend.
925 }\end{flushleft}\end{figure}
927 This paragraph might flow around the figure...
929 A centered figure:
930 \begin{figure}[htbp]
931 \centering
933 \includegraphics[width=50]{../../../docs/user/rst/images/biohazard.png}
934 \caption{This is the caption.}{\small
935 This is the legend.
937 The legend may consist of several paragraphs.
938 }\end{figure}
940 This paragraph might flow around the figure...
942 A left-aligned figure:
943 \begin{figure}[htbp]\begin{flushleft}
945 \includegraphics[width=50]{../../../docs/user/rst/images/biohazard.png}
946 \caption{This is the caption.}{\small
947 This is the legend.
949 The legend may consist of several paragraphs.
950 }\end{flushleft}\end{figure}
952 This paragraph might flow around the figure...
954 Now widths:
956 An image 2 em wide:
958 \includegraphics[width=2em]{../../../docs/user/rst/images/biohazard.png}
960 An image 2 em wide and 30 pixel high:
962 \includegraphics[width=2em,height=30pt]{../../../docs/user/rst/images/biohazard.png}
964 An image occupying 70{\%} of the line width:
966 \includegraphics[width=0.700\linewidth]{../../../docs/user/rst/images/biohazard.png}
968 An image 3 cm high:
970 \includegraphics[height=3cm]{../../../docs/user/rst/images/biohazard.png}
973 %___________________________________________________________________________
975 \hypertarget{admonitions}{}
976 \pdfbookmark[2]{2.14.3~~~Admonitions}{admonitions}
977 \subsubsection*{2.14.3~~~Admonitions}
978 \begin{center}\begin{sffamily}
979 \fbox{\parbox{\admonitionwidth}{
980 \textbf{\large Attention!}
981 \vspace{2mm}
983 Directives at large.
985 \end{sffamily}
986 \end{center}
987 \begin{center}\begin{sffamily}
988 \fbox{\parbox{\admonitionwidth}{
989 \textbf{\large Caution!}
990 \vspace{2mm}
992 Don't take any wooden nickels.
994 \end{sffamily}
995 \end{center}
996 \begin{center}\begin{sffamily}
997 \fbox{\parbox{\admonitionwidth}{
998 \textbf{\large !DANGER!}
999 \vspace{2mm}
1001 Mad scientist at work!
1003 \end{sffamily}
1004 \end{center}
1005 \begin{center}\begin{sffamily}
1006 \fbox{\parbox{\admonitionwidth}{
1007 \textbf{\large Error}
1008 \vspace{2mm}
1010 Does not compute.
1012 \end{sffamily}
1013 \end{center}
1014 \begin{center}\begin{sffamily}
1015 \fbox{\parbox{\admonitionwidth}{
1016 \textbf{\large Hint}
1017 \vspace{2mm}
1019 It's bigger than a bread box.
1021 \end{sffamily}
1022 \end{center}
1023 \begin{center}\begin{sffamily}
1024 \fbox{\parbox{\admonitionwidth}{
1025 \textbf{\large Important}
1026 \vspace{2mm}
1027 \begin{itemize}
1028 \item {}
1029 Wash behind your ears.
1031 \item {}
1032 Clean up your room.
1034 \item {}
1035 Call your mother.
1037 \item {}
1038 Back up your data.
1040 \end{itemize}
1042 \end{sffamily}
1043 \end{center}
1044 \begin{center}\begin{sffamily}
1045 \fbox{\parbox{\admonitionwidth}{
1046 \textbf{\large Note}
1047 \vspace{2mm}
1049 This is a note.
1051 \end{sffamily}
1052 \end{center}
1053 \begin{center}\begin{sffamily}
1054 \fbox{\parbox{\admonitionwidth}{
1055 \textbf{\large Tip}
1056 \vspace{2mm}
1058 15{\%} if the service is good.
1060 \end{sffamily}
1061 \end{center}
1062 \begin{center}\begin{sffamily}
1063 \fbox{\parbox{\admonitionwidth}{
1064 \textbf{\large Warning}
1065 \vspace{2mm}
1067 Strong prose may provoke extreme mental exertion.
1068 Reader discretion is strongly advised.
1070 \end{sffamily}
1071 \end{center}
1072 \begin{center}\begin{sffamily}
1073 \fbox{\parbox{\admonitionwidth}{
1074 \vspace{2mm}
1075 \textbf{\large And, by the way...}
1076 \smallskip
1078 You can make up your own admonition too.
1080 \end{sffamily}
1081 \end{center}
1084 %___________________________________________________________________________
1086 \hypertarget{topics-sidebars-and-rubrics}{}
1087 \pdfbookmark[2]{2.14.4~~~Topics, Sidebars, and Rubrics}{topics-sidebars-and-rubrics}
1088 \subsubsection*{2.14.4~~~Topics, Sidebars, and Rubrics}
1090 \setlength{\locallinewidth}{0.9\admonitionwidth}
1091 \begin{center}\begin{sffamily}
1092 \fbox{\colorbox[gray]{0.80}{\parbox{\admonitionwidth}{
1093 \textbf{\large Sidebar Title}
1094 \smallskip
1096 \textbf{Optional Subtitle}
1097 \smallskip
1099 This is a sidebar. It is for text outside the flow of the main
1100 text.
1101 \rubric{This is a rubric inside a sidebar}
1103 Sidebars often appears beside the main text with a border and
1104 background color.
1106 \end{sffamily}
1107 \end{center}
1109 \setlength{\locallinewidth}{\linewidth}
1110 \subsubsection*{~\hfill Topic Title\hfill ~}
1112 This is a topic.
1114 \rubric{This is a rubric}
1117 %___________________________________________________________________________
1119 \hypertarget{target-footnotes}{}
1120 \pdfbookmark[2]{2.14.5~~~Target Footnotes}{target-footnotes}
1121 \subsubsection*{2.14.5~~~Target Footnotes}
1122 \begin{figure}[b]\hypertarget{id25}$^{5}$
1123 \href{http://www.python.org/}{http://www.python.org/}
1124 \end{figure}
1125 \begin{figure}[b]\hypertarget{id30}$^{6}$
1126 \href{http://docutils.sourceforge.net/}{http://docutils.sourceforge.net/}
1127 \end{figure}
1130 %___________________________________________________________________________
1132 \hypertarget{replacement-text}{}
1133 \pdfbookmark[2]{2.14.6~~~Replacement Text}{replacement-text}
1134 \subsubsection*{2.14.6~~~Replacement Text}
1136 I recommend you try \href{http://www.python.org/}{Python, \emph{the} best language around}\raisebox{.5em}[0em]{\scriptsize\hyperlink{id25}{5}}.
1139 %___________________________________________________________________________
1141 \hypertarget{compound-paragraph}{}
1142 \pdfbookmark[2]{2.14.7~~~Compound Paragraph}{compound-paragraph}
1143 \subsubsection*{2.14.7~~~Compound Paragraph}
1145 Compound 1, paragraph 1.
1147 Compound 1, paragraph 2.
1148 \begin{itemize}
1149 \item {}
1150 Compound 1, list item one.
1152 \item {}
1153 Compound 1, list item two.
1155 \end{itemize}
1157 Another compound statement:
1159 Compound 2, a literal block:
1160 \begin{quote}{\ttfamily \raggedright \noindent
1161 Compound~2,~literal.
1162 }\end{quote}
1163 Compound 2, this is a test.
1165 Compound 3, only consisting of one paragraph.
1166 \begin{quote}{\ttfamily \raggedright \noindent
1167 Compound~4.~\\
1168 This~one~starts~with~a~literal~block.
1169 }\end{quote}
1170 Compound 4, a paragraph.
1172 Now something \emph{really} perverted -{}- a nested compound block. This is
1173 just to test that it works at all; the results don't have to be
1174 meaningful.
1176 Compound 5, block 1 (a paragraph).
1178 Compound 6, block 2 in compound 5.
1180 Compound 6, another paragraph.
1182 Compound 5, block 3 (a paragraph).
1184 Compound 7, with a table inside:
1186 \begin{longtable}[c]{|p{0.25\locallinewidth}|p{0.25\locallinewidth}|p{0.25\locallinewidth}|}
1187 \hline
1189 Left cell, first
1190 paragraph.
1192 Left cell, second
1193 paragraph.
1195 Middle cell,
1196 consisting of
1197 exactly one
1198 paragraph.
1200 Right cell.
1202 Paragraph 2.
1204 Paragraph 3.
1206 \hline
1207 \end{longtable}
1208 Compound 7, a paragraph after the table.
1210 Compound 7, another paragraph.
1213 %___________________________________________________________________________
1215 \hypertarget{parsed-literal-blocks}{}
1216 \pdfbookmark[2]{2.14.8~~~Parsed Literal Blocks}{parsed-literal-blocks}
1217 \subsubsection*{2.14.8~~~Parsed Literal Blocks}
1218 \begin{quote}{\ttfamily \raggedright \noindent
1219 This~is~a~parsed~literal~block.~\\
1220 ~~~~This~line~is~indented.~~The~next~line~is~blank.~\\
1222 Inline~markup~is~supported,~e.g.~\emph{emphasis},~\textbf{strong},~\texttt{literal~\\
1223 text},~footnotes\raisebox{.5em}[0em]{\scriptsize\hyperlink{id8}{1}},~\hypertarget{id22}{targets},~and~\href{http://www.python.org/}{references}.
1224 }\end{quote}
1227 %___________________________________________________________________________
1229 \hypertarget{substitution-definitions}{}
1230 \pdfbookmark[1]{2.15~~~Substitution Definitions}{substitution-definitions}
1231 \subsection*{2.15~~~Substitution Definitions}
1233 An inline image (\includegraphics{../../../docs/user/rst/images/biohazard.png}) example:
1235 (Substitution definitions are not visible in the HTML source.)
1238 %___________________________________________________________________________
1240 \hypertarget{comments}{}
1241 \pdfbookmark[1]{2.16~~~Comments}{comments}
1242 \subsection*{2.16~~~Comments}
1244 Here's one:
1245 % Comments begin with two dots and a space. Anything may
1246 % follow, except for the syntax of footnotes, hyperlink
1247 % targets, directives, or substitution definitions.
1249 % Double-dashes -- "--" -- must be escaped somehow in HTML output.
1251 % Comments may contain non-ASCII characters: ä ö ü æ ø å
1253 (View the HTML source to see the comment.)
1256 %___________________________________________________________________________
1258 \hypertarget{raw-text}{}
1259 \pdfbookmark[1]{2.17~~~Raw text}{raw-text}
1260 \subsection*{2.17~~~Raw text}
1262 This does not necessarily look nice, because there may be missing white space.
1264 It's just there to freeze the behavior.
1265 A test.Second test.Another test with myclass set.
1266 This is the fourth test with myrawroleclass set.
1267 Fifth test in LaTeX.\\Line two.
1269 %___________________________________________________________________________
1271 \hypertarget{container}{}
1272 \pdfbookmark[1]{2.18~~~Container}{container}
1273 \subsection*{2.18~~~Container}
1275 paragraph 1
1277 paragraph 2
1280 %___________________________________________________________________________
1282 \hypertarget{colspanning-tables}{}
1283 \pdfbookmark[1]{2.19~~~Colspanning tables}{colspanning-tables}
1284 \subsection*{2.19~~~Colspanning tables}
1286 This table has a cell spanning two columns:
1288 \begin{longtable}[c]{|p{0.07\locallinewidth}|p{0.07\locallinewidth}|p{0.09\locallinewidth}|}
1289 \hline
1290 \multicolumn{2}{|l|}{\textbf{
1291 Inputs
1292 }} & \textbf{
1293 Output
1294 } \\
1295 \hline
1296 \textbf{
1298 } & \textbf{
1300 } & \textbf{
1301 A or B
1302 } \\
1303 \hline
1304 \endhead
1306 False
1308 False
1310 False
1312 \hline
1314 True
1316 False
1318 True
1320 \hline
1322 False
1324 True
1326 True
1328 \hline
1330 True
1332 True
1334 True
1336 \hline
1337 \end{longtable}
1340 %___________________________________________________________________________
1342 \hypertarget{rowspanning-tables}{}
1343 \pdfbookmark[1]{2.20~~~Rowspanning tables}{rowspanning-tables}
1344 \subsection*{2.20~~~Rowspanning tables}
1346 Here's a table with cells spanning several rows:
1348 \begin{longtable}[c]{|p{0.30\locallinewidth}|p{0.16\locallinewidth}|p{0.23\locallinewidth}|}
1349 \hline
1350 \textbf{
1351 Header row, column 1
1352 (header rows optional)
1353 } & \textbf{
1354 Header 2
1355 } & \textbf{
1356 Header 3
1357 } \\
1358 \hline
1359 \endhead
1361 body row 1, column 1
1363 column 2
1365 column 3
1367 \hline
1369 body row 2
1370 & \multirow{2}{0.16\locallinewidth}{
1371 Cells may
1372 span rows.
1373 } & \multirow{2}{0.23\locallinewidth}{
1374 Another
1375 rowspanning
1376 cell.
1377 } \\
1378 \cline{1-1}
1380 body row 3
1381 & \\
1382 \hline
1383 \end{longtable}
1386 %___________________________________________________________________________
1388 \hypertarget{tests-for-the-latex-writer}{}
1389 \pdfbookmark[0]{3~~~Tests for the LaTeX writer}{tests-for-the-latex-writer}
1390 \section*{3~~~Tests for the LaTeX writer}
1393 %___________________________________________________________________________
1395 \hypertarget{monospaced-non-alphanumeric-characters}{}
1396 \pdfbookmark[1]{3.1~~~Monospaced non-alphanumeric characters}{monospaced-non-alphanumeric-characters}
1397 \subsection*{3.1~~~Monospaced non-alphanumeric characters}
1399 These are all ASCII characters except a-zA-Z0-9 and space:
1401 \texttt{!!!"{}"{}"{\#}{\#}{\#}{\$}{\$}{\$}{\%}{\%}{\%}{\&}{\&}{\&}'{}'{}'((()))***+++,{},{},-{}-{}-...///:::}
1403 \texttt{;;;<{}<{}<===>{}>{}>???@@@{[}{[}{[}{\textbackslash}{\textbackslash}{\textbackslash}{]}{]}{]}{\textasciicircum}{\textasciicircum}{\textasciicircum}{\_}{\_}{\_}`{}`{}`{\{}{\{}{\{}|||{\}}{\}}{\}}{\textasciitilde}{\textasciitilde}{\textasciitilde}}
1405 \texttt{xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx}
1407 The two lines of non-alphanumeric characters should both have the same
1408 width as the third line.
1411 %___________________________________________________________________________
1413 \hypertarget{various-non-ascii-characters}{}
1414 \pdfbookmark[1]{3.2~~~Various non-ASCII characters}{various-non-ascii-characters}
1415 \subsection*{3.2~~~Various non-ASCII characters}
1417 \begin{longtable}[c]{|p{0.03\locallinewidth}|p{0.42\locallinewidth}|}
1418 \hline
1422 copyright sign
1424 \hline
1428 registered sign
1430 \hline
1434 left pointing guillemet
1436 \hline
1440 right pointing guillemet
1442 \hline
1444 {--}
1446 en-dash
1448 \hline
1450 {---}
1452 em-dash
1454 \hline
1458 single turned comma quotation mark
1460 \hline
1464 single comma quotation mark
1466 \hline
1470 low single comma quotation mark
1472 \hline
1476 double turned comma quotation mark
1478 \hline
1482 double comma quotation mark
1484 \hline
1488 low double comma quotation mark
1490 \hline
1492 {\dag}
1494 dagger
1496 \hline
1498 {\ddag}
1500 double dagger
1502 \hline
1504 {\dots}
1506 ellipsis
1508 \hline
1510 {\texttrademark}
1512 trade mark sign
1514 \hline
1516 {$\Leftrightarrow$}
1518 left-right double arrow
1520 \hline
1521 \end{longtable}
1523 The following line should not be wrapped, because it uses
1524 non-breakable spaces:
1526 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
1529 %___________________________________________________________________________
1531 \hypertarget{custom-roles}{}
1532 \pdfbookmark[1]{3.3~~~Custom Roles}{custom-roles}
1533 \subsection*{3.3~~~Custom Roles}
1534 \begin{itemize}
1535 \item {}
1536 A role based on an existing role.
1538 \texttt{one} \texttt{two} \texttt{three}
1540 \item {}
1541 A new role.
1543 \docutilsrolecustomnew{one two three}
1545 \item {}
1546 A role with class attribute.
1548 \docutilsrolespecial{interpreted text}
1550 \item {}
1551 A role with class attribute.
1553 \docutilsrolevery{\docutilsrolespecial{interpreted text}}
1555 \end{itemize}
1558 %___________________________________________________________________________
1560 \hypertarget{error-handling}{}
1561 \pdfbookmark[0]{4~~~Error Handling}{error-handling}
1562 \section*{4~~~Error Handling}
1564 Any errors caught during processing will generate system messages.
1566 There should be five messages in the following, auto-generated
1567 section, ``Docutils System Messages'':
1568 % section should be added by Docutils automatically
1571 %___________________________________________________________________________
1573 \section*{Docutils System Messages}
1575 Undefined substitution referenced: ``problematic''.
1578 Unknown target name: ``5''.
1581 Unknown target name: ``nonexistent''.
1584 Unknown target name: ``hyperlink reference without a target''.
1587 Duplicate target name, cannot be used as a unique reference: ``duplicate target names''.
1590 \end{document}