A new Riff-radio.org site with a static approach.

quickref.html 54KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1">
  6. <title>A reStructuredText Reference | Riff</title>
  7. <link href="../assets/css/all-nocdn.css" rel="stylesheet" type="text/css">
  8. <link rel="alternate" type="application/rss+xml" title="RSS" href="../rss.xml">
  9. <link rel="canonical" href="http://media.pagelibre.org/riff/site/pages/quickref.html">
  10. <link rel="icon" href="../favicon.ico" sizes="16x16">
  11. <!--[if lt IE 9]><script src="../assets/js/html5.js"></script><![endif]--><meta name="author" content="docutils contributors">
  12. <meta property="og:site_name" content="Riff">
  13. <meta property="og:title" content="A reStructuredText Reference">
  14. <meta property="og:url" content="http://media.pagelibre.org/riff/site/pages/quickref.html">
  15. <meta property="og:description" content="Contents
  16. Inline Markup
  17. Escaping with Backslashes
  18. Section Structure
  19. Paragraphs
  20. Bullet Lists
  21. Enumerated Lists
  22. Definition Lists
  23. Field Lists
  24. Option Lists
  25. Lite">
  26. <meta property="og:type" content="article">
  27. <meta property="article:published_time" content="2012-03-30T23:00:00-03:00">
  28. </head>
  29. <body>
  30. <a href="#content" class="sr-only sr-only-focusable">Skip to main content</a>
  31. <!-- Menubar -->
  32. <div class="blog-masthead">
  33. <div class="container">
  34. <!-- This keeps the margins nice -->
  35. <nav class="blog-nav" role="navigation"><a href="../index.html" class="blog-nav-item">Accueil</a>
  36. <a href="about.html" class="blog-nav-item">About Riff</a>
  37. <a href="../rss.xml" class="blog-nav-item">RSS feed</a>
  38. </nav>
  39. </div>
  40. <!-- /.container -->
  41. </div>
  42. <!-- End of Menubar -->
  43. <div class="container" id="content" role="main">
  44. <div class="body-content">
  45. <div class="blog-header">
  46. <h1 class="blog-title">
  47. <a href="http://media.pagelibre.org/riff/site/">
  48. <span id="blog-title">Riff</span>
  49. </a>
  50. </h1>
  51. <p class="lead blog-description">Riff la radio rock</p>
  52. </div>
  53. <!--Body content-->
  54. <div class="row">
  55. <div class="col-sm-8 blog-main">
  56. <article class="post-text storypage" itemscope="itemscope" itemtype="http://schema.org/Article"><header><h2 class="p-name entry-title blog-post-title" itemprop="headline name"><a href="#" class="u-url">A reStructuredText Reference</a></h2>
  57. </header><div class="e-content entry-content" itemprop="articleBody text">
  58. <div class="alert alert-primary float-md-right" style="margin-left: 2em;">
  59. <h3><a name="contents">Contents</a></h3>
  60. <ul>
  61. <li><a href="quickref.html#inline-markup">Inline Markup</a></li>
  62. <li><a href="quickref.html#escaping">Escaping with Backslashes</a></li>
  63. <li><a href="quickref.html#section-structure">Section Structure</a></li>
  64. <li><a href="quickref.html#paragraphs">Paragraphs</a></li>
  65. <li><a href="quickref.html#bullet-lists">Bullet Lists</a></li>
  66. <li><a href="quickref.html#enumerated-lists">Enumerated Lists</a></li>
  67. <li><a href="quickref.html#definition-lists">Definition Lists</a></li>
  68. <li><a href="quickref.html#field-lists">Field Lists</a></li>
  69. <li><a href="quickref.html#option-lists">Option Lists</a></li>
  70. <li><a href="quickref.html#literal-blocks">Literal Blocks</a></li>
  71. <li><a href="quickref.html#line-blocks">Line Blocks</a></li>
  72. <li><a href="quickref.html#block-quotes">Block Quotes</a></li>
  73. <li><a href="quickref.html#doctest-blocks">Doctest Blocks</a></li>
  74. <li><a href="quickref.html#tables">Tables</a></li>
  75. <li><a href="quickref.html#transitions">Transitions</a></li>
  76. <li>
  77. <a href="quickref.html#explicit-markup">Explicit Markup</a>
  78. <ul>
  79. <li><a href="quickref.html#footnotes">Footnotes</a></li>
  80. <li><a href="quickref.html#citations">Citations</a></li>
  81. <li>
  82. <a href="quickref.html#hyperlink-targets">Hyperlink Targets</a>
  83. <ul>
  84. <li><a href="quickref.html#external-hyperlink-targets">External Hyperlink Targets</a></li>
  85. <li><a href="quickref.html#internal-hyperlink-targets">Internal Hyperlink Targets</a></li>
  86. <li><a href="quickref.html#indirect-hyperlink-targets">Indirect Hyperlink Targets</a></li>
  87. <li><a href="quickref.html#implicit-hyperlink-targets">Implicit Hyperlink Targets</a></li>
  88. </ul>
  89. </li>
  90. <li><a href="quickref.html#directives">Directives</a></li>
  91. <li><a href="quickref.html#substitution-references-and-definitions">Substitution References and Definitions</a></li>
  92. <li><a href="quickref.html#comments">Comments</a></li>
  93. </ul>
  94. </li>
  95. <li><a href="quickref.html#getting-help">Getting Help</a></li>
  96. </ul>
  97. </div>
  98. <h2>Quick <i>re</i><font size="+4"><tt>Structured</tt></font><i>Text</i>
  99. </h2>
  100. <!-- Caveat: if you're reading the HTML for the examples, -->
  101. <!-- beware that it was hand-generated, not by Docutils/ReST. -->
  102. <blockquote>
  103. <p>Copyright: This document has been placed in the public domain.
  104. </p>
  105. </blockquote>
  106. <p>The full details of the markup may be found on the
  107. <a href="https://docutils.sourceforge.io/rst.html">reStructuredText</a>
  108. page. This document is just intended as a reminder.
  109. </p>
  110. <p>Links that look like "(<a href="quickref.html#details">details</a>)" point
  111. into the HTML version of the full <a href="https://docutils.sourceforge.io/docs/ref/rst/restructuredtext.html">reStructuredText
  112. specification</a> document. These are relative links; if they
  113. don't work, please use the <a href="https://docutils.sourceforge.io/docs/user/rst/quickref.html">master "Quick reStructuredText"</a> document.
  114. </p>
  115. <h3><a href="quickref.html#contents" name="inline-markup" class="backref">Inline Markup</a></h3>
  116. <p>(<a href="https://docutils.sourceforge.io/docs/ref/rst/restructuredtext.html#inline-markup">details</a>)
  117. </p>
  118. <p>Inline markup allows words and phrases within text to have
  119. character styles (like italics and boldface) and functionality
  120. (like hyperlinks).
  121. </p>
  122. <p></p>
  123. <table class="table" border="1" bgcolor="#ffffcc" cellpadding="3">
  124. <thead><tr align="left" bgcolor="#99CCFF">
  125. <th>Plain text
  126. </th>
  127. <th>Typical result
  128. </th>
  129. <th>Notes
  130. </th>
  131. </tr></thead>
  132. <tbody>
  133. <tr valign="top">
  134. <td nowrap>
  135. <samp>*emphasis*</samp>
  136. </td>
  137. <td>
  138. <em>emphasis</em>
  139. </td>
  140. <td>Normally rendered as italics.
  141. </td>
  142. </tr>
  143. <tr valign="top">
  144. <td nowrap>
  145. <samp>**strong emphasis**</samp>
  146. </td>
  147. <td>
  148. <strong>strong emphasis</strong>
  149. </td>
  150. <td>Normally rendered as boldface.
  151. </td>
  152. </tr>
  153. <tr valign="top">
  154. <td nowrap>
  155. <samp>`interpreted text`</samp>
  156. </td>
  157. <td>(see note at right)
  158. </td>
  159. <td>The rendering and <em>meaning</em> of interpreted text is
  160. domain- or application-dependent. It can be used for things
  161. like index entries or explicit descriptive markup (like program
  162. identifiers).
  163. </td>
  164. </tr>
  165. <tr valign="top">
  166. <td nowrap>
  167. <samp>``inline literal``</samp>
  168. </td>
  169. <td>
  170. <code>inline literal</code>
  171. </td>
  172. <td>Normally rendered as monospaced text. Spaces should be
  173. preserved, but line breaks will not be.
  174. </td>
  175. </tr>
  176. <tr valign="top">
  177. <td nowrap>
  178. <samp>reference_</samp>
  179. </td>
  180. <td>
  181. <a href="quickref.html#hyperlink-targets">reference</a>
  182. </td>
  183. <td>A simple, one-word hyperlink reference. See <a href="quickref.html#hyperlink-targets">Hyperlink Targets</a>.
  184. </td>
  185. </tr>
  186. <tr valign="top">
  187. <td nowrap>
  188. <samp>`phrase reference`_</samp>
  189. </td>
  190. <td>
  191. <a href="quickref.html#hyperlink-targets">phrase reference</a>
  192. </td>
  193. <td>A hyperlink reference with spaces or punctuation needs to be
  194. quoted with backquotes. See <a href="quickref.html#hyperlink-targets">Hyperlink Targets</a>.
  195. </td>
  196. </tr>
  197. <tr valign="top">
  198. <td nowrap>
  199. <samp>anonymous__</samp>
  200. </td>
  201. <td>
  202. <a href="quickref.html#hyperlink-targets">anonymous</a>
  203. </td>
  204. <td>With two underscores instead of one, both simple and phrase
  205. references may be anonymous (the reference text is not repeated
  206. at the target). See <a href="quickref.html#hyperlink-targets">Hyperlink Targets</a>.
  207. </td>
  208. </tr>
  209. <tr valign="top">
  210. <td nowrap>
  211. <samp>_`inline internal target`</samp>
  212. </td>
  213. <td>
  214. <a name="inline-internal-target">inline internal target</a>
  215. </td>
  216. <td>A crossreference target within text.
  217. See <a href="quickref.html#hyperlink-targets">Hyperlink Targets</a>.
  218. </td>
  219. </tr>
  220. <tr valign="top">
  221. <td nowrap>
  222. <samp>|substitution reference|</samp>
  223. </td>
  224. <td>(see note at right)
  225. </td>
  226. <td>The result is substituted in from the <a href="quickref.html#substitution-references-and-definitions">substitution
  227. definition</a>. It could be text, an image, a hyperlink, or a
  228. combination of these and others.
  229. </td>
  230. </tr>
  231. <tr valign="top">
  232. <td nowrap>
  233. <samp>footnote reference [1]_</samp>
  234. </td>
  235. <td>footnote reference <sup><a href="quickref.html#footnotes">1</a></sup>
  236. </td>
  237. <td>See <a href="quickref.html#footnotes">Footnotes</a>.
  238. </td>
  239. </tr>
  240. <tr valign="top">
  241. <td nowrap>
  242. <samp>citation reference [CIT2002]_</samp>
  243. </td>
  244. <td>citation reference <a href="quickref.html#citations">[CIT2002]</a>
  245. </td>
  246. <td>See <a href="quickref.html#citations">Citations</a>.
  247. </td>
  248. </tr>
  249. <tr valign="top">
  250. <td nowrap>
  251. <samp>https://docutils.sourceforge.io/</samp>
  252. </td>
  253. <td>
  254. <a href="https://docutils.sourceforge.io/">https://docutils.sourceforge.io/</a>
  255. </td>
  256. <td>A standalone hyperlink.
  257. </td>
  258. </tr>
  259. </tbody>
  260. </table>
  261. <p>Asterisk, backquote, vertical bar, and underscore are inline
  262. delimiter characters. Asterisk, backquote, and vertical bar act
  263. like quote marks; matching characters surround the marked-up word
  264. or phrase, whitespace or other quoting is required outside them,
  265. and there can't be whitespace just inside them. If you want to use
  266. inline delimiter characters literally, <a href="quickref.html#escaping">escape
  267. (with backslash)</a> or quote them (with double backquotes; i.e.
  268. use inline literals).
  269. </p>
  270. <p>In detail, the reStructuredText specification says that in
  271. inline markup, the following rules apply to start-strings and
  272. end-strings (inline markup delimiters):
  273. </p>
  274. <ol>
  275. <li>The start-string must start a text block or be
  276. immediately preceded by whitespace or any of 
  277. <samp>' " ( [ {</samp> or <samp>&lt;</samp>.
  278. </li>
  279. <li>The start-string must be immediately followed by non-whitespace.
  280. </li>
  281. <li>The end-string must be immediately preceded by non-whitespace.
  282. </li>
  283. <li>The end-string must end a text block (end of document or
  284. followed by a blank line) or be immediately followed by whitespace
  285. or any of <samp>' " . , : ; ! ? - ) ] } / \</samp>
  286. or <samp>&gt;</samp>.
  287. </li>
  288. <li>If a start-string is immediately preceded by one of 
  289. <samp>' " ( [ {</samp> or <samp>&lt;</samp>, it must not be
  290. immediately followed by the corresponding character from 
  291. <samp>' " ) ] }</samp> or <samp>&gt;</samp>.
  292. </li>
  293. <li>An end-string must be separated by at least one
  294. character from the start-string.
  295. </li>
  296. <li>An <a href="quickref.html#escaping">unescaped</a> backslash preceding a
  297. start-string or end-string will disable markup recognition, except
  298. for the end-string of inline literals.
  299. </li>
  300. </ol>
  301. <p>Also remember that inline markup may not be nested (well,
  302. except that inline literals can contain any of the other inline
  303. markup delimiter characters, but that doesn't count because
  304. nothing is processed).
  305. </p>
  306. <h3><a href="quickref.html#contents" name="escaping" class="backref">Escaping with Backslashes</a></h3>
  307. <p>(<a href="https://docutils.sourceforge.io/docs/ref/rst/restructuredtext.html#escaping-mechanism">details</a>)
  308. </p>
  309. <p>reStructuredText uses backslashes ("\") to override the special
  310. meaning given to markup characters and get the literal characters
  311. themselves. To get a literal backslash, use an escaped backslash
  312. ("\\"). For example:
  313. </p>
  314. <p></p>
  315. <table class="table" border="1" width="100%" bgcolor="#ffffcc" cellpadding="3">
  316. <thead><tr align="left" bgcolor="#99CCFF">
  317. <th width="50%">Raw reStructuredText
  318. </th>
  319. <th width="50%">Typical result
  320. </th>
  321. </tr></thead>
  322. <tbody>
  323. <tr valign="top">
  324. <td>
  325. <samp>*escape* ``with`` "\"</samp>
  326. </td>
  327. <td>
  328. <em>escape</em> <samp>with</samp> ""
  329. </td>
  330. </tr>
  331. <tr valign="top">
  332. <td>
  333. <samp>\*escape* \``with`` "\\"</samp>
  334. </td>
  335. <td>*escape* ``with`` "\"
  336. </td>
  337. </tr>
  338. </tbody>
  339. </table>
  340. <p>In Python strings it will, of course, be necessary
  341. to escape any backslash characters so that they actually
  342. <em>reach</em> reStructuredText.
  343. The simplest way to do this is to use raw strings:
  344. </p>
  345. <p></p>
  346. <table class="table" border="1" width="100%" bgcolor="#ffffcc" cellpadding="3">
  347. <thead><tr align="left" bgcolor="#99CCFF">
  348. <th width="50%">Python string
  349. </th>
  350. <th width="50%">Typical result
  351. </th>
  352. </tr></thead>
  353. <tbody>
  354. <tr valign="top">
  355. <td>
  356. <samp>r"""\*escape* \`with` "\\""""</samp>
  357. </td>
  358. <td>*escape* `with` "\"
  359. </td>
  360. </tr>
  361. <tr valign="top">
  362. <td>
  363. <samp> """\\*escape* \\`with` "\\\\""""</samp>
  364. </td>
  365. <td>*escape* `with` "\"
  366. </td>
  367. </tr>
  368. <tr valign="top">
  369. <td>
  370. <samp> """\*escape* \`with` "\\""""</samp>
  371. </td>
  372. <td>
  373. <em>escape</em> with ""
  374. </td>
  375. </tr>
  376. </tbody>
  377. </table>
  378. <h3><a href="quickref.html#contents" name="section-structure" class="backref">Section Structure</a></h3>
  379. <p>(<a href="https://docutils.sourceforge.io/docs/ref/rst/restructuredtext.html#sections">details</a>)
  380. </p>
  381. <p></p>
  382. <table class="table" border="1" width="100%" bgcolor="#ffffcc" cellpadding="3">
  383. <thead><tr align="left" bgcolor="#99CCFF">
  384. <th width="50%">Plain text
  385. </th>
  386. <th width="50%">Typical result
  387. </th>
  388. </tr></thead>
  389. <tbody><tr valign="top">
  390. <td>
  391. <samp>=====</samp>
  392. <br><samp>Title</samp>
  393. <br><samp>=====</samp>
  394. <br><samp>Subtitle</samp>
  395. <br><samp>--------</samp>
  396. <br><samp>Titles are underlined (or over-</samp>
  397. <br><samp>and underlined) with a printing</samp>
  398. <br><samp>nonalphanumeric 7-bit ASCII</samp>
  399. <br><samp>character. Recommended choices</samp>
  400. <br><samp>are "``= - ` : ' " ~ ^ _ * + # &lt; &gt;``".</samp>
  401. <br><samp>The underline/overline must be at</samp>
  402. <br><samp>least as long as the title text.</samp>
  403. <br><samp></samp>
  404. <br><samp>A lone top-level (sub)section</samp>
  405. <br><samp>is lifted up to be the document's</samp>
  406. <br><samp>(sub)title.</samp>
  407. </td>
  408. <td>
  409. <font size="+2"><strong>Title</strong></font>
  410. <p><font size="+1"><strong>Subtitle</strong></font>
  411. </p>
  412. <p>Titles are underlined (or over-
  413. and underlined) with a printing
  414. nonalphanumeric 7-bit ASCII
  415. character. Recommended choices
  416. are "<samp>= - ` : ' " ~ ^ _ * + # &lt; &gt;</samp>".
  417. The underline/overline must be at
  418. least as long as the title text.
  419. </p>
  420. <p>A lone top-level (sub)section is
  421. lifted up to be the document's
  422. (sub)title.
  423. </p>
  424. </td>
  425. </tr></tbody>
  426. </table>
  427. <h3><a href="quickref.html#contents" name="paragraphs" class="backref">Paragraphs</a></h3>
  428. <p>(<a href="https://docutils.sourceforge.io/docs/ref/rst/restructuredtext.html#paragraphs">details</a>)
  429. </p>
  430. <p></p>
  431. <table class="table" border="1" width="100%" bgcolor="#ffffcc" cellpadding="3">
  432. <thead><tr align="left" bgcolor="#99CCFF">
  433. <th width="50%">Plain text
  434. </th>
  435. <th width="50%">Typical result
  436. </th>
  437. </tr></thead>
  438. <tbody><tr valign="top">
  439. <td>
  440. <p><samp>This is a paragraph.</samp>
  441. </p>
  442. <p><samp>Paragraphs line up at their left</samp>
  443. <br><samp>edges, and are normally separated</samp>
  444. <br><samp>by blank lines.</samp>
  445. </p>
  446. </td>
  447. <td>
  448. <p>This is a paragraph.
  449. </p>
  450. <p>Paragraphs line up at their left edges, and are normally
  451. separated by blank lines.
  452. </p>
  453. </td>
  454. </tr></tbody>
  455. </table>
  456. <h3><a href="quickref.html#contents" name="bullet-lists" class="backref">Bullet Lists</a></h3>
  457. <p>(<a href="https://docutils.sourceforge.io/docs/ref/rst/restructuredtext.html#bullet-lists">details</a>)
  458. </p>
  459. <p></p>
  460. <table class="table" border="1" width="100%" bgcolor="#ffffcc" cellpadding="3">
  461. <thead><tr align="left" bgcolor="#99CCFF">
  462. <th width="50%">Plain text
  463. </th>
  464. <th width="50%">Typical result
  465. </th>
  466. </tr></thead>
  467. <tbody><tr valign="top">
  468. <td>
  469. <samp>Bullet lists:</samp>
  470. <p><samp>- This is item 1</samp>
  471. <br><samp>- This is item 2</samp>
  472. </p>
  473. <p><samp>- Bullets are "-", "*" or "+".</samp>
  474. <br><samp>  Continuing text must be aligned</samp>
  475. <br><samp>  after the bullet and whitespace.</samp>
  476. </p>
  477. <p><samp>Note that a blank line is required</samp>
  478. <br><samp>before the first item and after the</samp>
  479. <br><samp>last, but is optional between items.</samp>
  480. </p>
  481. </td>
  482. <td>Bullet lists:
  483. <ul>
  484. <li>This is item 1
  485. </li>
  486. <li>This is item 2
  487. </li>
  488. <li>Bullets are "-", "*" or "+".
  489. Continuing text must be aligned
  490. after the bullet and whitespace.
  491. </li>
  492. </ul>
  493. <p>Note that a blank line is required before the first
  494. item and after the last, but is optional between items.
  495. </p>
  496. </td>
  497. </tr></tbody>
  498. </table>
  499. <h3><a href="quickref.html#contents" name="enumerated-lists" class="backref">Enumerated Lists</a></h3>
  500. <p>(<a href="https://docutils.sourceforge.io/docs/ref/rst/restructuredtext.html#enumerated-lists">details</a>)
  501. </p>
  502. <p></p>
  503. <table class="table" border="1" width="100%" bgcolor="#ffffcc" cellpadding="3">
  504. <thead><tr align="left" bgcolor="#99CCFF">
  505. <th width="50%">Plain text
  506. </th>
  507. <th width="50%">Typical result
  508. </th>
  509. </tr></thead>
  510. <tbody><tr valign="top">
  511. <td>
  512. <samp>Enumerated lists:</samp>
  513. <p><samp>3. This is the first item</samp>
  514. <br><samp>4. This is the second item</samp>
  515. <br><samp>5. Enumerators are arabic numbers,</samp>
  516. <br><samp>   single letters, or roman numerals</samp>
  517. <br><samp>6. List items should be sequentially</samp>
  518. <br><samp>   numbered, but need not start at 1</samp>
  519. <br><samp>   (although not all formatters will</samp>
  520. <br><samp>   honour the first index).</samp>
  521. <br><samp>#. This item is auto-enumerated</samp>
  522. </p>
  523. </td>
  524. <td>Enumerated lists:
  525. <ol type="1">
  526. <li value="3">This is the first item
  527. </li>
  528. <li>This is the second item
  529. </li>
  530. <li>Enumerators are arabic numbers, single letters,
  531. or roman numerals
  532. </li>
  533. <li>List items should be sequentially numbered,
  534. but need not start at 1 (although not all
  535. formatters will honour the first index).
  536. </li>
  537. <li>This item is auto-enumerated
  538. </li>
  539. </ol>
  540. </td>
  541. </tr></tbody>
  542. </table>
  543. <h3><a href="quickref.html#contents" name="definition-lists" class="backref">Definition Lists</a></h3>
  544. <p>(<a href="https://docutils.sourceforge.io/docs/ref/rst/restructuredtext.html#definition-lists">details</a>)
  545. </p>
  546. <p></p>
  547. <table class="table" border="1" width="100%" bgcolor="#ffffcc" cellpadding="3">
  548. <thead><tr align="left" bgcolor="#99CCFF">
  549. <th width="50%">Plain text
  550. </th>
  551. <th width="50%">Typical result
  552. </th>
  553. </tr></thead>
  554. <tbody><tr valign="top">
  555. <td>
  556. <samp>Definition lists:</samp>
  557. <br><br><samp>what</samp>
  558. <br><samp>  Definition lists associate a term with</samp>
  559. <br><samp>  a definition.</samp>
  560. <br><br><samp>how</samp>
  561. <br><samp>  The term is a one-line phrase, and the</samp>
  562. <br><samp>  definition is one or more paragraphs or</samp>
  563. <br><samp>  body elements, indented relative to the</samp>
  564. <br><samp>  term. Blank lines are not allowed</samp>
  565. <br><samp>  between term and definition.</samp>
  566. </td>
  567. <td>Definition lists:
  568. <dl>
  569. <dt>
  570. <strong>what</strong>
  571. </dt>
  572. <dd>Definition lists associate a term with
  573. a definition.
  574. </dd>
  575. <dt>
  576. <strong>how</strong>
  577. </dt>
  578. <dd>The term is a one-line phrase, and the
  579. definition is one or more paragraphs or
  580. body elements, indented relative to the
  581. term. Blank lines are not allowed
  582. between term and definition.
  583. </dd>
  584. </dl>
  585. </td>
  586. </tr></tbody>
  587. </table>
  588. <h3><a href="quickref.html#contents" name="field-lists" class="backref">Field Lists</a></h3>
  589. <p>(<a href="https://docutils.sourceforge.io/docs/ref/rst/restructuredtext.html#field-lists">details</a>)
  590. </p>
  591. <p></p>
  592. <table class="table" border="1" width="100%" bgcolor="#ffffcc" cellpadding="3">
  593. <thead><tr align="left" bgcolor="#99CCFF">
  594. <th width="50%">Plain text
  595. </th>
  596. <th width="50%">Typical result
  597. </th>
  598. </tr></thead>
  599. <tbody><tr valign="top">
  600. <td>
  601. <samp>:Authors:</samp>
  602. <br><samp>    Tony J. (Tibs) Ibbs,</samp>
  603. <br><samp>    David Goodger</samp>
  604. <p><samp>    (and sundry other good-natured folks)</samp>
  605. </p>
  606. <p><samp>:Version: 1.0 of 2001/08/08</samp>
  607. <br><samp>:Dedication: To my father.</samp>
  608. </p>
  609. </td>
  610. <td>
  611. <table class="table">
  612. <tr valign="top">
  613. <td>
  614. <strong>Authors:</strong>
  615. </td>
  616. <td>Tony J. (Tibs) Ibbs,
  617. David Goodger
  618. </td>
  619. </tr>
  620. <tr>
  621. <td></td>
  622. <td>(and sundry other good-natured folks)
  623. </td>
  624. </tr>
  625. <tr>
  626. <td><strong>Version:</strong></td>
  627. <td>1.0 of 2001/08/08
  628. </td>
  629. </tr>
  630. <tr>
  631. <td><strong>Dedication:</strong></td>
  632. <td>To my father.
  633. </td>
  634. </tr>
  635. </table>
  636. </td>
  637. </tr></tbody>
  638. </table>
  639. <p>Field lists are used as part of an extension syntax, such as
  640. options for <a href="quickref.html#directives">directives</a>, or database-like
  641. records meant for further processing. Field lists may also be
  642. used as generic two-column table constructs in documents.
  643. </p>
  644. <h3><a href="quickref.html#contents" name="option-lists" class="backref">Option Lists</a></h3>
  645. <p>(<a href="https://docutils.sourceforge.io/docs/ref/rst/restructuredtext.html#option-lists">details</a>)
  646. </p>
  647. <p></p>
  648. <table class="table" border="1" width="100%" bgcolor="#ffffcc" cellpadding="3">
  649. <thead><tr align="left" bgcolor="#99CCFF">
  650. <th width="50%">Plain text
  651. </th>
  652. <th width="50%">Typical result
  653. </th>
  654. </tr></thead>
  655. <tbody><tr valign="top">
  656. <td>
  657. <p><samp>
  658. -a            command-line option "a"
  659. <br>-b file       options can have arguments
  660. <br>              and long descriptions
  661. <br>--long        options can be long also
  662. <br>--input=file  long options can also have
  663. <br>              arguments
  664. <br>/V            DOS/VMS-style options too
  665. </samp>
  666. </p>
  667. </td>
  668. <td>
  669. <table class="table" border="0" width="100%"><tbody valign="top">
  670. <tr>
  671. <td width="30%">
  672. <samp>-a</samp>
  673. </td>
  674. <td>command-line option "a"
  675. </td>
  676. </tr>
  677. <tr>
  678. <td>
  679. <samp>-b <i>file</i></samp>
  680. </td>
  681. <td>options can have arguments and long descriptions
  682. </td>
  683. </tr>
  684. <tr>
  685. <td>
  686. <samp>--long</samp>
  687. </td>
  688. <td>options can be long also
  689. </td>
  690. </tr>
  691. <tr>
  692. <td>
  693. <samp>--input=<i>file</i></samp>
  694. </td>
  695. <td>long options can also have arguments
  696. </td>
  697. </tr>
  698. <tr>
  699. <td>
  700. <samp>/V</samp>
  701. </td>
  702. <td>DOS/VMS-style options too
  703. </td>
  704. </tr>
  705. </tbody></table>
  706. </td>
  707. </tr></tbody>
  708. </table>
  709. <p>There must be at least two spaces between the option and the
  710. description.
  711. </p>
  712. <h3><a href="quickref.html#contents" name="literal-blocks" class="backref">Literal Blocks</a></h3>
  713. <p>(<a href="https://docutils.sourceforge.io/docs/ref/rst/restructuredtext.html#literal-blocks">details</a>)
  714. </p>
  715. <p></p>
  716. <table class="table" border="1" width="100%" bgcolor="#ffffcc" cellpadding="3">
  717. <thead><tr align="left" bgcolor="#99CCFF">
  718. <th width="50%">Plain text
  719. </th>
  720. <th width="50%">Typical result
  721. </th>
  722. </tr></thead>
  723. <tbody><tr valign="top">
  724. <td>
  725. <samp>A paragraph containing only two colons</samp>
  726. <br><samp>indicates that the following indented</samp>
  727. <br><samp>or quoted text is a literal block.</samp>
  728. <br><br><samp>::</samp>
  729. <br><br><samp>  Whitespace, newlines, blank lines, and</samp>
  730. <br><samp>  all kinds of markup (like *this* or</samp>
  731. <br><samp>  \this) is preserved by literal blocks.</samp>
  732. <br><br><samp>  The paragraph containing only '::'</samp>
  733. <br><samp>  will be omitted from the result.</samp>
  734. <br><br><samp>The ``::`` may be tacked onto the very</samp>
  735. <br><samp>end of any paragraph. The ``::`` will be</samp>
  736. <br><samp>omitted if it is preceded by whitespace.</samp>
  737. <br><samp>The ``::`` will be converted to a single</samp>
  738. <br><samp>colon if preceded by text, like this::</samp>
  739. <br><br><samp>  It's very convenient to use this form.</samp>
  740. <br><br><samp>Literal blocks end when text returns to</samp>
  741. <br><samp>the preceding paragraph's indentation.</samp>
  742. <br><samp>This means that something like this</samp>
  743. <br><samp>is possible::</samp>
  744. <br><br><samp>      We start here</samp>
  745. <br><samp>    and continue here</samp>
  746. <br><samp>  and end here.</samp>
  747. <br><br><samp>Per-line quoting can also be used on</samp>
  748. <br><samp>unindented literal blocks::</samp>
  749. <br><br><samp>&gt; Useful for quotes from email and</samp>
  750. <br><samp>&gt; for Haskell literate programming.</samp>
  751. </td>
  752. <td>
  753. <p>A paragraph containing only two colons
  754. indicates that the following indented or quoted
  755. text is a literal block.
  756. </p>
  757. <pre>
  758. Whitespace, newlines, blank lines, and
  759. all kinds of markup (like *this* or
  760. \this) is preserved by literal blocks.
  761. The paragraph containing only '::'
  762. will be omitted from the result.</pre>
  763. <p>The <samp>::</samp> may be tacked onto the very
  764. end of any paragraph. The <samp>::</samp> will be
  765. omitted if it is preceded by whitespace.
  766. The <samp>::</samp> will be converted to a single
  767. colon if preceded by text, like this:
  768. </p>
  769. <pre>
  770. It's very convenient to use this form.</pre>
  771. <p>Literal blocks end when text returns to
  772. the preceding paragraph's indentation.
  773. This means that something like this is possible:
  774. </p>
  775. <pre>
  776. We start here
  777. and continue here
  778. and end here.</pre>
  779. <p>Per-line quoting can also be used on
  780. unindented literal blocks:
  781. </p>
  782. <pre>
  783. &gt; Useful for quotes from email and
  784. &gt; for Haskell literate programming.</pre>
  785. </td>
  786. </tr></tbody>
  787. </table>
  788. <h3><a href="quickref.html#contents" name="line-blocks" class="backref">Line Blocks</a></h3>
  789. <p>(<a href="https://docutils.sourceforge.io/docs/ref/rst/restructuredtext.html#line-blocks">details</a>)
  790. </p>
  791. <p></p>
  792. <table class="table" border="1" width="100%" bgcolor="#ffffcc" cellpadding="3">
  793. <thead><tr align="left" bgcolor="#99CCFF">
  794. <th width="50%">Plain text
  795. </th>
  796. <th width="50%">Typical result
  797. </th>
  798. </tr></thead>
  799. <tbody><tr valign="top">
  800. <td>
  801. <samp>| Line blocks are useful for addresses,</samp>
  802. <br><samp>| verse, and adornment-free lists.</samp>
  803. <br><samp>|</samp>
  804. <br><samp>| Each new line begins with a</samp>
  805. <br><samp>| vertical bar ("|").</samp>
  806. <br><samp>|     Line breaks and initial indents</samp>
  807. <br><samp>|     are preserved.</samp>
  808. <br><samp>| Continuation lines are wrapped</samp>
  809. <br><samp>  portions of long lines; they begin</samp>
  810. <br><samp>  with spaces in place of vertical bars.</samp>
  811. </td>
  812. <td>
  813. <div class="line-block">
  814. <div class="line">Line blocks are useful for addresses,</div>
  815. <div class="line">verse, and adornment-free lists.</div>
  816. <div class="line"><br></div>
  817. <div class="line">Each new line begins with a</div>
  818. <div class="line">vertical bar ("|").</div>
  819. <div class="line-block">
  820. <div class="line">Line breaks and initial indents</div>
  821. <div class="line">are preserved.</div>
  822. </div>
  823. <div class="line">Continuation lines are wrapped portions
  824. of long lines; they begin
  825. with spaces in place of vertical bars.</div>
  826. </div>
  827. </td>
  828. </tr></tbody>
  829. </table>
  830. <h3><a href="quickref.html#contents" name="block-quotes" class="backref">Block Quotes</a></h3>
  831. <p>(<a href="https://docutils.sourceforge.io/docs/ref/rst/restructuredtext.html#block-quotes">details</a>)
  832. </p>
  833. <p></p>
  834. <table class="table" border="1" width="100%" bgcolor="#ffffcc" cellpadding="3">
  835. <thead><tr align="left" bgcolor="#99CCFF">
  836. <th width="50%">Plain text
  837. </th>
  838. <th width="50%">Typical result
  839. </th>
  840. </tr></thead>
  841. <tbody><tr valign="top">
  842. <td>
  843. <samp>Block quotes are just:</samp>
  844. <p><samp>    Indented paragraphs,</samp>
  845. </p>
  846. <p><samp>        and they may nest.</samp>
  847. </p>
  848. </td>
  849. <td>
  850. Block quotes are just:
  851. <blockquote>
  852. <p>Indented paragraphs,
  853. </p>
  854. <blockquote>
  855. <p>and they may nest.
  856. </p>
  857. </blockquote>
  858. </blockquote>
  859. </td>
  860. </tr></tbody>
  861. </table>
  862. <p>Use <a href="quickref.html#comments">empty comments</a> to separate indentation
  863. contexts, such as block quotes and directive contents.</p>
  864. <h3><a href="quickref.html#contents" name="doctest-blocks" class="backref">Doctest Blocks</a></h3>
  865. <p>(<a href="https://docutils.sourceforge.io/docs/ref/rst/restructuredtext.html#doctest-blocks">details</a>)
  866. </p>
  867. <p></p>
  868. <table class="table" border="1" width="100%" bgcolor="#ffffcc" cellpadding="3">
  869. <thead><tr align="left" bgcolor="#99CCFF">
  870. <th width="50%">Plain text
  871. </th>
  872. <th width="50%">Typical result
  873. </th>
  874. </tr></thead>
  875. <tbody><tr valign="top">
  876. <td>
  877. <p><samp>Doctest blocks are interactive
  878. <br>Python sessions. They begin with
  879. <br>"``&gt;&gt;&gt;``" and end with a blank line.</samp>
  880. </p>
  881. <p><samp>&gt;&gt;&gt; print "This is a doctest block."
  882. <br>This is a doctest block.</samp>
  883. </p>
  884. </td>
  885. <td>
  886. <p>Doctest blocks are interactive
  887. Python sessions. They begin with
  888. "<samp>&gt;&gt;&gt;</samp>" and end with a blank line.
  889. </p>
  890. <p><samp>&gt;&gt;&gt; print "This is a doctest block."
  891. <br>This is a doctest block.</samp>
  892. </p>
  893. </td>
  894. </tr></tbody>
  895. </table>
  896. <p>"The <a href="https://docs.python.org/3/library/doctest.html">doctest</a>
  897. module searches a module's docstrings for text that looks like an
  898. interactive Python session, then executes all such sessions to
  899. verify they still work exactly as shown." (From the doctest docs.)
  900. </p>
  901. <h3><a href="quickref.html#contents" name="tables" class="backref">Tables</a></h3>
  902. <p>(<a href="https://docutils.sourceforge.io/docs/ref/rst/restructuredtext.html#tables">details</a>)
  903. </p>
  904. <p>There are two syntaxes for tables in reStructuredText. Grid
  905. tables are complete but cumbersome to create. Simple tables are
  906. easy to create but limited (no row spans, etc.).</p>
  907. <p></p>
  908. <table class="table" border="1" width="100%" bgcolor="#ffffcc" cellpadding="3">
  909. <thead><tr align="left" bgcolor="#99CCFF">
  910. <th width="50%">Plain text
  911. </th>
  912. <th width="50%">Typical result
  913. </th>
  914. </tr></thead>
  915. <tbody>
  916. <tr valign="top">
  917. <td>
  918. <p><samp>Grid table:</samp></p>
  919. <p><samp>+------------+------------+-----------+</samp>
  920. <br><samp>| Header 1   | Header 2   | Header 3  |</samp>
  921. <br><samp>+============+============+===========+</samp>
  922. <br><samp>| body row 1 | column 2   | column 3  |</samp>
  923. <br><samp>+------------+------------+-----------+</samp>
  924. <br><samp>| body row 2 | Cells may span columns.|</samp>
  925. <br><samp>+------------+------------+-----------+</samp>
  926. <br><samp>| body row 3 | Cells may  | - Cells   |</samp>
  927. <br><samp>+------------+ span rows. | - contain |</samp>
  928. <br><samp>| body row 4 |            | - blocks. |</samp>
  929. <br><samp>+------------+------------+-----------+</samp></p>
  930. </td>
  931. <td>
  932. <p>Grid table:</p>
  933. <table class="table" border="1">
  934. <thead valign="bottom"><tr>
  935. <th>Header 1
  936. </th>
  937. <th>Header 2
  938. </th>
  939. <th>Header 3
  940. </th>
  941. </tr></thead>
  942. <tbody valign="top">
  943. <tr>
  944. <td>body row 1
  945. </td>
  946. <td>column 2
  947. </td>
  948. <td>column 3
  949. </td>
  950. </tr>
  951. <tr>
  952. <td>body row 2
  953. </td>
  954. <td colspan="2">Cells may span columns.
  955. </td>
  956. </tr>
  957. <tr>
  958. <td>body row 3
  959. </td>
  960. <td rowspan="2">Cells may<br>span rows.
  961. </td>
  962. <td rowspan="2">
  963. <ul>
  964. <li>Cells
  965. </li>
  966. <li>contain
  967. </li>
  968. <li>blocks.
  969. </li>
  970. </ul>
  971. </td>
  972. </tr>
  973. <tr><td>body row 4
  974. </td></tr>
  975. </tbody>
  976. </table>
  977. </td>
  978. </tr>
  979. <tr valign="top">
  980. <td>
  981. <p><samp>Simple table:</samp></p>
  982. <p><samp>=====  =====  ======</samp>
  983. <br><samp>   Inputs     Output</samp>
  984. <br><samp>------------  ------</samp>
  985. <br><samp>  A      B    A or B</samp>
  986. <br><samp>=====  =====  ======</samp>
  987. <br><samp>False  False  False</samp>
  988. <br><samp>True   False  True</samp>
  989. <br><samp>False  True   True</samp>
  990. <br><samp>True   True   True</samp>
  991. <br><samp>=====  =====  ======</samp></p>
  992. </td>
  993. <td>
  994. <p>Simple table:</p>
  995. <table class="table" border="1">
  996. <colgroup>
  997. <col width="31%">
  998. <col width="31%">
  999. <col width="38%">
  1000. </colgroup>
  1001. <thead valign="bottom">
  1002. <tr>
  1003. <th colspan="2">Inputs
  1004. </th>
  1005. <th>Output
  1006. </th>
  1007. </tr>
  1008. <tr>
  1009. <th>A
  1010. </th>
  1011. <th>B
  1012. </th>
  1013. <th>A or B
  1014. </th>
  1015. </tr>
  1016. </thead>
  1017. <tbody valign="top">
  1018. <tr>
  1019. <td>False
  1020. </td>
  1021. <td>False
  1022. </td>
  1023. <td>False
  1024. </td>
  1025. </tr>
  1026. <tr>
  1027. <td>True
  1028. </td>
  1029. <td>False
  1030. </td>
  1031. <td>True
  1032. </td>
  1033. </tr>
  1034. <tr>
  1035. <td>False
  1036. </td>
  1037. <td>True
  1038. </td>
  1039. <td>True
  1040. </td>
  1041. </tr>
  1042. <tr>
  1043. <td>True
  1044. </td>
  1045. <td>True
  1046. </td>
  1047. <td>True
  1048. </td>
  1049. </tr>
  1050. </tbody>
  1051. </table>
  1052. </td>
  1053. </tr>
  1054. </tbody>
  1055. </table>
  1056. <h3><a href="quickref.html#contents" name="transitions" class="backref">Transitions</a></h3>
  1057. <p>(<a href="https://docutils.sourceforge.io/docs/ref/rst/restructuredtext.html#transitions">details</a>)
  1058. </p>
  1059. <p></p>
  1060. <table class="table" border="1" width="100%" bgcolor="#ffffcc" cellpadding="3">
  1061. <thead><tr align="left" bgcolor="#99CCFF">
  1062. <th width="50%">Plain text
  1063. </th>
  1064. <th width="50%">Typical result
  1065. </th>
  1066. </tr></thead>
  1067. <tbody><tr valign="top">
  1068. <td>
  1069. <p><samp>
  1070. A transition marker is a horizontal line
  1071. <br>of 4 or more repeated punctuation
  1072. <br>characters.</samp>
  1073. </p>
  1074. <p><samp>------------</samp>
  1075. </p>
  1076. <p><samp>A transition should not begin or end a
  1077. <br>section or document, nor should two
  1078. <br>transitions be immediately adjacent.</samp>
  1079. </p>
  1080. </td>
  1081. <td>
  1082. <p>A transition marker is a horizontal line
  1083. of 4 or more repeated punctuation
  1084. characters.</p>
  1085. <hr>
  1086. <p>A transition should not begin or end a
  1087. section or document, nor should two
  1088. transitions be immediately adjacent.
  1089. </p>
  1090. </td>
  1091. </tr></tbody>
  1092. </table>
  1093. <p>Transitions are commonly seen in novels and short fiction, as a
  1094. gap spanning one or more lines, marking text divisions or
  1095. signaling changes in subject, time, point of view, or emphasis.
  1096. </p>
  1097. <h3><a href="quickref.html#contents" name="explicit-markup" class="backref">Explicit Markup</a></h3>
  1098. <p>Explicit markup blocks are used for constructs which float
  1099. (footnotes), have no direct paper-document representation
  1100. (hyperlink targets, comments), or require specialized processing
  1101. (directives). They all begin with two periods and whitespace, the
  1102. "explicit markup start".
  1103. </p>
  1104. <h4><a href="quickref.html#contents" name="footnotes" class="backref">Footnotes</a></h4>
  1105. <p>(<a href="https://docutils.sourceforge.io/docs/ref/rst/restructuredtext.html#footnotes">details</a>)
  1106. </p>
  1107. <p></p>
  1108. <table class="table" border="1" width="100%" bgcolor="#ffffcc" cellpadding="3">
  1109. <thead><tr align="left" bgcolor="#99CCFF">
  1110. <th width="50%">Plain text
  1111. </th>
  1112. <th width="50%">Typical result
  1113. </th>
  1114. </tr></thead>
  1115. <tbody>
  1116. <tr valign="top">
  1117. <td>
  1118. <samp>Footnote references, like [5]_.</samp>
  1119. <br><samp>Note that footnotes may get</samp>
  1120. <br><samp>rearranged, e.g., to the bottom of</samp>
  1121. <br><samp>the "page".</samp>
  1122. <p><samp>.. [5] A numerical footnote. Note</samp>
  1123. <br><samp>   there's no colon after the ``]``.</samp>
  1124. </p>
  1125. </td>
  1126. <td>
  1127. Footnote references, like <sup><a href="quickref.html#5">5</a></sup>.
  1128. Note that footnotes may get rearranged, e.g., to the bottom of
  1129. the "page".
  1130. <p></p>
  1131. <table class="table">
  1132. <tr><td colspan="2">
  1133. <hr>
  1134. <!-- <tr><td colspan="2">Footnotes: -->
  1135. </td></tr>
  1136. <tr>
  1137. <td><a name="5"><strong>[5]</strong></a></td>
  1138. <td> A numerical footnote.
  1139. Note there's no colon after the <samp>]</samp>.
  1140. </td>
  1141. </tr>
  1142. </table>
  1143. </td>
  1144. </tr>
  1145. <tr valign="top">
  1146. <td>
  1147. <samp>Autonumbered footnotes are</samp>
  1148. <br><samp>possible, like using [#]_ and [#]_.</samp>
  1149. <p><samp>.. [#] This is the first one.</samp>
  1150. <br><samp>.. [#] This is the second one.</samp>
  1151. </p>
  1152. <p><samp>They may be assigned 'autonumber</samp>
  1153. <br><samp>labels' - for instance,
  1154. <br>[#fourth]_ and [#third]_.</samp>
  1155. </p>
  1156. <p><samp>.. [#third] a.k.a. third_</samp>
  1157. </p>
  1158. <p><samp>.. [#fourth] a.k.a. fourth_</samp>
  1159. </p>
  1160. </td>
  1161. <td>
  1162. Autonumbered footnotes are possible, like using <sup><a href="quickref.html#auto1">1</a></sup> and <sup><a href="quickref.html#auto2">2</a></sup>.
  1163. <p>They may be assigned 'autonumber labels' - for instance,
  1164. <sup><a href="quickref.html#fourth">4</a></sup> and <sup><a href="quickref.html#third">3</a></sup>.
  1165. </p>
  1166. <p></p>
  1167. <table class="table">
  1168. <tr><td colspan="2">
  1169. <hr>
  1170. <!-- <tr><td colspan="2">Footnotes: -->
  1171. </td></tr>
  1172. <tr>
  1173. <td><a name="auto1"><strong>[1]</strong></a></td>
  1174. <td> This is the first one.
  1175. </td>
  1176. </tr>
  1177. <tr>
  1178. <td><a name="auto2"><strong>[2]</strong></a></td>
  1179. <td> This is the second one.
  1180. </td>
  1181. </tr>
  1182. <tr>
  1183. <td><a name="third"><strong>[3]</strong></a></td>
  1184. <td> a.k.a. <a href="quickref.html#third">third</a>
  1185. </td>
  1186. </tr>
  1187. <tr>
  1188. <td><a name="fourth"><strong>[4]</strong></a></td>
  1189. <td> a.k.a. <a href="quickref.html#fourth">fourth</a>
  1190. </td>
  1191. </tr>
  1192. </table>
  1193. </td>
  1194. </tr>
  1195. <tr valign="top">
  1196. <td>
  1197. <samp>Auto-symbol footnotes are also</samp>
  1198. <br><samp>possible, like this: [*]_ and [*]_.</samp>
  1199. <p><samp>.. [*] This is the first one.</samp>
  1200. <br><samp>.. [*] This is the second one.</samp>
  1201. </p>
  1202. </td>
  1203. <td>
  1204. Auto-symbol footnotes are also
  1205. possible, like this: <sup><a href="quickref.html#symbol1">*</a></sup>
  1206. and <sup><a href="quickref.html#symbol2">†</a></sup>.
  1207. <p></p>
  1208. <table class="table">
  1209. <tr><td colspan="2">
  1210. <hr>
  1211. <!-- <tr><td colspan="2">Footnotes: -->
  1212. </td></tr>
  1213. <tr>
  1214. <td><a name="symbol1"><strong>[*]</strong></a></td>
  1215. <td> This is the first symbol footnote
  1216. </td>
  1217. </tr>
  1218. <tr>
  1219. <td><a name="symbol2"><strong>[†]</strong></a></td>
  1220. <td> This is the second one.
  1221. </td>
  1222. </tr>
  1223. </table>
  1224. </td>
  1225. </tr>
  1226. </tbody>
  1227. </table>
  1228. <p>The numbering of auto-numbered footnotes is determined by the
  1229. order of the footnotes, not of the references. For auto-numbered
  1230. footnote references without autonumber labels
  1231. ("<samp>[#]_</samp>"), the references and footnotes must be in the
  1232. same relative order. Similarly for auto-symbol footnotes
  1233. ("<samp>[*]_</samp>").
  1234. </p>
  1235. <h4><a href="quickref.html#contents" name="citations" class="backref">Citations</a></h4>
  1236. <p>(<a href="https://docutils.sourceforge.io/docs/ref/rst/restructuredtext.html#citations">details</a>)
  1237. </p>
  1238. <p></p>
  1239. <table class="table" border="1" width="100%" bgcolor="#ffffcc" cellpadding="3">
  1240. <thead><tr align="left" bgcolor="#99CCFF">
  1241. <th width="50%">Plain text
  1242. </th>
  1243. <th width="50%">Typical result
  1244. </th>
  1245. </tr></thead>
  1246. <tbody><tr valign="top">
  1247. <td>
  1248. <samp>Citation references, like [CIT2002]_.</samp>
  1249. <br><samp>Note that citations may get</samp>
  1250. <br><samp>rearranged, e.g., to the bottom of</samp>
  1251. <br><samp>the "page".</samp>
  1252. <p><samp>.. [CIT2002] A citation</samp>
  1253. <br><samp>   (as often used in journals).</samp>
  1254. </p>
  1255. <p><samp>Citation labels contain alphanumerics,</samp>
  1256. <br><samp>underlines, hyphens and fullstops.</samp>
  1257. <br><samp>Case is not significant.</samp>
  1258. </p>
  1259. <p><samp>Given a citation like [this]_, one</samp>
  1260. <br><samp>can also refer to it like this_.</samp>
  1261. </p>
  1262. <p><samp>.. [this] here.</samp>
  1263. </p>
  1264. </td>
  1265. <td>
  1266. Citation references, like <a href="quickref.html#cit2002">[CIT2002]</a>.
  1267. Note that citations may get rearranged, e.g., to the bottom of
  1268. the "page".
  1269. <p>Citation labels contain alphanumerics, underlines, hyphens
  1270. and fullstops. Case is not significant.
  1271. </p>
  1272. <p>Given a citation like <a href="quickref.html#this">[this]</a>, one
  1273. can also refer to it like <a href="quickref.html#this">this</a>.
  1274. </p>
  1275. <p></p>
  1276. <table class="table">
  1277. <tr><td colspan="2">
  1278. <hr>
  1279. <!-- <tr><td colspan="2">Citations: -->
  1280. </td></tr>
  1281. <tr>
  1282. <td><a name="cit2002"><strong>[CIT2002]</strong></a></td>
  1283. <td> A citation
  1284. (as often used in journals).
  1285. </td>
  1286. </tr>
  1287. <tr>
  1288. <td><a name="this"><strong>[this]</strong></a></td>
  1289. <td> here.
  1290. </td>
  1291. </tr>
  1292. </table>
  1293. </td>
  1294. </tr></tbody>
  1295. </table>
  1296. <h4><a href="quickref.html#contents" name="hyperlink-targets" class="backref">Hyperlink Targets</a></h4>
  1297. <p>(<a href="https://docutils.sourceforge.io/docs/ref/rst/restructuredtext.html#hyperlink-targets">details</a>)
  1298. </p>
  1299. <h5><a href="quickref.html#contents" name="external-hyperlink-targets" class="backref">External Hyperlink Targets</a></h5>
  1300. <p></p>
  1301. <table class="table" border="1" width="100%" bgcolor="#ffffcc" cellpadding="3">
  1302. <thead><tr align="left" bgcolor="#99CCFF">
  1303. <th width="50%">Plain text
  1304. </th>
  1305. <th width="50%">Typical result
  1306. </th>
  1307. </tr></thead>
  1308. <tbody>
  1309. <tr valign="top">
  1310. <td rowspan="2">
  1311. <samp>External hyperlinks, like Python_.</samp>
  1312. <p><samp>.. _Python: https://www.python.org/</samp>
  1313. </p>
  1314. </td>
  1315. <td>
  1316. <table class="table" width="100%">
  1317. <tr bgcolor="#99CCFF"><td>
  1318. <em>Fold-in form</em>
  1319. </td></tr>
  1320. <tr><td>External hyperlinks, like
  1321. <a href="https://www.python.org/">Python</a>.
  1322. </td></tr>
  1323. </table>
  1324. </td>
  1325. </tr>
  1326. <tr valign="top"><td>
  1327. <table class="table" width="100%">
  1328. <tr bgcolor="#99CCFF"><td>
  1329. <em>Call-out form</em>
  1330. </td></tr>
  1331. <tr><td>External hyperlinks, like
  1332. <a href="quickref.html#labPython"><i>Python</i></a>.
  1333. <p></p>
  1334. <table class="table">
  1335. <tr><td colspan="2"><hr></td></tr>
  1336. <tr>
  1337. <td>
  1338. <a name="labPython"><i>Python:</i></a>
  1339. </td>
  1340. <td> <a href="https://www.python.org/">https://www.python.org/</a>
  1341. </td>
  1342. </tr>
  1343. </table>
  1344. </td></tr>
  1345. </table>
  1346. </td></tr>
  1347. </tbody>
  1348. </table>
  1349. <p>"<em>Fold-in</em>" is the representation typically used in HTML
  1350. documents (think of the indirect hyperlink being "folded in" like
  1351. ingredients into a cake), and "<em>call-out</em>" is more suitable for
  1352. printed documents, where the link needs to be presented explicitly, for
  1353. example as a footnote. You can force usage of the call-out form by
  1354. using the
  1355. "<a href="https://docutils.sourceforge.io/docs/ref/rst/directives.html#target-notes">target-notes</a>"
  1356. directive.
  1357. </p>
  1358. <p>reStructuredText also provides for <b>embedded URIs</b> (<a href="https://docutils.sourceforge.io/docs/ref/rst/restructuredtext.html#embedded-uris-and-aliases">details</a>),
  1359. a convenience at the expense of readability. A hyperlink
  1360. reference may directly embed a target URI inline, within angle
  1361. brackets. The following is exactly equivalent to the example above:
  1362. </p>
  1363. <p></p>
  1364. <table class="table" border="1" width="100%" bgcolor="#ffffcc" cellpadding="3">
  1365. <thead><tr align="left" bgcolor="#99CCFF">
  1366. <th width="50%">Plain text
  1367. </th>
  1368. <th width="50%">Typical result
  1369. </th>
  1370. </tr></thead>
  1371. <tbody><tr valign="top">
  1372. <td rowspan="2">
  1373. <samp>External hyperlinks, like `Python
  1374. <br>&lt;https://www.python.org/&gt;`_.</samp>
  1375. </td>
  1376. <td>External hyperlinks, like
  1377. <a href="https://www.python.org/">Python</a>.
  1378. </td>
  1379. </tr></tbody>
  1380. </table>
  1381. <h5><a href="quickref.html#contents" name="internal-hyperlink-targets" class="backref">Internal Hyperlink Targets</a></h5>
  1382. <p></p>
  1383. <table class="table" border="1" width="100%" bgcolor="#ffffcc" cellpadding="3">
  1384. <thead><tr align="left" bgcolor="#99CCFF">
  1385. <th width="50%">Plain text
  1386. </th>
  1387. <th width="50%">Typical result
  1388. </th>
  1389. </tr></thead>
  1390. <tbody>
  1391. <tr valign="top">
  1392. <td rowspan="2">
  1393. <samp>Internal crossreferences, like example_.</samp>
  1394. <p><samp>.. _example:</samp>
  1395. </p>
  1396. <p><samp>This is an example crossreference target.</samp>
  1397. </p>
  1398. </td>
  1399. <td>
  1400. <table class="table" width="100%">
  1401. <tr bgcolor="#99CCFF"><td>
  1402. <em>Fold-in form</em>
  1403. <!-- Note that some browsers may not like an "a" tag that -->
  1404. <!-- does not have any content, so we could arbitrarily -->
  1405. <!-- use the first word as content - *or* just trust to -->
  1406. <!-- luck! -->
  1407. </td></tr>
  1408. <tr><td>Internal crossreferences, like <a href="quickref.html#example-foldin">example</a>
  1409. <p><a name="example-foldin">This</a> is an example
  1410. crossreference target.
  1411. </p>
  1412. </td></tr>
  1413. </table>
  1414. </td>
  1415. </tr>
  1416. <tr valign="top"><td>
  1417. <table class="table" width="100%">
  1418. <tr><td bgcolor="#99CCFF">
  1419. <em>Call-out form</em>
  1420. </td></tr>
  1421. <tr><td>Internal crossreferences, like <a href="quickref.html#example-callout">example</a>
  1422. <p><a name="example-callout"><i>example:</i></a>
  1423. <br>This is an example crossreference target.
  1424. </p>
  1425. </td></tr>
  1426. </table>
  1427. </td></tr>
  1428. </tbody>
  1429. </table>
  1430. <h5><a href="quickref.html#contents" name="indirect-hyperlink-targets" class="backref">Indirect Hyperlink Targets</a></h5>
  1431. <p>(<a href="https://docutils.sourceforge.io/docs/ref/rst/restructuredtext.html#indirect-hyperlink-targets">details</a>)
  1432. </p>
  1433. <p></p>
  1434. <table class="table" border="1" width="100%" bgcolor="#ffffcc" cellpadding="3">
  1435. <thead><tr align="left" bgcolor="#99CCFF">
  1436. <th width="50%">Plain text
  1437. </th>
  1438. <th width="50%">Typical result
  1439. </th>
  1440. </tr></thead>
  1441. <tbody><tr valign="top">
  1442. <td>
  1443. <samp>Python_ is `my favourite
  1444. <br>programming language`__.</samp>
  1445. <p><samp>.. _Python: https://www.python.org/</samp>
  1446. </p>
  1447. <p><samp>__ Python_</samp>
  1448. </p>
  1449. </td>
  1450. <td>
  1451. <p><a href="https://www.python.org/">Python</a> is
  1452. <a href="https://www.python.org/">my favourite
  1453. programming language</a>.
  1454. </p>
  1455. </td>
  1456. </tr></tbody>
  1457. </table>
  1458. <p>The second hyperlink target (the line beginning with
  1459. "<samp>__</samp>") is both an indirect hyperlink target
  1460. (<i>indirectly</i> pointing at the Python website via the
  1461. "<samp>Python_</samp>" reference) and an <b>anonymous hyperlink
  1462. target</b>. In the text, a double-underscore suffix is used to
  1463. indicate an <b>anonymous hyperlink reference</b>. In an anonymous
  1464. hyperlink target, the reference text is not repeated. This is
  1465. useful for references with long text or throw-away references, but
  1466. the target should be kept close to the reference to prevent them
  1467. going out of sync.
  1468. </p>
  1469. <h5><a href="quickref.html#contents" name="implicit-hyperlink-targets" class="backref">Implicit Hyperlink Targets</a></h5>
  1470. <p>(<a href="https://docutils.sourceforge.io/docs/ref/rst/restructuredtext.html#implicit-hyperlink-targets">details</a>)
  1471. </p>
  1472. <p>Section titles, footnotes, and citations automatically generate
  1473. hyperlink targets (the title text or footnote/citation label is
  1474. used as the hyperlink name).
  1475. </p>
  1476. <p></p>
  1477. <table class="table" border="1" width="100%" bgcolor="#ffffcc" cellpadding="3">
  1478. <thead><tr align="left" bgcolor="#99CCFF">
  1479. <th width="50%">Plain text
  1480. </th>
  1481. <th width="50%">Typical result
  1482. </th>
  1483. </tr></thead>
  1484. <tbody><tr valign="top">
  1485. <td>
  1486. <samp>Titles are targets, too</samp>
  1487. <br><samp>=======================</samp>
  1488. <br><samp>Implicit references, like `Titles are</samp>
  1489. <br><samp>targets, too`_.</samp>
  1490. </td>
  1491. <td>
  1492. <font size="+2"><strong><a name="title">Titles are targets, too</a></strong></font>
  1493. <p>Implicit references, like <a href="quickref.html#title">Titles are
  1494. targets, too</a>.
  1495. </p>
  1496. </td>
  1497. </tr></tbody>
  1498. </table>
  1499. <h4><a href="quickref.html#contents" name="directives" class="backref">Directives</a></h4>
  1500. <p>(<a href="https://docutils.sourceforge.io/docs/ref/rst/restructuredtext.html#directives">details</a>)
  1501. </p>
  1502. <p>Directives are a general-purpose extension mechanism, a way of
  1503. adding support for new constructs without adding new syntax. For
  1504. a description of all standard directives, see <a href="https://docutils.sourceforge.io/docs/ref/rst/directives.html">reStructuredText
  1505. Directives</a>.
  1506. </p>
  1507. <p></p>
  1508. <table class="table" border="1" width="100%" bgcolor="#ffffcc" cellpadding="3">
  1509. <thead><tr align="left" bgcolor="#99CCFF">
  1510. <th width="50%">Plain text
  1511. </th>
  1512. <th width="50%">Typical result
  1513. </th>
  1514. </tr></thead>
  1515. <tbody><tr valign="top">
  1516. <td>
  1517. <samp>For instance:</samp>
  1518. <p><samp>.. image:: images/nikola.png</samp>
  1519. </p>
  1520. </td>
  1521. <td>
  1522. For instance:
  1523. <p><img src="../images/nikola.png" alt="ball1"></p>
  1524. </td>
  1525. </tr></tbody>
  1526. </table>
  1527. <h4><a href="quickref.html#contents" name="substitution-references-and-definitions" class="backref">Substitution References and Definitions</a></h4>
  1528. <p>(<a href="https://docutils.sourceforge.io/docs/ref/rst/restructuredtext.html#substitution-definitions">details</a>)
  1529. </p>
  1530. <p>Substitutions are like inline directives, allowing graphics and
  1531. arbitrary constructs within text.
  1532. </p>
  1533. <p></p>
  1534. <table class="table" border="1" width="100%" bgcolor="#ffffcc" cellpadding="3">
  1535. <thead><tr align="left" bgcolor="#99CCFF">
  1536. <th width="50%">Plain text
  1537. </th>
  1538. <th width="50%">Typical result
  1539. </th>
  1540. </tr></thead>
  1541. <tbody><tr valign="top">
  1542. <td>
  1543. <samp>
  1544. The |Nikola| static site generator
  1545. is named after Nikola Tesla.</samp>
  1546. <p><samp>
  1547. .. |Nikola| image:: nikola.png</samp>
  1548. </p>
  1549. </td>
  1550. <td>
  1551. <p>The <img src="../images/nikola.png" align="bottom" alt="Nikola"> static
  1552. site generator is named after Nikola Tesla.
  1553. </p>
  1554. </td>
  1555. </tr></tbody>
  1556. </table>
  1557. <h4><a href="quickref.html#contents" name="comments" class="backref">Comments</a></h4>
  1558. <p>(<a href="https://docutils.sourceforge.io/docs/ref/rst/restructuredtext.html#comments">details</a>)
  1559. </p>
  1560. <p>Any text which begins with an explicit markup start but doesn't
  1561. use the syntax of any of the constructs above, is a comment.
  1562. </p>
  1563. <p></p>
  1564. <table class="table" border="1" width="100%" bgcolor="#ffffcc" cellpadding="3">
  1565. <thead><tr align="left" bgcolor="#99CCFF">
  1566. <th width="50%">Plain text
  1567. </th>
  1568. <th width="50%">Typical result
  1569. </th>
  1570. </tr></thead>
  1571. <tbody>
  1572. <tr valign="top">
  1573. <td>
  1574. <samp>.. This text will not be shown</samp>
  1575. <br><samp>   (but, for instance, in HTML might be</samp>
  1576. <br><samp>   rendered as an HTML comment)</samp>
  1577. </td>
  1578. <td> 
  1579. <!-- This text will not be shown -->
  1580. <!-- (but, for instance in HTML might be -->
  1581. <!-- rendered as an HTML comment) -->
  1582. </td>
  1583. </tr>
  1584. <tr valign="top">
  1585. <td>
  1586. <samp>An "empty comment" does not</samp>
  1587. <br><samp>consume following blocks.</samp>
  1588. <br><samp>(An empty comment is ".." with</samp>
  1589. <br><samp>blank lines before and after.)</samp>
  1590. <p><samp>..</samp>
  1591. </p>
  1592. <p><samp>        So this block is not "lost",</samp>
  1593. <br><samp>        despite its indentation.</samp>
  1594. </p>
  1595. </td>
  1596. <td>
  1597. An "empty comment" does not
  1598. consume following blocks.
  1599. (An empty comment is ".." with
  1600. blank lines before and after.)
  1601. <blockquote>
  1602. So this block is not "lost",
  1603. despite its indentation.
  1604. </blockquote>
  1605. </td>
  1606. </tr>
  1607. </tbody>
  1608. </table>
  1609. <h3><a href="quickref.html#contents" name="getting-help" class="backref">Getting Help</a></h3>
  1610. <p>Users who have questions or need assistance with Docutils or
  1611. reStructuredText should <a href="mailto:docutils-users@lists.sourceforge.net">post a
  1612. message</a> to the <a href="https://sourceforge.net/projects/docutils/lists/docutils-users">Docutils-Users mailing list</a>. The <a href="https://docutils.sourceforge.io/">Docutils project web
  1613. site</a> has more information.
  1614. </p>
  1615. <p></p>
  1616. <hr>
  1617. <address>
  1618. <p>Authors:
  1619. <a href="https://www.tibsnjoan.co.uk/">Tibs</a>
  1620. (<a href="mailto:tibs@tibsnjoan.co.uk"><tt>tibs@tibsnjoan.co.uk</tt></a>)
  1621. and David Goodger
  1622. (<a href="mailto:goodger@python.org">goodger@python.org</a>)
  1623. </p>
  1624. </address>
  1625. <!-- Created: Fri Aug 03 09:11:57 GMT Daylight Time 2001 -->
  1626. </div>
  1627. </article>
  1628. </div>
  1629. <div class="col-sm-3 col-sm-offset-1 blog-sidebar">
  1630. <div class="sidebar-module sidebar-module-inset">
  1631. <h4>About</h4>
  1632. <div id="shoutcastdiv">
  1633. <script type="text/javascript">
  1634. refreshdiv();
  1635. </script>
  1636. </div>
  1637. </div>
  1638. <div class="sidebar-module">
  1639. <h4>Links</h4>
  1640. <ol class="list-unstyled">
  1641. <li><a href="http://getbootstrap.com/examples/blog/">Bootstrap Blog Theme</a></li>
  1642. <li><a href="https://getnikola.com/">Nikola</a></li>
  1643. <li><a href="https://twitter.com/mdo">@mdo</a></li>
  1644. <li><a href="https://twitter.com/Kwpolska">@Kwpolska</a></li>
  1645. <li><a href="https://twitter.com/GetNikola">@GetNikola</a></li>
  1646. </ol>
  1647. </div>
  1648. </div>
  1649. <!--End of body content-->
  1650. </div>
  1651. </div>
  1652. </div>
  1653. <footer class="blog-footer" id="footer">
  1654. Contents © 2023 <a href="mailto:contact@riff-radio.org">Riff</a> - Powered by <a href="https://getnikola.com" rel="nofollow">Nikola</a>
  1655. </footer><script src="../assets/js/all-nocdn.js"></script><!-- fancy dates --><script>
  1656. moment.locale("en");
  1657. fancydates(0, "YYYY-MM-DD HH:mm");
  1658. </script><!-- end fancy dates --><script>
  1659. baguetteBox.run('div#content', {
  1660. ignoreClass: 'islink',
  1661. captions: function(element) {
  1662. return element.getElementsByTagName('img')[0].alt;
  1663. }});
  1664. </script><script type="text/javascript" src="../refresh.js"></script>
  1665. </body>
  1666. </html>