Debian Codegraph @

test/functional/expected/standalone_rst_xetex.tex

raw
1 \documentclass[a4paper]{article}
2 % generated by Docutils <https://docutils.sourceforge.io/>
3 % rubber: set program xelatex
4 \usepackage{fontspec}
5 % \defaultfontfeatures{Scale=MatchLowercase}
6 % straight double quotes (defined in T1 but missing in TU):
7 \ifdefined \UnicodeEncodingName
8 \DeclareTextCommand{\textquotedbl}{\UnicodeEncodingName}{%
9 {\addfontfeatures{RawFeature=-tlig,Mapping=}\char34}}%
10 \fi
11 \usepackage{alltt}
12 \usepackage{amsmath}
13 \usepackage{polyglossia}
14 \setdefaultlanguage{english}
15 \setotherlanguages{english,french,german}
16 \usepackage{color}
17 \usepackage{float} % extended float configuration
18 \floatplacement{figure}{H} % place figures here definitely
19 \usepackage{graphicx}
20 \usepackage{multirow}
21 \setcounter{secnumdepth}{0}
22 \usepackage{longtable,ltcaption,array}
23 \setlength{\extrarowheight}{2pt}
24 \newlength{\DUtablewidth} % internal use in tables
25 \usepackage{tabularx}
26
27 %%% Custom LaTeX preamble
28 % Linux Libertine (free, wide coverage, not only for Linux)
29 \setmainfont{Linux Libertine O}
30 \setsansfont{Linux Biolinum O}
31 \setmonofont[HyphenChar=None,Scale=MatchLowercase]{DejaVu Sans Mono}
32
33 %%% User specified packages and stylesheets
34
35 %%% Fallback definitions for Docutils-specific commands
36 \usepackage{docutils}[2026-05-06]
37 \newcounter{enumv}
38
39 \DUprovidelength{\pdfpxdimen}{1bp}
40
41 \providecommand*{\DUCLASScontents}{%
42 \renewenvironment{itemize}%
43 {\begin{list}{}{\setlength{\partopsep}{0pt}
44 \setlength{\parsep}{0pt}}
45 }%
46 {\end{list}}%
47 }
48 % hyperlinks:
49 \ifdefined\hypersetup
50 \else
51 \usepackage[hyperfootnotes=false,
52 colorlinks=true,linkcolor=blue,urlcolor=blue]{hyperref}
53 \usepackage{bookmark}
54 \urlstyle{same} % normal text font (alternatives: tt, rm, sf)
55 \fi
56 \hypersetup{
57 pdftitle={reStructuredText Test Document},
58 pdfkeywords={reStructuredText, test, parser},
59 pdfinfo={description={A test document, containing at least one example of each reStructuredText construct.}},
60 pdfauthor={David Goodger; Me; Myself; I}
61 }
62
63 \title{reStructuredText Test Document%
64 \label{doctitle}%
65 \\%
66 \DUdocumentsubtitle{Examples of Syntax Constructs}%
67 \label{subtitle}}
68 \author{}
69 \date{}
70
71 %%% Body
72 \begin{document}
73 \maketitle
74
75 % Docinfo
76 \begin{center}
77 \begin{tabularx}{\DUdocinfowidth}{lX}
78 \textbf{Author}: & David Goodger \\
79 \textbf{Address}: & {\raggedright
80 123 Example Street\\
81 Example, EX Canada\\
82 A1B 2C3} \\
83 \textbf{Contact}: & \href{mailto:[email protected]}{[email protected]} \\
84 \textbf{Authors}: & Me, Myself, I \\
85 \textbf{Organization}: & humankind \\
86 \textbf{Date}: & Now, or yesterday. Or maybe even \emph{before} yesterday. \\
87 \textbf{Status}: & This is a “work in progress” \\
88 \textbf{Revision}: & is managed by a version control system. \\
89 \textbf{Version}: & 1 \\
90 \textbf{Copyright}: &
91 This document has been placed in the public domain. You
92 may do with it as you wish. You may copy, modify,
93 redistribute, reattribute, sell, buy, rent, lease,
94 destroy, or improve it, quote it at length, excerpt,
95 incorporate, collate, fold, staple, or mutilate it, or do
96 anything else to it that your or anyone else’s heart
97 desires. \\
98 \textbf{field name}: &
99 This is a “generic bibliographic field”.
100 \\
101 \textbf{field name “2”}: &
102 Generic bibliographic fields may contain multiple body elements.
103
104 Like this.
105 \\
106 \end{tabularx}
107 \end{center}
108
109 \begin{DUclass}{dedication}
110 \begin{quote}
111 \DUtitle{Dedication}
112
113 For Docutils users \& co-developers.
114 \end{quote}
115 \end{DUclass}
116
117 \begin{DUclass}{abstract}
118 \begin{quote}
119 \DUtitle{Abstract}
120
121 This is a test document, containing at least one example of each
122 reStructuredText construct.
123 \end{quote}
124 \end{DUclass}
125
126 % This is a comment. Note how any initial comments are moved by
127 % transforms to after the document title, subtitle, and docinfo.
128
129 % Above is the document title, and below is the subtitle.
130 % They are transformed from section titles after parsing.
131
132 % bibliographic fields (which also require a transform):
133
134 \pagebreak[4] % start ToC on new page
135
136 \phantomsection\label{table-of-contents}
137 \pdfbookmark[1]{Table of Contents}{table-of-contents}
138
139 \begin{DUclass}{contents}
140
141 \DUtitle{Table of Contents}
142
143 \begin{DUclass}{auto-toc}
144 \begin{itemize}
145 \item \hyperref[structural-elements]{1   Structural Elements}
146
147 \begin{DUclass}{auto-toc}
148 \begin{itemize}
149 \item \hyperref[section-title]{1.1   Section Title}
150
151 \item \hyperref[empty-section]{1.2   Empty Section}
152
153 \item \hyperref[transitions]{1.3   Transitions}
154 \end{itemize}
155 \end{DUclass}
156
157 \item \hyperref[body-elements]{2   Body Elements}
158
159 \begin{DUclass}{auto-toc}
160 \begin{itemize}
161 \item \hyperref[paragraphs]{2.1   Paragraphs}
162
163 \begin{DUclass}{auto-toc}
164 \begin{itemize}
165 \item \hyperref[inline-markup]{2.1.1   Inline Markup}
166 \end{itemize}
167 \end{DUclass}
168
169 \item \hyperref[bullet-lists]{2.2   Bullet Lists}
170
171 \item \hyperref[enumerated-lists]{2.3   Enumerated Lists}
172
173 \item \hyperref[definition-lists]{2.4   Definition Lists}
174
175 \item \hyperref[field-lists]{2.5   Field Lists}
176
177 \item \hyperref[option-lists]{2.6   Option Lists}
178
179 \item \hyperref[literal-blocks]{2.7   Literal Blocks}
180
181 \item \hyperref[line-blocks]{2.8   Line Blocks}
182
183 \item \hyperref[block-quotes]{2.9   Block Quotes}
184
185 \item \hyperref[doctest-blocks]{2.10   Doctest Blocks}
186
187 \item \hyperref[footnotes]{2.11   Footnotes}
188
189 \item \hyperref[citations]{2.12   Citations}
190
191 \item \hyperref[targets]{2.13   Targets}
192
193 \begin{DUclass}{auto-toc}
194 \begin{itemize}
195 \item \hyperref[duplicate-target-names-1]{2.13.1   Duplicate Target Names}
196
197 \item \hyperref[duplicate-target-names-2]{2.13.2   Duplicate Target Names}
198 \end{itemize}
199 \end{DUclass}
200
201 \item \hyperref[directives]{2.14   Directives}
202
203 \begin{DUclass}{auto-toc}
204 \begin{itemize}
205 \item \hyperref[document-parts]{2.14.1   Document Parts}
206
207 \item \hyperref[images-and-figures]{2.14.2   Images and Figures}
208
209 \item \hyperref[tables]{2.14.3   Tables}
210
211 \item \hyperref[admonitions]{2.14.4   Admonitions}
212
213 \item \hyperref[topics-sidebars-and-rubrics]{2.14.5   Topics, Sidebars, and Rubrics}
214
215 \item \hyperref[target-footnotes]{2.14.6   Target Footnotes}
216
217 \item \hyperref[replacement-text]{2.14.7   Replacement Text}
218
219 \item \hyperref[compound-paragraph]{2.14.8   Compound Paragraph}
220
221 \item \hyperref[parsed-literal-blocks]{2.14.9   Parsed Literal Blocks}
222
223 \item \hyperref[code]{2.14.10   Code}
224
225 \item \hyperref[meta]{2.14.11   Meta}
226 \end{itemize}
227 \end{DUclass}
228
229 \item \hyperref[substitution-definitions]{2.15   Substitution Definitions}
230
231 \item \hyperref[comments]{2.16   Comments}
232
233 \item \hyperref[raw-text]{2.17   Raw text}
234
235 \item \hyperref[container]{2.18   Container}
236
237 \item \hyperref[colspanning-tables]{2.19   Colspanning tables}
238
239 \item \hyperref[rowspanning-tables]{2.20   Rowspanning tables}
240
241 \item \hyperref[list-tables]{2.21   List Tables}
242
243 \item \hyperref[custom-roles]{2.22   Custom Roles}
244
245 \item \hyperref[mathematics]{2.23   Mathematics}
246 \end{itemize}
247 \end{DUclass}
248
249 \item \hyperref[tests-for-the-latex-writer]{3   Tests for the LaTeX writer}
250
251 \begin{DUclass}{auto-toc}
252 \begin{itemize}
253 \item \hyperref[custom-roles-in-latex]{3.1   Custom Roles in LaTeX}
254
255 \item \hyperref[class-handling]{3.2   class handling}
256 \end{itemize}
257 \end{DUclass}
258
259 \item \hyperref[tests-for-the-xetex-writer]{4   Tests for the XeTeX writer}
260
261 \item \hyperref[error-handling]{5   Error Handling}
262 \end{itemize}
263 \end{DUclass}
264 \end{DUclass}
265
266
267 \section{1   Structural Elements%
268 \label{structural-elements}%
269 }
270
271
272 \subsection{1.1   Section Title%
273 \label{section-title}%
274 }
275 \subsubsection*{Section Subtitle}
276
277 Lone subsections are converted to a section subtitle by a transform
278 activated with the \texttt{--section-subtitles} command line option or the
279 \texttt{sectsubtitle-xform} configuration value.
280
281
282 \subsection{1.2   Empty Section%
283 \label{empty-section}%
284 }
285
286
287 \subsection{1.3   Transitions%
288 \label{transitions}%
289 }
290
291 Here’s a transition:
292
293 %___________________________________________________________________________
294 \DUtransition
295
296 It divides the section. Transitions may also occur between sections:
297
298 %___________________________________________________________________________
299 \DUtransition
300
301
302 \section{2   Body Elements%
303 \label{body-elements}%
304 }
305
306
307 \subsection{2.1   Paragraphs%
308 \label{paragraphs}%
309 }
310
311 A paragraph.
312
313
314 \subsubsection{2.1.1   Inline Markup%
315 \label{inline-markup}%
316 }
317
318 Paragraphs contain text and may contain inline markup: \emph{emphasis},
319 \textbf{strong emphasis}, \texttt{inline literals}, standalone hyperlinks
320 (\url{http://www.python.org}), external hyperlinks (\href{http://www.python.org/}{Python}\DUfootnotemark{footnote-reference-10}{footnote-6}{5}), internal
321 cross-references (\hyperref[example]{example}), external hyperlinks with embedded URIs
322 (\href{http://www.python.org}{Python web site}), \href{http://www.python.org/}{anonymous hyperlink
323 references}\DUfootnotemark{footnote-reference-17}{footnote-6}{5} (\href{https://docutils.sourceforge.io/}{a second reference}\DUfootnotemark{footnote-reference-18}{footnote-10}{9}), footnote references (manually
324 numbered\DUfootnotemark{footnote-reference-1}{footnote-1}{1}, anonymous auto-numbered\DUfootnotemark{footnote-reference-2}{footnote-2}{3}, labeled auto-numbered\DUfootnotemark{footnote-reference-3}{label}{2}, or symbolic\DUfootnotemark{footnote-reference-4}{footnote-3}{*}), citation references (see \hyperlink{cit2002}{[CIT2002]}),
325 substitution references (\includegraphics{../../../docs/user/rst/images/biohazard.png} \&
326 a \emph{trimmed heart} \texttt{(U+2665):}♥), and %
327 \phantomsection\label{inline-hyperlink-targets}inline hyperlink targets
328 (see \hyperref[targets]{Targets} below for a reference back to here). Character-level
329 inline markup is also possible (although exceedingly ugly!) in \emph{re}\texttt{Structured}\emph{Text}. Problems are indicated by %
330 \raisebox{1em}{\hypertarget{problematic-1}{}}\hyperlink{system-message-1}{\textbf{\color{red}|problematic|}} text
331 (generated by processing errors; this one is intentional). Here is a
332 reference to the \hyperref[doctitle]{doctitle} and the \hyperref[subtitle]{subtitle}.
333
334 The default role for interpreted text is \DUroletitlereference{Title Reference}. Here are
335 some explicit interpreted text roles: a PEP reference (\href{https://peps.python.org/pep-0287}{PEP 287}); an
336 RFC reference (\href{https://tools.ietf.org/html/rfc2822.html}{RFC 2822}); an abbreviation (\DUrole{abbreviation}{abb.}), an acronym
337 (\DUrole{acronym}{reST}), code (\texttt{\DUrole{code}{print \textquotedbl{}hello world\textquotedbl{}}}); a \textsubscript{subscript};
338 a \textsuperscript{superscript} and explicit roles for \DUroletitlereference{Docutils}’
339 \emph{standard} \textbf{inline} \texttt{markup}.
340
341 % DO NOT RE-WRAP THE FOLLOWING PARAGRAPH!
342
343 Let’s test wrapping and whitespace significance in inline literals:
344 \texttt{This is an example of --inline-literal --text, --including some--
345 strangely--hyphenated-words. ~Adjust-the-width-of-your-browser-window
346 to see how the text is wrapped. ~-- ---- -------- ~Now note ~ ~the
347 spacing ~ ~between the ~ ~words of ~ ~this sentence ~ ~(words
348 should ~ ~be grouped ~ ~in pairs).}
349
350 If the \texttt{--pep-references} option was supplied, there should be a
351 live link to PEP 258 here.
352
353
354 \subsection{2.2   Bullet Lists%
355 \label{bullet-lists}%
356 }
357
358 \begin{itemize}
359 \item A bullet list
360
361 \begin{itemize}
362 \item Nested bullet list.
363
364 \item Nested item 2.
365 \end{itemize}
366
367 \item Item 2.
368
369 Paragraph 2 of item 2.
370
371 \begin{itemize}
372 \item Nested bullet list.
373
374 \item Nested item 2.
375
376 \begin{itemize}
377 \item Third level.
378
379 \item Item 2.
380 \end{itemize}
381
382 \item Nested item 3.
383
384 \item This nested list should be compacted by the HTML writer.
385
386 \phantomsection\label{target}
387 % Even if this item contains a target and a comment.
388 \end{itemize}
389 \end{itemize}
390
391
392 \subsection{2.3   Enumerated Lists%
393 \label{enumerated-lists}%
394 }
395
396 \begin{enumerate}
397 \item Arabic numerals.
398
399 \begin{enumerate}
400 \renewcommand{\labelenumii}{\alph{enumii})}
401 \item lower alpha)
402
403 \begin{enumerate}
404 \renewcommand{\labelenumiii}{(\roman{enumiii})}
405 \item (lower roman)
406
407 \begin{enumerate}
408 \item upper alpha.
409
410 \begin{list}{\Roman{enumv})}{\usecounter{enumv}}
411 \item upper roman)
412 \end{list}
413 \end{enumerate}
414 \end{enumerate}
415 \end{enumerate}
416
417 \item Lists that don’t start at 1:
418
419 \begin{enumerate}
420 \renewcommand{\labelenumii}{\arabic{enumii}.}
421 \setcounter{enumii}{2}
422 \item Three
423
424 \item Four
425 \end{enumerate}
426
427 \begin{enumerate}
428 \renewcommand{\labelenumii}{\Alph{enumii}.}
429 \setcounter{enumii}{2}
430 \item C
431
432 \item D
433 \end{enumerate}
434
435 \begin{enumerate}
436 \renewcommand{\labelenumii}{\roman{enumii}.}
437 \setcounter{enumii}{2}
438 \item iii
439
440 \item iv
441 \end{enumerate}
442 \end{enumerate}
443
444
445 \subsection{2.4   Definition Lists%
446 \label{definition-lists}%
447 }
448
449 \begin{description}
450 \item[{Term}]
451 Definition
452
453 \item[{Term}] (\textbf{classifier})
454 Definition paragraph 1.
455
456 Definition paragraph 2.
457
458 \item[{Term}]
459 Definition
460
461 \item[{Term}] (\textbf{classifier one})(\textbf{classifier two})
462 Definition
463 \end{description}
464
465
466 \subsection{2.5   Field Lists%
467 \label{field-lists}%
468 }
469
470 \begin{DUfieldlist}
471 \item[{what:}]
472 Field lists map field names to field bodies, like database
473 records. They are often part of an extension syntax. They are
474 an unambiguous variant of RFC 2822 fields.
475
476 \item[{how arg1 arg2:}]
477 The field marker is a colon, the field name, and a colon.
478
479 The field body may contain one or more body elements, indented
480 relative to the field marker.
481
482 \item[{credits:}]
483 \DUrole{credits}{This paragraph has the \DUroletitlereference{credits} class set. (This is actually not
484 about credits but just for ensuring that the class attribute
485 doesn’t get stripped away.)}
486 \end{DUfieldlist}
487
488
489 \subsection{2.6   Option Lists%
490 \label{option-lists}%
491 }
492
493 For listing command-line options:
494
495 \begin{DUoptionlist}
496 \item[-a] command-line option “a”
497 \item[-b file] options can have arguments
498 and long descriptions
499 \item[--long] options can be long, too
500 \item[--input=file] long options can also have arguments
501 \item[/V] DOS/VMS-style option
502 \item[--very-long-option] The description can also start on the next line.
503
504 The description may contain multiple body elements,
505 regardless of where it starts.
506 \item[-x, -y, -z] Multiple options are an “option group”.
507 \item[-v, --verbose] Commonly-seen: short \& long options.
508 \item[-1 file, --one=file, --two file] Multiple options with arguments.
509 \item[-f <{[}path{]}file>] Option argumens must start with a letter
510 or be wrapped in angle brackets.
511 \item[-d <src dest>] Angle brackets are also required if an
512 option expects more than one argument.
513 \end{DUoptionlist}
514
515 There must be at least two spaces between the option and the
516 description.
517
518
519 \subsection{2.7   Literal Blocks%
520 \label{literal-blocks}%
521 }
522
523 Literal blocks are indicated with a double-colon (“::”) at the end of
524 the preceding paragraph (over there \texttt{-->}). They can be indented:
525
526 \begin{quote}
527 \begin{alltt}
528 if literal_block:
529 text = 'is left as-is'
530 spaces_and_linebreaks = 'are preserved'
531 markup_processing = None
532 \end{alltt}
533 \end{quote}
534
535 Or they can be quoted without indentation:
536
537 \begin{quote}
538 \begin{alltt}
539 >> Great idea!
540 >
541 > Why didn't I think of that?
542 \end{alltt}
543 \end{quote}
544
545
546 \subsection{2.8   Line Blocks%
547 \label{line-blocks}%
548 }
549
550 This section tests line blocks. Line blocks are body elements which
551 consist of lines and other line blocks. Nested line blocks cause
552 indentation.
553
554 \begin{DUlineblock}{0em}
555 \item[] This is a line block. It ends with a blank line.
556 \item[]
557 \begin{DUlineblock}{\DUlineblockindent}
558 \item[] New lines begin with a vertical bar (“|”).
559 \item[] Line breaks and initial indent are significant, and preserved.
560 \item[]
561 \begin{DUlineblock}{\DUlineblockindent}
562 \item[] Continuation lines are also possible. A long line that is intended
563 to wrap should begin with a space in place of the vertical bar.
564 \end{DUlineblock}
565 \item[] The left edge of a continuation line need not be aligned with
566 the left edge of the text above it.
567 \end{DUlineblock}
568 \end{DUlineblock}
569
570 \begin{DUlineblock}{0em}
571 \item[] This is a second line block.
572 \item[]
573 \item[] Blank lines are permitted internally, but they must begin with a “|”.
574 \end{DUlineblock}
575
576 Another line block, surrounded by paragraphs:
577
578 \begin{DUlineblock}{0em}
579 \item[] And it’s no good waiting by the window
580 \item[] It’s no good waiting for the sun
581 \item[] Please believe me, the things you dream of
582 \item[] They don’t fall in the lap of no-one
583 \end{DUlineblock}
584
585 Take it away, Eric the Orchestra Leader!
586
587 \begin{quote}
588 \begin{DUlineblock}{0em}
589 \item[] A one, two, a one two three four
590 \item[]
591 \item[] Half a bee, philosophically,
592 \item[]
593 \begin{DUlineblock}{\DUlineblockindent}
594 \item[] must, \emph{ipso facto}, half not be.
595 \end{DUlineblock}
596 \item[] But half the bee has got to be,
597 \item[]
598 \begin{DUlineblock}{\DUlineblockindent}
599 \item[] \emph{vis a vis} its entity. D’you see?
600 \item[]
601 \end{DUlineblock}
602 \item[] But can a bee be said to be
603 \item[]
604 \begin{DUlineblock}{\DUlineblockindent}
605 \item[] or not to be an entire bee,
606 \item[]
607 \begin{DUlineblock}{\DUlineblockindent}
608 \item[] when half the bee is not a bee,
609 \item[]
610 \begin{DUlineblock}{\DUlineblockindent}
611 \item[] due to some ancient injury?
612 \item[]
613 \end{DUlineblock}
614 \end{DUlineblock}
615 \end{DUlineblock}
616 \item[] Singing…
617 \end{DUlineblock}
618 \end{quote}
619
620 A line block, like the following poem by Christian Morgenstern, can
621 also be centre-aligned:
622
623 \begin{selectlanguage}{german}
624 \begin{DUlineblock}{0em}
625 \centering
626 \item[] \textbf{Die Trichter}
627 \item[]
628 \item[] Zwei Trichter wandeln durch die Nacht.
629 \item[] Durch ihres Rumpfs verengten Schacht
630 \item[] fließt weißes Mondlicht
631 \item[] still und heiter
632 \item[] auf   ihren
633 \item[] Waldweg
634 \item[] u. s.
635 \item[] w.
636 \item[]
637 \end{DUlineblock}
638 \end{selectlanguage}
639
640
641 \subsection{2.9   Block Quotes%
642 \label{block-quotes}%
643 }
644
645 Block quotes consist of indented body elements:
646
647 \begin{quote}
648 My theory by A. Elk. Brackets Miss, brackets. This theory goes
649 as follows and begins now. All brontosauruses are thin at one
650 end, much much thicker in the middle and then thin again at the
651 far end. That is my theory, it is mine, and belongs to me and I
652 own it, and what it is too.
653 \nopagebreak
654
655 \raggedleft —Anne Elk (Miss)
656 \end{quote}
657
658 The language of a quote (like any other object) can be specified by
659 a class attribute:
660
661 %
662
663 \begin{selectlanguage}{french}
664 \begin{quote}
665 ReStructuredText est un langage de balisage léger utilisé
666 notamment dans la documentation du langage Python.
667 \end{quote}
668 \end{selectlanguage}
669
670
671 \subsection{2.10   Doctest Blocks%
672 \label{doctest-blocks}%
673 }
674
675 \begin{quote}
676 \begin{alltt}
677 >>> print 'Python-specific usage examples; begun with ">>>"'
678 Python-specific usage examples; begun with ">>>"
679 >>> print '(cut and pasted from interactive Python sessions)'
680 (cut and pasted from interactive Python sessions)
681 \end{alltt}
682 \end{quote}
683
684
685 \subsection{2.11   Footnotes%
686 \label{footnotes}%
687 }
688 %
689 \DUfootnotetext{footnote-1}{footnote-reference-1}{1}{%
690 A footnote contains body elements, consistently indented by at
691 least 1 space.
692
693 This is the footnote’s second paragraph.
694 }
695 %
696 \DUfootnotetext{label}{footnote-reference-3}{2}{%
697 Footnotes may be numbered, either manually (as in\DUfootnotemark{footnote-reference-5}{footnote-1}{1}) or
698 automatically using a “\#”-prefixed label. This footnote has a
699 label so it can be referred to from multiple places, both as a
700 footnote reference (\DUfootnotemark{footnote-reference-6}{label}{2}) and as a \hyperref[label]{hyperlink reference}.
701 }
702 %
703 \DUfootnotetext{footnote-2}{footnote-reference-2}{3}{%
704 This footnote is numbered automatically and anonymously using a
705 label of “\#” only.
706
707 This is the second paragraph.
708
709 And this is the third paragraph.
710 }
711 %
712 \DUfootnotetext{footnote-3}{footnote-reference-4}{*}{%
713 Footnotes may also use symbols, specified with a “*” label.
714 Here’s a reference to the next footnote:\DUfootnotemark{footnote-reference-7}{footnote-4}{†}.
715 }
716 %
717 \DUfootnotetext{footnote-4}{footnote-reference-7}{†}{%
718 This footnote shows the next symbol in the sequence.
719 }
720 %
721 \DUfootnotetext{footnote-5}{}{4}{%
722 Here’s an unreferenced footnote, with a reference to a
723 nonexistent footnote:%
724 \raisebox{1em}{\hypertarget{footnote-reference-8}{}}\hyperlink{system-message-2}{\textbf{\color{red}{[}5{]}\_}}.
725 }
726
727
728 \subsection{2.12   Citations%
729 \label{citations}%
730 }
731 \begin{figure}[b]\raisebox{1em}{\hypertarget{cit2002}{}}[CIT2002]
732 Citations are text-labeled footnotes. They may be
733 rendered separately and differently from footnotes.
734 \end{figure}
735
736 Here’s a reference to the above, \hyperlink{cit2002}{[CIT2002]}, and a %
737 \raisebox{1em}{\hypertarget{citation-reference-3}{}}\hyperlink{system-message-3}{\textbf{\color{red}{[}nonexistent{]}\_}}
738 citation.
739
740
741 \subsection{2.13   Targets%
742 \label{targets}%
743 \label{another-target}%
744 }
745
746 \phantomsection\label{example}
747 This paragraph is pointed to by the explicit “example” target. A
748 reference can be found under \hyperref[inline-markup]{Inline Markup}, above. \hyperref[inline-hyperlink-targets]{Inline
749 hyperlink targets} are also possible.
750
751 Section headers are implicit targets, referred to by name. See
752 \hyperref[targets]{Targets}, which is a subsection of \hyperref[body-elements]{Body Elements}.
753
754 Explicit external targets are interpolated into references such as
755 “\href{http://www.python.org/}{Python}\DUfootnotemark{footnote-reference-11}{footnote-6}{5}”.
756
757 Targets may be indirect and anonymous. Thus \hyperref[targets]{this phrase} may also
758 refer to the \hyperref[targets]{Targets} section.
759
760 Here’s a %
761 \raisebox{1em}{\hypertarget{problematic-2}{}}\hyperlink{system-message-4}{\textbf{\color{red}`hyperlink reference without a target`\_}}, which generates an
762 error.
763
764
765 \subsubsection{2.13.1   Duplicate Target Names%
766 \label{duplicate-target-names-1}%
767 }
768
769 Duplicate names in section headers or other implicit targets will
770 generate “info” (level-1) system messages. Duplicate names in
771 explicit targets will generate “warning” (level-2) system messages.
772
773
774 \subsubsection{2.13.2   Duplicate Target Names%
775 \label{duplicate-target-names-2}%
776 }
777
778 Since there are two “Duplicate Target Names” section headers, we
779 cannot uniquely refer to either of them by name. If we try to (like
780 this: %
781 \raisebox{1em}{\hypertarget{problematic-3}{}}\hyperlink{system-message-5}{\textbf{\color{red}`Duplicate Target Names`\_}}), an error is generated.
782
783
784 \subsection{2.14   Directives%
785 \label{directives}%
786 }
787
788 \phantomsection\label{contents}
789
790 \begin{DUclass}{contents}
791 \begin{DUclass}{local}
792
793 \begin{DUclass}{auto-toc}
794 \begin{itemize}
795 \item \hyperref[document-parts]{2.14.1   Document Parts}
796
797 \item \hyperref[images-and-figures]{2.14.2   Images and Figures}
798
799 \item \hyperref[tables]{2.14.3   Tables}
800
801 \item \hyperref[admonitions]{2.14.4   Admonitions}
802
803 \item \hyperref[topics-sidebars-and-rubrics]{2.14.5   Topics, Sidebars, and Rubrics}
804
805 \item \hyperref[target-footnotes]{2.14.6   Target Footnotes}
806
807 \item \hyperref[replacement-text]{2.14.7   Replacement Text}
808
809 \item \hyperref[compound-paragraph]{2.14.8   Compound Paragraph}
810
811 \item \hyperref[parsed-literal-blocks]{2.14.9   Parsed Literal Blocks}
812
813 \item \hyperref[code]{2.14.10   Code}
814
815 \item \hyperref[meta]{2.14.11   Meta}
816 \end{itemize}
817 \end{DUclass}
818 \end{DUclass}
819 \end{DUclass}
820
821 These are just a sample of the many reStructuredText Directives. For
822 others, please see \href{https://docutils.sourceforge.io/docs/ref/rst/directives.html}{reStructuredText Directives}\DUfootnotemark{footnote-reference-19}{footnote-11}{10}.
823
824
825 \subsubsection{2.14.1   Document Parts%
826 \label{document-parts}%
827 }
828
829 An example of the “contents” directive can be seen above this section
830 (a local, untitled table of \hyperref[contents]{contents}) and at the beginning of the
831 document (a document-wide \hyperref[table-of-contents]{table of contents}).
832
833
834 \subsubsection{2.14.2   Images and Figures%
835 \label{images-and-figures}%
836 }
837
838 An image directive (also clickable – a hyperlink reference):
839
840 \hyperref[directives]{\includegraphics[width=0.7\linewidth]{../../../docs/user/rst/images/title.png}}
841
842 Image with multiple IDs:
843
844 \phantomsection\label{image-target-3}\label{image-target-2}\label{image-target-1}
845 \includegraphics{../../../docs/user/rst/images/biohazard.png}
846
847 A centered image:
848
849 \noindent\makebox[\linewidth][c]{\includegraphics{../../../docs/user/rst/images/biohazard.png}}
850
851 A left-aligned image:
852
853 \noindent{\includegraphics{../../../docs/user/rst/images/biohazard.png}\hfill}
854
855 This paragraph might flow around the image.
856 The specific behavior depends upon the style sheet and
857 the browser or rendering software used.
858
859 A right-aligned image:
860
861 \noindent{\hfill\includegraphics{../../../docs/user/rst/images/biohazard.png}}
862
863 This paragraph might flow around the image.
864 The specific behavior depends upon the style sheet and
865 the browser or rendering software used.
866
867 For inline images see \hyperref[substitution-definitions]{Substitution Definitions}.
868
869 Image size:
870
871 An image 2 em wide:
872
873 \includegraphics[width=2em]{../../../docs/user/rst/images/biohazard.png}
874
875 An image 2 cm wide and 15 pixel high:
876
877 \includegraphics[height=15\pdfpxdimen,width=2cm]{../../../docs/user/rst/images/biohazard.png}
878
879 Relative units allow adaption of the image to the screen or paper size.
880 An image occupying 50\% of the line width:
881
882 \includegraphics[width=0.5\linewidth]{../../../docs/user/rst/images/title.png}
883
884 A \emph{figure} is an image with a caption and/or a legend. With page-based output
885 media, figures might float to a different position if this helps the page
886 layout.
887
888 \begin{DUclass}{figclass1}
889 \begin{DUclass}{figclass2}
890 \begin{figure}
891 \noindent\makebox[\linewidth][c]{\href{https://docutils.sourceforge.io/rst.html}{\includegraphics[width=258bp]{../../../docs/user/rst/images/title.png}}}
892 \caption{Plaintext markup syntax and parser system.}
893 \begin{DUlegend}
894 \setlength{\DUtablewidth}{\linewidth}%
895 \begin{longtable*}{|p{0.156\DUtablewidth}|p{0.563\DUtablewidth}|}
896 \hline
897
898 re
899 &
900 Revised, revisited, based on ‘re’ module.
901 \\
902 \hline
903
904 Structured
905 &
906 Structure-enhanced text, structuredtext.
907 \\
908 \hline
909
910 Text
911 &
912 Well it is, isn’t it?
913 \\
914 \hline
915 \end{longtable*}
916
917 This paragraph is also part of the legend.
918 \end{DUlegend}
919 \end{figure}
920 \end{DUclass}
921 \end{DUclass}
922
923 A left-aligned figure, 70\% wide:
924
925 \begin{DUclass}{figclass1}
926 \begin{DUclass}{figclass2}
927 \begin{figure} % align = "left"
928 \noindent\makebox[\linewidth][c]{\includegraphics[width=40\pdfpxdimen]{../../../docs/user/rst/images/biohazard.png}}
929 \caption{\label{caption-label}\DUrole{captionclass1}{\DUrole{captionclass2}{This is the caption.}}}
930 \begin{DUlegend}
931 This is the legend.
932
933 The legend may consist of several paragraphs.
934 \end{DUlegend}
935 \end{figure}
936 \end{DUclass}
937 \end{DUclass}
938
939 This paragraph might flow around the figure.
940
941 The specific behavior depends upon the style sheet and the browser or
942 rendering software used.
943
944 A centred figure, 40\% wide:
945
946 \begin{figure}
947 \noindent\makebox[\linewidth][c]{\includegraphics[width=40\pdfpxdimen]{../../../docs/user/rst/images/biohazard.png}}
948 \caption{This is the caption.}
949 \begin{DUlegend}
950 This is the legend.
951
952 The legend may consist of several paragraphs.
953 \end{DUlegend}
954 \end{figure}
955
956 This paragraph might flow around the figure.
957
958 The specific behavior depends upon the style sheet and the browser or
959 rendering software used.
960
961 A right-aligned figure:
962
963 \begin{figure} % align = "right"
964 \noindent\makebox[\linewidth][c]{\includegraphics[width=40\pdfpxdimen]{../../../docs/user/rst/images/biohazard.png}}
965 \caption{This is the caption.}
966 \begin{DUlegend}
967 This is the legend.
968
969 The legend may consist of several paragraphs.
970 \end{DUlegend}
971 \end{figure}
972
973 This paragraph might flow around the figure. The specific behavior depends
974 upon the style sheet and the browser or rendering software used.
975
976
977 \subsubsection{2.14.3   Tables%
978 \label{tables}%
979 }
980
981 Tables may be given titles and additional arguments with the \emph{table}
982 directive:
983
984 \setlength{\DUtablewidth}{\linewidth}%
985 \begin{longtable}[l]{|p{0.075\DUtablewidth}|p{0.075\DUtablewidth}|}
986 \caption{left-aligned table}\\
987 \hline
988 \textbf{%
989 A
990 } & \textbf{%
991 not A
992 } \\
993 \hline
994 \endfirsthead
995 \caption[]{left-aligned table (... continued)}\\
996 \hline
997 \textbf{%
998 A
999 } & \textbf{%
1000 not A
1001 } \\
1002 \hline
1003 \endhead
1004 \multicolumn{2}{p{0.15\DUtablewidth}}{\raggedleft\ldots continued on next page}\\
1005 \endfoot
1006 \endlastfoot
1007
1008 False
1009 &
1010 True
1011 \\
1012 \hline
1013
1014 True
1015 &
1016 False
1017 \\
1018 \hline
1019 \end{longtable}
1020
1021 \setlength{\DUtablewidth}{\linewidth}%
1022 \begin{longtable}[c]{|p{0.075\DUtablewidth}|p{0.075\DUtablewidth}|}
1023 \caption{center-aligned table}\\
1024 \hline
1025 \textbf{%
1026 A
1027 } & \textbf{%
1028 not A
1029 } \\
1030 \hline
1031 \endfirsthead
1032 \caption[]{center-aligned table (... continued)}\\
1033 \hline
1034 \textbf{%
1035 A
1036 } & \textbf{%
1037 not A
1038 } \\
1039 \hline
1040 \endhead
1041 \multicolumn{2}{p{0.15\DUtablewidth}}{\raggedleft\ldots continued on next page}\\
1042 \endfoot
1043 \endlastfoot
1044
1045 False
1046 &
1047 True
1048 \\
1049 \hline
1050
1051 True
1052 &
1053 False
1054 \\
1055 \hline
1056 \end{longtable}
1057
1058 \setlength{\DUtablewidth}{\linewidth}%
1059 \begin{longtable}[r]{|p{0.075\DUtablewidth}|p{0.075\DUtablewidth}|}
1060 \caption{right-aligned table}\\
1061 \hline
1062 \textbf{%
1063 A
1064 } & \textbf{%
1065 not A
1066 } \\
1067 \hline
1068 \endfirsthead
1069 \caption[]{right-aligned table (... continued)}\\
1070 \hline
1071 \textbf{%
1072 A
1073 } & \textbf{%
1074 not A
1075 } \\
1076 \hline
1077 \endhead
1078 \multicolumn{2}{p{0.15\DUtablewidth}}{\raggedleft\ldots continued on next page}\\
1079 \endfoot
1080 \endlastfoot
1081
1082 False
1083 &
1084 True
1085 \\
1086 \hline
1087
1088 True
1089 &
1090 False
1091 \\
1092 \hline
1093 \end{longtable}
1094
1095 With the “widths” argument “auto” (or “class” value “colwidths-auto”),
1096 column widths are determined by the backend (if supported by the
1097 writer/backend).
1098
1099 \phantomsection\label{target2}\label{target1}
1100 \begin{longtable*}{|l|l|l|}
1101 \hline
1102 \textbf{A} & \textbf{B} & \textbf{A or B} \\
1103 \hline
1104 \endfirsthead
1105 \hline
1106 \textbf{A} & \textbf{B} & \textbf{A or B} \\
1107 \hline
1108 \endhead
1109 \endfoot
1110 \endlastfoot
1111 False & False & False \\
1112 \hline
1113 True & False & True \\
1114 \hline
1115 False & True & True \\
1116 \hline
1117 True & True & True \\
1118 \hline
1119 \end{longtable*}
1120
1121
1122 \subsubsection{2.14.4   Admonitions%
1123 \label{admonitions}%
1124 }
1125
1126 \begin{DUclass}{attention}
1127 \begin{DUadmonition}
1128 \DUtitle{Attention!}
1129
1130 Directives at large.
1131 \end{DUadmonition}
1132 \end{DUclass}
1133
1134 \begin{DUclass}{caution}
1135 \begin{DUadmonition}
1136 \DUtitle{Caution!}
1137
1138 Don’t take any wooden nickels.
1139 \end{DUadmonition}
1140 \end{DUclass}
1141
1142 \begin{DUclass}{danger}
1143 \begin{DUadmonition}
1144 \DUtitle{!DANGER!}
1145
1146 Mad scientist at work!
1147 \end{DUadmonition}
1148 \end{DUclass}
1149
1150 \begin{DUclass}{error}
1151 \begin{DUadmonition}
1152 \DUtitle{Error}
1153
1154 Does not compute.
1155 \end{DUadmonition}
1156 \end{DUclass}
1157
1158 \begin{DUclass}{hint}
1159 \begin{DUadmonition}
1160 \DUtitle{Hint}
1161
1162 It’s bigger than a bread box.
1163 \end{DUadmonition}
1164 \end{DUclass}
1165
1166 \begin{DUclass}{important}
1167 \begin{DUadmonition}
1168 \DUtitle{Important}
1169
1170 \begin{itemize}
1171 \item Wash behind your ears.
1172
1173 \item Clean up your room.
1174
1175 \item Call your mother.
1176
1177 \item Back up your data.
1178 \end{itemize}
1179 \end{DUadmonition}
1180 \end{DUclass}
1181
1182 \begin{DUclass}{note}
1183 \begin{DUadmonition}
1184 \DUtitle{Note}
1185
1186 This is a note.
1187 \end{DUadmonition}
1188 \end{DUclass}
1189
1190 \begin{DUclass}{tip}
1191 \begin{DUadmonition}
1192 \DUtitle{Tip}
1193
1194 15\% if the service is good.
1195 \end{DUadmonition}
1196 \end{DUclass}
1197
1198 \begin{DUclass}{warning}
1199 \begin{DUadmonition}
1200 \DUtitle{Warning}
1201
1202 Strong prose may provoke extreme mental exertion.
1203 Reader discretion is strongly advised.
1204 \end{DUadmonition}
1205 \end{DUclass}
1206
1207 \begin{DUclass}{admonition-and-by-the-way}
1208 \begin{DUadmonition}
1209 \DUtitle{And, by the way…}
1210
1211 You can make up your own admonition too.
1212 \end{DUadmonition}
1213 \end{DUclass}
1214
1215
1216 \subsubsection{2.14.5   Topics, Sidebars, and Rubrics%
1217 \label{topics-sidebars-and-rubrics}%
1218 }
1219
1220 \emph{Sidebars} are like miniature, parallel documents.
1221
1222 \DUsidebar{
1223 \DUtitle{Optional Sidebar Title}
1224
1225 \DUsubtitle{Optional Subtitle}
1226
1227 This is a sidebar. It is for text outside the flow of the main
1228 text.
1229
1230 \DUrubric{This is a rubric inside a sidebar}
1231
1232 Sidebars often appear beside the main text with a border and a different
1233 background or font color.
1234 }
1235
1236 A \emph{topic} is like a block quote with a title, or a self-contained section
1237 with no subsections.
1238
1239 \begin{DUclass}{topic}
1240 \begin{quote}
1241 \DUtitle{Topic Title}
1242
1243 This is a topic.
1244 \end{quote}
1245 \end{DUclass}
1246
1247 A \emph{rubric} is like an informal heading that doesn’t correspond to the
1248 document’s structure. It is typically highlighted in red (hence the name).
1249
1250 \DUrubric{This is a rubric}
1251
1252 Topics and rubrics can be used at places where a \hyperref[section-title]{section title} is not
1253 allowed (e.g. inside a directive).
1254
1255
1256 \subsubsection{2.14.6   Target Footnotes%
1257 \label{target-footnotes}%
1258 }
1259 %
1260 \DUfootnotetext{footnote-6}{footnote-reference-10}{5}{%
1261 \url{http://www.python.org/}
1262 }
1263 %
1264 \DUfootnotetext{footnote-7}{footnote-reference-13}{6}{%
1265 \url{http://pygments.org/}
1266 }
1267 %
1268 \DUfootnotetext{footnote-8}{footnote-reference-14}{7}{%
1269 \url{ftp://ftp.ams.org/ams/doc/amsmath/short-math-guide.pdf}
1270 }
1271 %
1272 \DUfootnotetext{footnote-9}{footnote-reference-16}{8}{%
1273 \url{http://ctan.org/pkg/polyglossia}
1274 }
1275 %
1276 \DUfootnotetext{footnote-10}{footnote-reference-18}{9}{%
1277 \url{https://docutils.sourceforge.io/}
1278 }
1279 %
1280 \DUfootnotetext{footnote-11}{footnote-reference-19}{10}{%
1281 \url{https://docutils.sourceforge.io/docs/ref/rst/directives.html}
1282 }
1283 %
1284 \DUfootnotetext{footnote-12}{footnote-reference-20}{11}{%
1285 \url{https://docutils.sourceforge.io/docs/ref/rst/directives.html\#metadata}
1286 }
1287
1288
1289 \subsubsection{2.14.7   Replacement Text%
1290 \label{replacement-text}%
1291 }
1292
1293 I recommend you try \href{http://www.python.org/}{Python, \emph{the} best language around}\DUfootnotemark{footnote-reference-12}{footnote-6}{5}.
1294
1295
1296 \subsubsection{2.14.8   Compound Paragraph%
1297 \label{compound-paragraph}%
1298 }
1299
1300 The \emph{compound} directive is used to create a “compound paragraph”, which
1301 is a single logical paragraph containing multiple physical body
1302 elements. For example:
1303
1304 \begin{DUclass}{compound}
1305 The ‘rm’ command is very dangerous. If you are logged
1306 in as root and enter
1307 \begin{quote}
1308 \begin{alltt}
1309 cd /
1310 rm -rf *
1311 \end{alltt}
1312 \end{quote}
1313 you will erase the entire contents of your file system.
1314 \end{DUclass}
1315
1316 Test the handling and display of compound paragraphs:
1317
1318 \begin{DUclass}{compound}
1319 \begin{DUclass}{some-class}
1320 Compound 2, paragraph 1,
1321
1322 compound 2, paragraph 2,
1323 \begin{itemize}
1324 \item list item 1,
1325
1326 \item list item 2,
1327 \end{itemize}
1328 compound 2, paragraph 3.
1329 \end{DUclass}
1330 \end{DUclass}
1331
1332 \begin{DUclass}{compound}
1333 Compound 3, only consisting of one paragraph.
1334 \end{DUclass}
1335
1336 \begin{DUclass}{compound}
1337 \begin{quote}
1338 \begin{alltt}
1339 Compound 4.
1340 This one starts with a literal block.
1341 \end{alltt}
1342 \end{quote}
1343 Compound 4, paragraph following the literal block.
1344 \end{DUclass}
1345
1346 Now something \emph{really} perverted – a nested compound block. This is
1347 just to test that it works at all; the results don’t have to be
1348 meaningful.
1349
1350 \begin{DUclass}{compound}
1351 Compound 5, block 1 (a paragraph).
1352
1353 \begin{DUclass}{compound}
1354 Compound 6 is block 2 in compound 5.
1355
1356 Compound 6, another paragraph.
1357 \end{DUclass}
1358
1359 Compound 5, block 3 (a paragraph).
1360 \end{DUclass}
1361
1362 \begin{DUclass}{compound}
1363 Compound 7, tests the inclusion of various block-level
1364 elements in one logical paragraph. First a table,
1365 \setlength{\DUtablewidth}{\linewidth}%
1366 \begin{longtable*}{|p{0.249\DUtablewidth}|p{0.249\DUtablewidth}|p{0.249\DUtablewidth}|}
1367 \hline
1368
1369 Left cell, first
1370 paragraph.
1371
1372 Left cell, second
1373 paragraph.
1374 &
1375 Middle cell,
1376 consisting of
1377 exactly one
1378 paragraph.
1379 &
1380 Right cell.
1381
1382 Paragraph 2.
1383
1384 Paragraph 3.
1385 \\
1386 \hline
1387 \end{longtable*}
1388 followed by a paragraph. This physical paragraph is
1389 actually a continuation of the paragraph before the table. It is followed
1390 by
1391 \begin{quote}
1392 a quote and
1393 \end{quote}
1394 \begin{enumerate}
1395 \item an enumerated list,
1396 \end{enumerate}
1397 a paragraph,
1398 \begin{DUoptionlist}
1399 \item[--an] option list,
1400 \end{DUoptionlist}
1401 a paragraph,
1402 \begin{DUfieldlist}
1403 \item[{a field:}]
1404 list,
1405 \end{DUfieldlist}
1406 a paragraph,
1407 \begin{description}
1408 \item[{a definition}]
1409 list,
1410 \end{description}
1411 a paragraph, an image:
1412 \includegraphics{../../../docs/user/rst/images/biohazard.png}
1413 a paragraph,
1414 \begin{DUlineblock}{0em}
1415 \item[] a line
1416 \item[] block,
1417 \end{DUlineblock}
1418 a paragraph followed by a comment,
1419 % this is a comment
1420 a paragraph, a
1421 \begin{DUclass}{note}
1422 \begin{DUadmonition}
1423 \DUtitle{Note}
1424
1425 with content
1426 \end{DUadmonition}
1427 \end{DUclass}
1428 and the final paragraph of the compound 7.
1429 \end{DUclass}
1430
1431
1432 \subsubsection{2.14.9   Parsed Literal Blocks%
1433 \label{parsed-literal-blocks}%
1434 }
1435
1436 \begin{quote}
1437 \ttfamily\raggedright
1438 This~is~a~parsed~literal~block.\\
1439 ~~~~This~line~is~indented.~~The~next~line~is~blank.\\
1440 ~\\
1441 Inline~markup~is~supported,~e.g.~\emph{emphasis},~\textbf{strong},~\texttt{literal\\
1442 text},~\textsubscript{sub-}~and~\textsuperscript{super}scripts,\\
1443 inline~formulas:~$A = 2 \pi r^2$,\\
1444 footnotes\DUfootnotemark{footnote-reference-9}{footnote-1}{1},~%
1445 \phantomsection\label{hyperlink-targets}hyperlink~targets,~and~\href{http://www.python.org/}{references}.
1446 \end{quote}
1447
1448
1449 \subsubsection{2.14.10   Code%
1450 \label{code}%
1451 }
1452
1453 Blocks of source code can be set with the \DUroletitlereference{code} directive. If the code
1454 language is specified, the content is parsed and tagged by the \href{http://pygments.org/}{Pygments}\DUfootnotemark{footnote-reference-13}{footnote-7}{6}
1455 syntax highlighter and can be formatted with a style sheet. (Code parsing
1456 is turned off using the \texttt{syntax-highlight} config setting in the test
1457 conversions in order to get identical results with/without installed
1458 Pygments highlighter.)
1459
1460 \begin{DUclass}{code}
1461 \begin{DUclass}{python}
1462 \begin{quote}
1463 \begin{alltt}
1464 print 'This is Python code.'
1465 \end{alltt}
1466 \end{quote}
1467 \end{DUclass}
1468 \end{DUclass}
1469
1470 The \texttt{:number-lines:} option (with optional start value) generates line
1471 numbers:
1472
1473 \begin{DUclass}{code}
1474 \begin{DUclass}{python}
1475 \begin{quote}
1476 \ttfamily\raggedright
1477 \DUrole{ln}{~8~}\#~print~integers~from~0~to~9:\\
1478 \DUrole{ln}{~9~}for~i~in~range(10):\\
1479 \DUrole{ln}{10~}~~~~print~i
1480 \end{quote}
1481 \end{DUclass}
1482 \end{DUclass}
1483
1484 For inline code snippets, there is the \DUroletitlereference{code} role, which can be used
1485 directly (the code will not be parsed/tagged, as the language is not known)
1486 or as base for special code roles, e.g. the LaTeX code in the next
1487 paragraph.
1488
1489 Docutils uses LaTeX syntax for math directives and roles:
1490 \texttt{\DUrole{code}{\DUrole{tex}{\textbackslash{}alpha = f(x)}}} prints $\alpha = f(x)$.
1491
1492 The \texttt{:code:} option of the \DUroletitlereference{include} directive sets the included content
1493 as a code block, here the rst file \texttt{header\_footer.rst} with line numbers:
1494
1495 \begin{DUclass}{code}
1496 \begin{DUclass}{rst}
1497 \begin{quote}
1498 \ttfamily\raggedright
1499 \DUrole{ln}{1~}..~header::~Document~header\\
1500 \DUrole{ln}{2~}..~footer::~Document~footer
1501 \end{quote}
1502 \end{DUclass}
1503 \end{DUclass}
1504
1505
1506 \subsubsection{2.14.11   Meta%
1507 \label{meta}%
1508 }
1509
1510 The \href{https://docutils.sourceforge.io/docs/ref/rst/directives.html\#metadata}{“meta” directive}\DUfootnotemark{footnote-reference-20}{footnote-12}{11} is used to specify metadata to be stored in,
1511 e.g., HTML META tags or ODT file properties.
1512
1513
1514 \subsection{2.15   Substitution Definitions%
1515 \label{substitution-definitions}%
1516 }
1517
1518 An inline image (\includegraphics{../../../docs/user/rst/images/biohazard.png}) example:
1519
1520 A Unicode example:
1521
1522 (Substitution definitions are only visible in the rST source.)
1523
1524
1525 \subsection{2.16   Comments%
1526 \label{comments}%
1527 }
1528
1529 Here’s one:
1530
1531 % Comments begin with two dots and a space. Anything may
1532 % follow, except for the syntax of footnotes, hyperlink
1533 % targets, directives, or substitution definitions.
1534 %
1535 % Double-dashes -- "--" -- must be escaped somehow in HTML output.
1536 %
1537 % Comments may contain non-ASCII characters: ä ö ü æ ø å
1538
1539 (View the HTML/LaTeX/… source to see the comment.)
1540
1541
1542 \subsection{2.17   Raw text%
1543 \label{raw-text}%
1544 }
1545
1546 This does not necessarily look nice, because there may be missing white space.
1547
1548 It’s just there to freeze the behavior.
1549
1550 A test.
1551
1552 Second test.
1553
1554 \DUrole{myclass}{Another test with myclass set.}
1555
1556 This is the \DUrole{myrawroleclass}{fourth test} with myrawroleclass set.
1557
1558 Fifth test in LaTeX.\\Line two.
1559
1560
1561 \subsection{2.18   Container%
1562 \label{container}%
1563 }
1564
1565 \begin{DUclass}{custom}
1566 paragraph 1
1567
1568 paragraph 2
1569 \end{DUclass}
1570
1571 % currently not implemented in LaTeX:
1572 % .. include:: data/header_footer.rst
1573
1574
1575 \subsection{2.19   Colspanning tables%
1576 \label{colspanning-tables}%
1577 }
1578
1579 This table has a cell spanning two columns:
1580
1581 \setlength{\DUtablewidth}{\linewidth}%
1582 \begin{longtable*}{|p{0.075\DUtablewidth}|p{0.075\DUtablewidth}|p{0.086\DUtablewidth}|}
1583 \hline
1584 \multicolumn{2}{|p{0.15\DUtablewidth}|}{\textbf{%
1585 Inputs
1586 }} & \textbf{%
1587 Output
1588 } \\
1589 \hline
1590 \textbf{%
1591 A
1592 } & \textbf{%
1593 B
1594 } & \textbf{%
1595 A or B
1596 } \\
1597 \hline
1598 \endfirsthead
1599 \hline
1600 \multicolumn{2}{|p{0.15\DUtablewidth}|}{\textbf{%
1601 Inputs
1602 }} & \textbf{%
1603 Output
1604 } \\
1605 \hline
1606 \textbf{%
1607 A
1608 } & \textbf{%
1609 B
1610 } & \textbf{%
1611 A or B
1612 } \\
1613 \hline
1614 \endhead
1615 \multicolumn{3}{p{0.24\DUtablewidth}}{\raggedleft\ldots continued on next page}\\
1616 \endfoot
1617 \endlastfoot
1618
1619 False
1620 &
1621 False
1622 &
1623 False
1624 \\
1625 \hline
1626
1627 True
1628 &
1629 False
1630 &
1631 True
1632 \\
1633 \hline
1634
1635 False
1636 &
1637 True
1638 &
1639 True
1640 \\
1641 \hline
1642
1643 True
1644 &
1645 True
1646 &
1647 True
1648 \\
1649 \hline
1650 \end{longtable*}
1651
1652
1653 \subsection{2.20   Rowspanning tables%
1654 \label{rowspanning-tables}%
1655 }
1656
1657 Here’s a table with cells spanning several rows:
1658
1659 \setlength{\DUtablewidth}{\linewidth}%
1660 \begin{longtable*}{|p{0.296\DUtablewidth}|p{0.156\DUtablewidth}|p{0.226\DUtablewidth}|}
1661 \hline
1662 \textbf{%
1663 Header row, column 1
1664 (header rows optional)
1665 } & \textbf{%
1666 Header 2
1667 } & \textbf{%
1668 Header 3
1669 } \\
1670 \hline
1671 \endfirsthead
1672 \hline
1673 \textbf{%
1674 Header row, column 1
1675 (header rows optional)
1676 } & \textbf{%
1677 Header 2
1678 } & \textbf{%
1679 Header 3
1680 } \\
1681 \hline
1682 \endhead
1683 \multicolumn{3}{p{0.68\DUtablewidth}}{\raggedleft\ldots continued on next page}\\
1684 \endfoot
1685 \endlastfoot
1686
1687 body row 1, column 1
1688 &
1689 column 2
1690 &
1691 column 3
1692 \\
1693 \hline
1694
1695 body row 2
1696 & \multirow{2}{0.16\DUtablewidth}{%
1697 Cells may
1698 span rows.
1699 } & \multirow{2}{0.23\DUtablewidth}{%
1700 Another
1701 rowspanning
1702 cell.
1703 } \\
1704 \cline{1-1}
1705
1706 body row 3
1707 & & \\
1708 \hline
1709 \end{longtable*}
1710
1711
1712 \subsection{2.21   List Tables%
1713 \label{list-tables}%
1714 }
1715
1716 Here’s a list table exercising all features:
1717
1718 \begin{DUclass}{test}
1719 \setlength{\DUtablewidth}{0.95\linewidth}%
1720 \begin{longtable}{|p{0.133\DUtablewidth}|p{0.110\DUtablewidth}|p{0.249\DUtablewidth}|}
1721 \caption{list table with integral header}\\
1722 \hline
1723 \textbf{%
1724 Treat
1725 } & \textbf{%
1726 Quantity
1727 } & \textbf{%
1728 Description
1729 } \\
1730 \hline
1731 \endfirsthead
1732 \caption[]{list table with integral header (... continued)}\\
1733 \hline
1734 \textbf{%
1735 Treat
1736 } & \textbf{%
1737 Quantity
1738 } & \textbf{%
1739 Description
1740 } \\
1741 \hline
1742 \endhead
1743 \multicolumn{3}{p{0.49\DUtablewidth}}{\raggedleft\ldots continued on next page}\\
1744 \endfoot
1745 \endlastfoot
1746 \textbf{%
1747 Albatross
1748 } &
1749 2.99
1750 &
1751 On a stick!
1752 \\
1753 \hline
1754 \textbf{%
1755 Crunchy Frog
1756 } &
1757 1.49
1758 &
1759 If we took the bones out, it wouldn’t be
1760 crunchy, now would it?
1761 \\
1762 \hline
1763 \textbf{%
1764 Gannet Ripple
1765 } &
1766 1.99
1767 &
1768 On a stick!
1769 \\
1770 \hline
1771 \end{longtable}
1772 \end{DUclass}
1773
1774 \begin{longtable}[c]{|l|l|}
1775 \caption{center aligned list table}\\
1776 \hline
1777 Albatross & 2.99 \\
1778 \hline
1779 Crunchy Frog & 1.49 \\
1780 \hline
1781 Gannet Ripple & 1.99 \\
1782 \hline
1783 \end{longtable}
1784
1785
1786 \subsection{2.22   Custom Roles%
1787 \label{custom-roles}%
1788 }
1789
1790 \begin{itemize}
1791 \item A role based on an existing role.
1792
1793 \texttt{\DUrole{custom}{one}} \texttt{\DUrole{custom}{two}} \texttt{\DUrole{custom}{three}}
1794
1795 \item A new role.
1796
1797 \DUrole{customnew}{one two three}
1798
1799 \item A role with class attribute.
1800
1801 \DUrole{special}{interpreted text}
1802
1803 \item A language-switching role:
1804
1805 Let’s count in German \foreignlanguage{german}{eins zwei drei}.
1806
1807 \item A role with multiple class attributes, styled with raw directives:
1808
1809 \newcommand{\DUrolegreen}[1]{\textcolor{green}{#1}}
1810 \newcommand{\DUrolesc}[1]{\textsc{#1}}
1811
1812 The following works in most browsers but does not validate
1813 (\texttt{<style>} is only allowed in the document head):
1814
1815 \begin{quote}
1816 \begin{alltt}
1817 .. raw:: html
1818
1819 <style type="text/css"><!--
1820 .green \{color: green;\}
1821 .sc \{font-variant: small-caps;\}
1822 --></style>
1823 \end{alltt}
1824 \end{quote}
1825
1826 \DUrole{green}{\DUrole{sc}{\foreignlanguage{english}{British colourful text in small-caps}}}.
1827 \end{itemize}
1828
1829
1830 \subsection{2.23   Mathematics%
1831 \label{mathematics}%
1832 }
1833
1834 Docutils supports inline math with the prefix or postfix \texttt{:math:}
1835 role specificator, $n! + \sin(x_n^2)$ and $A_\text{c} =
1836 \frac{\pi}{4} d^2$, as well as displayed math via the
1837 \DUroletitlereference{math} directive:
1838 %
1839 \begin{equation*}
1840 f(\epsilon) = \frac{1}{1 + \exp\left(\frac{\varepsilon}{k_\text{B}T}\right)}
1841 \end{equation*}
1842 Content may start on the first line of the directive, e.g.
1843 %
1844 \begin{equation*}
1845 N = \frac{\text{number of apples}}{7}
1846 \end{equation*}
1847 Equations can be labeled with a reference name using the \texttt{:name:} option.
1848 See \hyperref[eq-m]{eq:M} and \hyperref[eq-schrodinger]{eq:schrödinger} below.
1849
1850 The determinant of the matrix
1851 %
1852 \phantomsection
1853 \begin{equation*}
1854 \mathbf{M} = \left(\begin{matrix}a&b\\c&d\end{matrix}\right)
1855 \label{eq-m}
1856 \end{equation*}
1857 is $|\mathbf{M}| = ad - bc$.
1858
1859 More than one display math block can be put in one math directive.
1860 For example, the following sum and integral with limits:
1861 %
1862 \begin{equation*}
1863 \int_0^1 x^n dx = \frac{1}{n + 1}
1864 \end{equation*}%
1865 \begin{equation*}
1866 \sum_{n=1}^m n = \frac{m(m+1)}{2}
1867 \end{equation*}
1868 LaTeX-supported Unicode math symbols can be used in math roles and
1869 directives:
1870
1871 The Schrödinger equation
1872 %
1873 \phantomsection
1874 \begin{equation*}
1875 i\hbar \frac{\partial }{\partial t}\Psi = \hat{H}\Psi ,
1876 \label{eq-schrodinger}
1877 \end{equation*}
1878 with the \emph{wave function} $\Psi $, describes how the quantum state of a
1879 physical system changes in time.
1880
1881 \begin{description}
1882 \item[{Math-Accents:}] \leavevmode
1883 \setlength{\DUtablewidth}{1\linewidth}%
1884 \begin{longtable*}{p{0.315\DUtablewidth}p{0.315\DUtablewidth}p{0.315\DUtablewidth}}
1885
1886 $\acute{a}$ \texttt{\textbackslash{}acute\{a\}}
1887 &
1888 $\dot{t}$ \texttt{\textbackslash{}dot\{t\}}
1889 &
1890 $\hat{\gamma}$ \texttt{\textbackslash{}hat\{\textbackslash{}gamma\}}
1891 \\
1892
1893 $\grave{a}$ \texttt{\textbackslash{}grave\{a\}}
1894 &
1895 $\ddot{t}$ \texttt{\textbackslash{}ddot\{t\}}
1896 &
1897 $\tilde{\alpha}$ \texttt{\textbackslash{}tilde\{\textbackslash{}alpha\}}
1898 \\
1899
1900 $\breve{x}$ \texttt{\textbackslash{}breve\{x\}}
1901 &
1902 $\dddot{t}$ \texttt{\textbackslash{}dddot\{t\}}
1903 &
1904 $\vec{\imath}$ \texttt{\textbackslash{}vec\{\textbackslash{}imath\}}
1905 \\
1906
1907 $\check{a}$ \texttt{\textbackslash{}check\{a\}}
1908 &
1909 $\bar{a}$ \texttt{\textbackslash{}bar\{a\}}
1910 &
1911 $\vec{R}$ \texttt{\textbackslash{}vec\{R\}}
1912 \\
1913 \end{longtable*}
1914 \end{description}
1915
1916 % \widetilde{xxx}
1917 % \widehat{xxx}
1918
1919 Modulation Transfer Function:
1920 %
1921 \begin{equation*}
1922 \text{MTF} = \left|\frac{\mathcal{F}\{s(x)\}}
1923 {\mathcal{F}\{ s(x)\} |_{\omega _{x}=0}}\right|
1924 = \mathrm{abs}\left(\frac
1925 {\int _{-\infty }^{\infty }s(x) \mathrm{e}^{\mathrm{i}\omega _{x}x}\mathrm{d}{x}}
1926 {\int _{-\infty }^{\infty }s(x)\mathrm{d}{x}}
1927 \right).
1928 \end{equation*}
1929 Math split over two lines: If a double backslash is detected outside a
1930 \texttt{\textbackslash{}begin\{...\} \textbackslash{}end\{...\}} pair, the math code is wrapped in an \href{ftp://ftp.ams.org/ams/doc/amsmath/short-math-guide.pdf}{AMSmath}\DUfootnotemark{footnote-reference-14}{footnote-8}{7}
1931 \texttt{align} environment:
1932 %
1933 \begin{align*}
1934 s_{\mathrm{out}}(x) & = s_{\mathrm{in}}(x') * s_\delta (x-x') \\
1935 & = \int s_{\mathrm{in}}(x')s_\delta (x-x')\mathrm{d}x'
1936 \end{align*}
1937 Cases with the \href{ftp://ftp.ams.org/ams/doc/amsmath/short-math-guide.pdf}{AMSmath}\DUfootnotemark{footnote-reference-15}{footnote-8}{7} \texttt{cases} environment:
1938 %
1939 \begin{equation*}
1940 \mathrm{sgn}(x) = \begin{cases}
1941 -1 & x<0\\
1942 \phantom{-} 1 & x>0
1943 \end{cases}
1944 \end{equation*}
1945
1946 \section{3   Tests for the LaTeX writer%
1947 \label{tests-for-the-latex-writer}%
1948 }
1949
1950 Test syntax elements which may cause trouble for the LaTeX writer but might
1951 not need to be tested with other writers. See also the
1952 “latex\_cornercases” test.
1953
1954
1955 \subsection{3.1   Custom Roles in LaTeX%
1956 \label{custom-roles-in-latex}%
1957 }
1958
1959 \begin{itemize}
1960 \item Role names and class arguments are converted to conform to the
1961 regular expression \texttt{{[}a-z{]}{[}-a-z0-9{]}*} (letters are downcased,
1962 accents and similar decoration is stripped, non-conforming
1963 characters are replaced by a hyphen).
1964
1965 Class arguments may contain numbers and hyphens, which need special
1966 treatment in LaTeX command names.
1967
1968 \DUrole{large}{\DUrole{custom4}{\DUrole{small-caps}{\DUrole{custom-role}{\DUrole{custom-role}{Text with role “custom4”}}}}} (but without styling by \texttt{DUrole*}
1969 macros).
1970
1971 \item With LaTeX, roles can be styled within the document using the \DUroletitlereference{raw}
1972 directive.
1973
1974 \newcommand{\DUrolelarge}[1]{{\large #1}}
1975 \makeatletter
1976 \@namedef{DUrolesmall-caps}{\textsc}
1977 \@namedef{DUrolecustom4}{\textbf}
1978 \makeatother
1979
1980 \DUrole{large}{\DUrole{custom4}{\DUrole{small-caps}{\DUrole{custom-role}{\DUrole{custom-role}{inline text}}}}} in large, bold, small-caps.
1981
1982 \item Custom roles can be based on standard roles:
1983
1984 This is a \emph{\DUrole{custom-emphasis}{customized emphasis text role}}
1985
1986 This is a \texttt{\DUrole{custom-literal}{customized literal text role}}
1987
1988 This is a \textbf{\DUrole{custom-strong}{customized strong text role}}
1989
1990 This is a \textsubscript{\DUrole{custom-subscript}{customized subscript text role}}
1991
1992 This is a \textsuperscript{\DUrole{custom-superscript}{customized superscript text role}}
1993
1994 This is a \DUroletitlereference{\DUrole{custom-title-reference}{customized title-reference text role}}
1995 \end{itemize}
1996
1997
1998 \subsection{3.2   class handling%
1999 \label{class-handling}%
2000 }
2001
2002 This section tests class handling for block level elements by the LaTeX
2003 writer. See the input file \texttt{classes\_latex.rst} for the raw LaTeX code used
2004 to style the examples.
2005
2006 An “epigraph” directive is exported as “quote” wrapped in a “DUclass”
2007 environment. Here, it is styled by a “DUCLASSepigraph” environment
2008 redefining the “quote” environment as “minipage”:
2009
2010 \newcommand*{\DUCLASSepigraph}{%
2011 \renewenvironment{quote}{\vspace{1em}
2012 \footnotesize\hfill{}%
2013 \begin{minipage}{0.4\columnwidth}}%
2014 {\end{minipage}\vskip\baselineskip}}
2015
2016 \begin{DUclass}{epigraph}
2017 \begin{quote}
2018 Do not play this piece fast. It is never right to play \emph{Ragtime} fast.
2019 \nopagebreak
2020
2021 \raggedleft —Scott Joplin
2022 \end{quote}
2023 \end{DUclass}
2024
2025 Raw latex is also used to style the following lists: “DUCLASSenumerateitems”
2026 redefines “itemize” as “enumerate”, “DUCLASSrules” draws horizontal lines
2027 above and below.
2028
2029 \newcommand*{\DUCLASSenumerateitems}{%
2030 \renewenvironment{itemize}{\begin{enumerate}}%
2031 {\end{enumerate}}%
2032 }
2033
2034 \newenvironment{DUCLASSrules}%
2035 {\noindent\rule[0.5ex]{1\columnwidth}{1pt}}%
2036 {\noindent\rule[0.5ex]{1\columnwidth}{1pt}}
2037
2038 An “enumerated” bullet list:
2039
2040 \begin{DUclass}{enumerateitems}
2041 \begin{itemize}
2042 \item item
2043
2044 \item next item
2045
2046 \item third item
2047 \end{itemize}
2048 \end{DUclass}
2049
2050 A list with lines above and below:
2051
2052 \begin{DUclass}{rules}
2053 \begin{itemize}
2054 \item item
2055
2056 \item next item
2057 \end{itemize}
2058 \end{DUclass}
2059
2060 A normal bullet list is kept unchanged by the above redefinitions:
2061
2062 \begin{itemize}
2063 \item item
2064
2065 \item next item
2066
2067 \item third item
2068 \end{itemize}
2069
2070 A container wraps several elements in a common “class wrapper”. Here, we use
2071 it to set 2 paragraphs and a list in small caps:
2072
2073 \newcommand*{\DUCLASSscshape}{\scshape}
2074
2075 \begin{DUclass}{scshape}
2076 paragraph 1
2077
2078 paragraph 2
2079
2080 \begin{itemize}
2081 \item bullet list
2082
2083 \item still bullet list
2084 \end{itemize}
2085 \end{DUclass}
2086
2087 A right-aligned line-block. Alignment handling is built into the latex
2088 writer for image, table, and line block elements.
2089
2090 \begin{DUlineblock}{0em}
2091 \raggedleft
2092 \item[] Max Mustermann
2093 \item[] Waldstr. 22
2094 \item[] D 01234 Testdorf
2095 \item[] Tel.: 0123/456789
2096 \end{DUlineblock}
2097
2098 %
2099
2100
2101 \section{4   Tests for the XeTeX writer%
2102 \label{tests-for-the-xetex-writer}%
2103 }
2104
2105 With XeTeX, you can typeset text in any language/script supported by
2106 Unicode and the selected font, e.g. Azərbaycanca, Bân-lâm-gú, Башҡорт
2107 Беларуская, Български, Català, Чӑвашла, Česky, Ελληνικά, Español,
2108 Français, Føroyskt, Хальмг, Íslenska, עברית , Қазақша, Kurdî,
2109 Latviešu, Lietuvių, Македонски, Монгол, Nāhuatl, Português, Română,
2110 Русский, Slovenščina, Српски, Türkçe, Українська, Tiếng Việt, Volapük,
2111 Võro, ייִדיש , Žemaitėška.
2112 There is extended support for more than 40 languages in the
2113 \href{http://ctan.org/pkg/polyglossia}{polyglossia}\DUfootnotemark{footnote-reference-16}{footnote-9}{8} package.
2114
2115 % preface for System Messages:
2116
2117
2118 \section{5   Error Handling%
2119 \label{error-handling}%
2120 }
2121
2122 Any errors caught during processing will generate system messages.
2123
2124 There should be five messages in the following, auto-generated
2125 section, “Docutils System Messages”:
2126
2127 % section should be added by Docutils automatically
2128
2129
2130 \section[Docutils System Messages]{\color{red}Docutils System Messages}
2131
2132 \raisebox{1em}{\hypertarget{system-message-1}{}}
2133 \begin{DUclass}{system-message}
2134 \begin{DUadmonition}
2135 \DUtitle{\color{red}System Message}
2136
2137 ERROR/3 in \texttt{functional/input/data/standard.rst}, line~99
2138
2139 \hyperlink{problematic-1}{
2140 Undefined substitution referenced: \textquotedbl{}problematic\textquotedbl{}.
2141 }
2142 \end{DUadmonition}
2143 \end{DUclass}
2144
2145 \raisebox{1em}{\hypertarget{system-message-2}{}}
2146 \begin{DUclass}{system-message}
2147 \begin{DUadmonition}
2148 \DUtitle{\color{red}System Message}
2149
2150 ERROR/3 in \texttt{functional/input/data/standard.rst}, line~390
2151
2152 \hyperlink{footnote-reference-8}{
2153 Unknown target name: \textquotedbl{}5\textquotedbl{}.
2154 }
2155 \end{DUadmonition}
2156 \end{DUclass}
2157
2158 \raisebox{1em}{\hypertarget{system-message-3}{}}
2159 \begin{DUclass}{system-message}
2160 \begin{DUadmonition}
2161 \DUtitle{\color{red}System Message}
2162
2163 ERROR/3 in \texttt{functional/input/data/standard.rst}, line~399
2164
2165 \hyperlink{citation-reference-3}{
2166 Unknown target name: \textquotedbl{}nonexistent\textquotedbl{}.
2167 }
2168 \end{DUadmonition}
2169 \end{DUclass}
2170
2171 \raisebox{1em}{\hypertarget{system-message-4}{}}
2172 \begin{DUclass}{system-message}
2173 \begin{DUadmonition}
2174 \DUtitle{\color{red}System Message}
2175
2176 ERROR/3 in \texttt{functional/input/data/standard.rst}, line~426
2177
2178 \hyperlink{problematic-2}{
2179 Unknown target name: \textquotedbl{}hyperlink reference without a target\textquotedbl{}.
2180 }
2181 \end{DUadmonition}
2182 \end{DUclass}
2183
2184 \raisebox{1em}{\hypertarget{system-message-5}{}}
2185 \begin{DUclass}{system-message}
2186 \begin{DUadmonition}
2187 \DUtitle{\color{red}System Message}
2188
2189 ERROR/3 in \texttt{functional/input/data/standard.rst}, line~439
2190
2191 \hyperlink{problematic-3}{
2192 Duplicate target name, cannot be used as a unique reference: \textquotedbl{}duplicate target names\textquotedbl{}.
2193 }
2194 \end{DUadmonition}
2195 \end{DUclass}
2196
2197 \end{document}