The reStructuredText_ Cheat Sheet: Syntax Reminders
Info: | See <http://docutils.sf.net/rst.html> for introductory docs. |
---|---|
Author: | David Goodger <goodger@python.org> |
Date: | 2012-06-22 |
Revision: | 7463 |
Description: | This is a "docinfo block", or bibliographic field list |
Section Structure
Section titles are underlined or overlined & underlined.
Body Elements
Grid table:
System Message: ERROR/3 (<string>, line 18)
Malformed table.
+--------------------------------+-----------------------------------+ | Paragraphs are flush-left, | Literal block, preceded by "::":: | | separated by blank lines. | | | | Indented | | Block quotes are indented. | | +--------------------------------+ or:: | | >>>
System Message: WARNING/2 (<string>, line 25)
Blank line required after table.Docutils System Messages
System Message: ERROR/3 (<string>, line 3); backlink
Unknown target name: "restructuredtext".sack
s(hortcut)-ack: a faster way to use ack (and grep)!
sack acts as a wrapper for ack to provide convenience for the repetitive menial tasks
What is ack?
ack is the replacement for grep!
Here is why you should use ack over grep: http://betterthangrep.com/
(Now that you are sold on ack) To install ack in a one-line script:
curl http://betterthangrep.com/ack-standalone > ~/bin/ack && chmod 0755 !#:3
How to Install:
Open a terminal and run the following:
git clone git@github.com:sampson-chen/sack.git && cd sack && chmod +x install_sack.sh && ./install_sack.sh
How to Use:
You can use sack in exactly the same way you currently use ack! Woot!
For why sack is faster (and more fun!) to use, read on about its main / side features...
Main Feature 1 - Shortcuts:
sack prefixes shortcut tags to ack's search results:
user@linux:~/src$ sack thumbnail
... (omitted results)
/home/user/src/reviewboard/reviewboard/attachments/mimetypes.py
[13] 6
rendered rst html used in screenshot (pre-crop) | |
---|---|
1 | <?xml version="1.0" encoding="utf-8" ?> |
2 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
3 | <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> |
4 | <head> |
5 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
6 | <meta name="generator" content="Docutils 0.9.1: http://docutils.sourceforge.net/" /> |
7 | <title>The reStructuredText Cheat Sheet: Syntax Reminders</title> |
8 | <meta name="author" content="David Goodger <goodger@python.org>" /> |
9 | <meta name="date" content="2012-06-22" /> |
10 | <style type="text/css"> |
11 | |
12 | /* |
13 | :Author: David Goodger (goodger@python.org) |
14 | :Id: $Id: html4css1.css 7434 2012-05-11 21:06:27Z milde $ |
15 | :Copyright: This stylesheet has been placed in the public domain. |
16 | |
17 | Default cascading style sheet for the HTML output of Docutils. |
18 | |
19 | See http://docutils.sf.net/docs/howto/html-stylesheets.html for how to |
20 | customize this style sheet. |
21 | */ |
22 | |
23 | /* used to remove borders from tables and images */ |
24 | .borderless, table.borderless td, table.borderless th { |
25 | border: 0 } |
26 | |
27 | table.borderless td, table.borderless th { |
28 | /* Override padding for "table.docutils td" with "! important". |
29 | The right padding separates the table cells. */ |
30 | padding: 0 0.5em 0 0 ! important } |
31 | |
32 | .first { |
33 | /* Override more specific margin styles with "! important". */ |
34 | margin-top: 0 ! important } |
35 | |
36 | .last, .with-subtitle { |
37 | margin-bottom: 0 ! important } |
38 | |
39 | .hidden { |
40 | display: none } |
41 | |
42 | a.toc-backref { |
43 | text-decoration: none ; |
44 | color: black } |
45 | |
46 | blockquote.epigraph { |
47 | margin: 2em 5em ; } |
48 | |
49 | dl.docutils dd { |
50 | margin-bottom: 0.5em } |
51 | |
52 | object[type="image/svg+xml"], object[type="application/x-shockwave-flash"] { |
53 | overflow: hidden; |
54 | } |
55 | |
56 | /* Uncomment (and remove this text!) to get bold-faced definition list terms |
57 | dl.docutils dt { |
58 | font-weight: bold } |
59 | */ |
60 | |
61 | div.abstract { |
62 | margin: 2em 5em } |
63 | |
64 | div.abstract p.topic-title { |
65 | font-weight: bold ; |
66 | text-align: center } |
67 | |
68 | div.admonition, div.attention, div.caution, div.danger, div.error, |
69 | div.hint, div.important, div.note, div.tip, div.warning { |
70 | margin: 2em ; |
71 | border: medium outset ; |
72 | padding: 1em } |
73 | |
74 | div.admonition p.admonition-title, div.hint p.admonition-title, |
75 | div.important p.admonition-title, div.note p.admonition-title, |
76 | div.tip p.admonition-title { |
77 | font-weight: bold ; |
78 | font-family: sans-serif } |
79 | |
80 | div.attention p.admonition-title, div.caution p.admonition-title, |
81 | div.danger p.admonition-title, div.error p.admonition-title, |
82 | div.warning p.admonition-title { |
83 | color: red ; |
84 | font-weight: bold ; |
85 | font-family: sans-serif } |
86 | |
87 | /* Uncomment (and remove this text!) to get reduced vertical space in |
88 | compound paragraphs. |
89 | div.compound .compound-first, div.compound .compound-middle { |
90 | margin-bottom: 0.5em } |
91 | |
92 | div.compound .compound-last, div.compound .compound-middle { |
93 | margin-top: 0.5em } |
94 | */ |
95 | |
96 | div.dedication { |
97 | margin: 2em 5em ; |
98 | text-align: center ; |
99 | font-style: italic } |
100 | |
101 | div.dedication p.topic-title { |
102 | font-weight: bold ; |
103 | font-style: normal } |
104 | |
105 | div.figure { |
106 | margin-left: 2em ; |
107 | margin-right: 2em } |
108 | |
109 | div.footer, div.header { |
110 | clear: both; |
111 | font-size: smaller } |
112 | |
113 | div.line-block { |
114 | display: block ; |
115 | margin-top: 1em ; |
116 | margin-bottom: 1em } |
117 | |
118 | div.line-block div.line-block { |
119 | margin-top: 0 ; |
120 | margin-bottom: 0 ; |
121 | margin-left: 1.5em } |
122 | |
123 | div.sidebar { |
124 | margin: 0 0 0.5em 1em ; |
125 | border: medium outset ; |
126 | padding: 1em ; |
127 | background-color: #ffffee ; |
128 | width: 40% ; |
129 | float: right ; |
130 | clear: right } |
131 | |
132 | div.sidebar p.rubric { |
133 | font-family: sans-serif ; |
134 | font-size: medium } |
135 | |
136 | div.system-messages { |
137 | margin: 5em } |
138 | |
139 | div.system-messages h1 { |
140 | color: red } |
141 | |
142 | div.system-message { |
143 | border: medium outset ; |
144 | padding: 1em } |
145 | |
146 | div.system-message p.system-message-title { |
147 | color: red ; |
148 | font-weight: bold } |
149 | |
150 | div.topic { |
151 | margin: 2em } |
152 | |
153 | h1.section-subtitle, h2.section-subtitle, h3.section-subtitle, |
154 | h4.section-subtitle, h5.section-subtitle, h6.section-subtitle { |
155 | margin-top: 0.4em } |
156 | |
157 | h1.title { |
158 | text-align: center } |
159 | |
160 | h2.subtitle { |
161 | text-align: center } |
162 | |
163 | hr.docutils { |
164 | width: 75% } |
165 | |
166 | img.align-left, .figure.align-left, object.align-left { |
167 | clear: left ; |
168 | float: left ; |
169 | margin-right: 1em } |
170 | |
171 | img.align-right, .figure.align-right, object.align-right { |
172 | clear: right ; |
173 | float: right ; |
174 | margin-left: 1em } |
175 | |
176 | img.align-center, .figure.align-center, object.align-center { |
177 | display: block; |
178 | margin-left: auto; |
179 | margin-right: auto; |
180 | } |
181 | |
182 | .align-left { |
183 | text-align: left } |
184 | |
185 | .align-center { |
186 | clear: both ; |
187 | text-align: center } |
188 | |
189 | .align-right { |
190 | text-align: right } |
191 | |
192 | /* reset inner alignment in figures */ |
193 | div.align-right { |
194 | text-align: inherit } |
195 | |
196 | /* div.align-center * { */ |
197 | /* text-align: left } */ |
198 | |
199 | ol.simple, ul.simple { |
200 | margin-bottom: 1em } |
201 | |
202 | ol.arabic { |
203 | list-style: decimal } |
204 | |
205 | ol.loweralpha { |
206 | list-style: lower-alpha } |
207 | |
208 | ol.upperalpha { |
209 | list-style: upper-alpha } |
210 | |
211 | ol.lowerroman { |
212 | list-style: lower-roman } |
213 | |
214 | ol.upperroman { |
215 | list-style: upper-roman } |
216 | |
217 | p.attribution { |
218 | text-align: right ; |
219 | margin-left: 50% } |
220 | |
221 | p.caption { |
222 | font-style: italic } |
223 | |
224 | p.credits { |
225 | font-style: italic ; |
226 | font-size: smaller } |
227 | |
228 | p.label { |
229 | white-space: nowrap } |
230 | |
231 | p.rubric { |
232 | font-weight: bold ; |
233 | font-size: larger ; |
234 | color: maroon ; |
235 | text-align: center } |
236 | |
237 | p.sidebar-title { |
238 | font-family: sans-serif ; |
239 | font-weight: bold ; |
240 | font-size: larger } |
241 | |
242 | p.sidebar-subtitle { |
243 | font-family: sans-serif ; |
244 | font-weight: bold } |
245 | |
246 | p.topic-title { |
247 | font-weight: bold } |
248 | |
249 | pre.address { |
250 | margin-bottom: 0 ; |
251 | margin-top: 0 ; |
252 | font: inherit } |
253 | |
254 | pre.literal-block, pre.doctest-block, pre.math, pre.code { |
255 | margin-left: 2em ; |
256 | margin-right: 2em } |
257 | |
258 | pre.code .ln { /* line numbers */ |
259 | color: grey; |
260 | } |
261 | |
262 | .code { |
263 | background-color: #eeeeee |
264 | } |
265 | |
266 | span.classifier { |
267 | font-family: sans-serif ; |
268 | font-style: oblique } |
269 | |
270 | span.classifier-delimiter { |
271 | font-family: sans-serif ; |
272 | font-weight: bold } |
273 | |
274 | span.interpreted { |
275 | font-family: sans-serif } |
276 | |
277 | span.option { |
278 | white-space: nowrap } |
279 | |
280 | span.pre { |
281 | white-space: pre } |
282 | |
283 | span.problematic { |
284 | color: red } |
285 | |
286 | span.section-subtitle { |
287 | /* font-size relative to parent (h1..h6 element) */ |
288 | font-size: 80% } |
289 | |
290 | table.citation { |
291 | border-left: solid 1px gray; |
292 | margin-left: 1px } |
293 | |
294 | table.docinfo { |
295 | margin: 2em 4em } |
296 | |
297 | table.docutils { |
298 | margin-top: 0.5em ; |
299 | margin-bottom: 0.5em } |
300 | |
301 | table.footnote { |
302 | border-left: solid 1px black; |
303 | margin-left: 1px } |
304 | |
305 | table.docutils td, table.docutils th, |
306 | table.docinfo td, table.docinfo th { |
307 | padding-left: 0.5em ; |
308 | padding-right: 0.5em ; |
309 | vertical-align: top } |
310 | |
311 | table.docutils th.field-name, table.docinfo th.docinfo-name { |
312 | font-weight: bold ; |
313 | text-align: left ; |
314 | white-space: nowrap ; |
315 | padding-left: 0 } |
316 | |
317 | h1 tt.docutils, h2 tt.docutils, h3 tt.docutils, |
318 | h4 tt.docutils, h5 tt.docutils, h6 tt.docutils { |
319 | font-size: 100% } |
320 | |
321 | ul.auto-toc { |
322 | list-style-type: none } |
323 | |
324 | </style> |
325 | </head> |
326 | <body> |
327 | <div class="document" id="the-restructuredtext-cheat-sheet-syntax-reminders"> |
328 | <h1 class="title">The <a class="reference external" href="http://docutils.sf.net/rst.html">reStructuredText</a> Cheat Sheet: Syntax Reminders</h1> |
329 | <table class="docinfo" frame="void" rules="none"> |
330 | <col class="docinfo-name" /> |
331 | <col class="docinfo-content" /> |
332 | <tbody valign="top"> |
333 | <tr class="field"><th class="docinfo-name">Info:</th><td class="field-body">See <<a class="reference external" href="http://docutils.sf.net/rst.html">http://docutils.sf.net/rst.html</a>> for introductory docs.</td> |
334 | </tr> |
335 | <tr><th class="docinfo-name">Author:</th> |
336 | <td>David Goodger <<a class="reference external" href="mailto:goodger@python.org">goodger@python.org</a>></td></tr> |
337 | <tr><th class="docinfo-name">Date:</th> |
338 | <td>2012-06-22</td></tr> |
339 | <tr><th class="docinfo-name">Revision:</th> |
340 | <td>7463</td></tr> |
341 | <tr class="field"><th class="docinfo-name">Description:</th><td class="field-body">This is a "docinfo block", or bibliographic field list</td> |
342 | </tr> |
343 | </tbody> |
344 | </table> |
345 | <div class="section" id="section-structure"> |
346 | <h1>Section Structure</h1> |
347 | <p>Section titles are underlined or overlined & underlined.</p> |
348 | </div> |
349 | <div class="section" id="body-elements"> |
350 | <h1>Body Elements</h1> |
351 | <p>Grid table:</p> |
352 | <table border="1" class="docutils"> |
353 | <colgroup> |
354 | <col width="48%" /> |
355 | <col width="52%" /> |
356 | </colgroup> |
357 | <tbody valign="top"> |
358 | <tr><td><p class="first">Paragraphs are flush-left, |
359 | separated by blank lines.</p> |
360 | <blockquote class="last"> |
361 | Block quotes are indented.</blockquote> |
362 | </td> |
363 | <td rowspan="2"><p class="first">Literal block, preceded by "::":</p> |
364 | <pre class="literal-block"> |
365 | Indented |
366 | </pre> |
367 | <p>or:</p> |
368 | <pre class="last literal-block"> |
369 | > Quoted |
370 | </pre> |
371 | </td> |
372 | </tr> |
373 | <tr><td><pre class="first last doctest-block"> |
374 | >>> print 'Doctest block' |
375 | Doctest block |
376 | </pre> |
377 | </td> |
378 | </tr> |
379 | <tr><td colspan="2"><div class="first last line-block"> |
380 | <div class="line">Line blocks preserve line breaks & indents. [new in 0.3.6]</div> |
381 | <div class="line-block"> |
382 | <div class="line">Useful for addresses, verse, and adornment-free lists; long |
383 | lines can be wrapped with continuation lines.</div> |
384 | </div> |
385 | </div> |
386 | </td> |
387 | </tr> |
388 | </tbody> |
389 | </table> |
390 | <p>Simple tables:</p> |
391 | <table border="1" class="docutils"> |
392 | <colgroup> |
393 | <col width="21%" /> |
394 | <col width="79%" /> |
395 | </colgroup> |
396 | <thead valign="bottom"> |
397 | <tr><th class="head">List Type</th> |
398 | <th class="head">Examples</th> |
399 | </tr> |
400 | </thead> |
401 | <tbody valign="top"> |
402 | <tr><td>Bullet list</td> |
403 | <td><ul class="first last simple"> |
404 | <li>items begin with "-", "+", or "*"</li> |
405 | </ul> |
406 | </td> |
407 | </tr> |
408 | <tr><td>Enumerated list</td> |
409 | <td><ol class="first last arabic simple"> |
410 | <li>items use any variation of "1.", "A)", and "(i)"</li> |
411 | <li>also auto-enumerated</li> |
412 | </ol> |
413 | </td> |
414 | </tr> |
415 | <tr><td>Definition list</td> |
416 | <td><dl class="first last docutils"> |
417 | <dt>Term is flush-left <span class="classifier-delimiter">:</span> <span class="classifier">optional classifier</span></dt> |
418 | <dd>Definition is indented, no blank line between</dd> |
419 | </dl> |
420 | </td> |
421 | </tr> |
422 | <tr><td>Field list</td> |
423 | <td><table class="first last docutils field-list" frame="void" rules="none"> |
424 | <col class="field-name" /> |
425 | <col class="field-body" /> |
426 | <tbody valign="top"> |
427 | <tr class="field"><th class="field-name">field name:</th><td class="field-body">field body</td> |
428 | </tr> |
429 | </tbody> |
430 | </table> |
431 | </td> |
432 | </tr> |
433 | <tr><td>Option list</td> |
434 | <td><table class="first last docutils option-list" frame="void" rules="none"> |
435 | <col class="option" /> |
436 | <col class="description" /> |
437 | <tbody valign="top"> |
438 | <tr><td class="option-group"> |
439 | <kbd><span class="option">-o</span></kbd></td> |
440 | <td>at least 2 spaces between option & description</td></tr> |
441 | </tbody> |
442 | </table> |
443 | </td> |
444 | </tr> |
445 | </tbody> |
446 | </table> |
447 | <table border="1" class="docutils"> |
448 | <colgroup> |
449 | <col width="21%" /> |
450 | <col width="79%" /> |
451 | </colgroup> |
452 | <thead valign="bottom"> |
453 | <tr><th class="head">Explicit Markup</th> |
454 | <th class="head">Examples (visible in the <a class="reference external" href="cheatsheet.txt">text source</a>)</th> |
455 | </tr> |
456 | </thead> |
457 | <tbody valign="top"> |
458 | <tr><td>Footnote</td> |
459 | <td><table class="first last docutils footnote" frame="void" id="id1" rules="none"> |
460 | <colgroup><col class="label" /><col /></colgroup> |
461 | <tbody valign="top"> |
462 | <tr><td class="label"><a class="fn-backref" href="#id3">[1]</a></td><td>Manually numbered or [#] auto-numbered |
463 | (even [#labelled]) or [*] auto-symbol</td></tr> |
464 | </tbody> |
465 | </table> |
466 | </td> |
467 | </tr> |
468 | <tr><td>Citation</td> |
469 | <td><table class="first last docutils citation" frame="void" id="cit2002" rules="none"> |
470 | <colgroup><col class="label" /><col /></colgroup> |
471 | <tbody valign="top"> |
472 | <tr><td class="label"><a class="fn-backref" href="#id4">[CIT2002]</a></td><td>A citation.</td></tr> |
473 | </tbody> |
474 | </table> |
475 | </td> |
476 | </tr> |
477 | <tr><td>Hyperlink Target</td> |
478 | <td></td> |
479 | </tr> |
480 | <tr id="internal-target"><td>Anonymous Target</td> |
481 | <td></td> |
482 | </tr> |
483 | <tr><td>Directive ("::")</td> |
484 | <td><img alt="images/biohazard.png" class="first last" src="images/biohazard.png" /> |
485 | </td> |
486 | </tr> |
487 | <tr><td>Substitution Def</td> |
488 | <td></td> |
489 | </tr> |
490 | <tr><td>Comment</td> |
491 | <td><!-- is anything else --> |
492 | </td> |
493 | </tr> |
494 | <tr><td>Empty Comment</td> |
495 | <td>(".." on a line by itself, with blank lines before & after, |
496 | used to separate indentation contexts)</td> |
497 | </tr> |
498 | </tbody> |
499 | </table> |
500 | </div> |
501 | <div class="section" id="inline-markup"> |
502 | <h1>Inline Markup</h1> |
503 | <p><em>emphasis</em>; <strong>strong emphasis</strong>; <cite>interpreted text</cite>; <em>interpreted text |
504 | with role</em>; <tt class="docutils literal">inline literal text</tt>; standalone hyperlink, |
505 | <a class="reference external" href="http://docutils.sourceforge.net">http://docutils.sourceforge.net</a>; named reference, <a class="reference external" href="http://docutils.sf.net/rst.html">reStructuredText</a>; |
506 | <a class="reference external" href="http://docutils.sf.net/docs/ref/rst/restructuredtext.html">anonymous reference</a>; footnote reference, <a class="footnote-reference" href="#id1" id="id3">[1]</a>; citation reference, |
507 | <a class="citation-reference" href="#cit2002" id="id4">[CIT2002]</a>; like an inline directive; <span class="target" id="inline-internal-target">inline internal target</span>.</p> |
508 | </div> |
509 | <div class="section" id="directive-quick-reference"> |
510 | <h1>Directive Quick Reference</h1> |
511 | <p>See <<a class="reference external" href="http://docutils.sf.net/docs/ref/rst/directives.html">http://docutils.sf.net/docs/ref/rst/directives.html</a>> for full info.</p> |
512 | <table border="1" class="docutils"> |
513 | <colgroup> |
514 | <col width="21%" /> |
515 | <col width="79%" /> |
516 | </colgroup> |
517 | <thead valign="bottom"> |
518 | <tr><th class="head">Directive Name</th> |
519 | <th class="head">Description (Docutils version added to, in [brackets])</th> |
520 | </tr> |
521 | </thead> |
522 | <tbody valign="top"> |
523 | <tr><td>attention</td> |
524 | <td>Specific admonition; also "caution", "danger", |
525 | "error", "hint", "important", "note", "tip", "warning"</td> |
526 | </tr> |
527 | <tr><td>admonition</td> |
528 | <td>Generic titled admonition: <tt class="docutils literal">.. admonition:: By The Way</tt></td> |
529 | </tr> |
530 | <tr><td>image</td> |
531 | <td><tt class="docutils literal">.. image:: picture.png</tt>; many options possible</td> |
532 | </tr> |
533 | <tr><td>figure</td> |
534 | <td>Like "image", but with optional caption and legend</td> |
535 | </tr> |
536 | <tr><td>topic</td> |
537 | <td><tt class="docutils literal">.. topic:: Title</tt>; like a mini section</td> |
538 | </tr> |
539 | <tr><td>sidebar</td> |
540 | <td><tt class="docutils literal">.. sidebar:: Title</tt>; like a mini parallel document</td> |
541 | </tr> |
542 | <tr><td>parsed-literal</td> |
543 | <td>A literal block with parsed inline markup</td> |
544 | </tr> |
545 | <tr><td>rubric</td> |
546 | <td><tt class="docutils literal">.. rubric:: Informal Heading</tt></td> |
547 | </tr> |
548 | <tr><td>epigraph</td> |
549 | <td>Block quote with class="epigraph"</td> |
550 | </tr> |
551 | <tr><td>highlights</td> |
552 | <td>Block quote with class="highlights"</td> |
553 | </tr> |
554 | <tr><td>pull-quote</td> |
555 | <td>Block quote with class="pull-quote"</td> |
556 | </tr> |
557 | <tr><td>compound</td> |
558 | <td>Compound paragraphs [0.3.6]</td> |
559 | </tr> |
560 | <tr><td>container</td> |
561 | <td>Generic block-level container element [0.3.10]</td> |
562 | </tr> |
563 | <tr><td>table</td> |
564 | <td>Create a titled table [0.3.1]</td> |
565 | </tr> |
566 | <tr><td>list-table</td> |
567 | <td>Create a table from a uniform two-level bullet list [0.3.8]</td> |
568 | </tr> |
569 | <tr><td>csv-table</td> |
570 | <td>Create a table from CSV data [0.3.4]</td> |
571 | </tr> |
572 | <tr><td>contents</td> |
573 | <td>Generate a table of contents</td> |
574 | </tr> |
575 | <tr><td>sectnum</td> |
576 | <td>Automatically number sections, subsections, etc.</td> |
577 | </tr> |
578 | <tr><td>header, footer</td> |
579 | <td>Create document decorations [0.3.8]</td> |
580 | </tr> |
581 | <tr><td>target-notes</td> |
582 | <td>Create an explicit footnote for each external target</td> |
583 | </tr> |
584 | <tr><td>math</td> |
585 | <td>Mathematical notation (input in LaTeX format)</td> |
586 | </tr> |
587 | <tr><td>meta</td> |
588 | <td>HTML-specific metadata</td> |
589 | </tr> |
590 | <tr><td>include</td> |
591 | <td>Read an external reST file as if it were inline</td> |
592 | </tr> |
593 | <tr><td>raw</td> |
594 | <td>Non-reST data passed untouched to the Writer</td> |
595 | </tr> |
596 | <tr><td>replace</td> |
597 | <td>Replacement text for substitution definitions</td> |
598 | </tr> |
599 | <tr><td>unicode</td> |
600 | <td>Unicode character code conversion for substitution defs</td> |
601 | </tr> |
602 | <tr><td>date</td> |
603 | <td>Generates today's date; for substitution defs</td> |
604 | </tr> |
605 | <tr><td>class</td> |
606 | <td>Set a "class" attribute on the next element</td> |
607 | </tr> |
608 | <tr><td>role</td> |
609 | <td>Create a custom interpreted text role [0.3.2]</td> |
610 | </tr> |
611 | <tr><td>default-role</td> |
612 | <td>Set the default interpreted text role [0.3.10]</td> |
613 | </tr> |
614 | <tr><td>title</td> |
615 | <td>Set the metadata document title [0.3.10]</td> |
616 | </tr> |
617 | </tbody> |
618 | </table> |
619 | </div> |
620 | <div class="section" id="interpreted-text-role-quick-reference"> |
621 | <h1>Interpreted Text Role Quick Reference</h1> |
622 | <p>See <<a class="reference external" href="http://docutils.sf.net/docs/ref/rst/roles.html">http://docutils.sf.net/docs/ref/rst/roles.html</a>> for full info.</p> |
623 | <table border="1" class="docutils"> |
624 | <colgroup> |
625 | <col width="21%" /> |
626 | <col width="79%" /> |
627 | </colgroup> |
628 | <thead valign="bottom"> |
629 | <tr><th class="head">Role Name</th> |
630 | <th class="head">Description</th> |
631 | </tr> |
632 | </thead> |
633 | <tbody valign="top"> |
634 | <tr><td>emphasis</td> |
635 | <td>Equivalent to <em>emphasis</em></td> |
636 | </tr> |
637 | <tr><td>literal</td> |
638 | <td>Equivalent to <tt class="docutils literal">literal</tt> but processes backslash escapes</td> |
639 | </tr> |
640 | <tr><td>math</td> |
641 | <td>Mathematical notation (input in LaTeX format)</td> |
642 | </tr> |
643 | <tr><td>PEP</td> |
644 | <td>Reference to a numbered Python Enhancement Proposal</td> |
645 | </tr> |
646 | <tr><td>RFC</td> |
647 | <td>Reference to a numbered Internet Request For Comments</td> |
648 | </tr> |
649 | <tr><td>raw</td> |
650 | <td>For non-reST data; cannot be used directly (see docs) [0.3.6]</td> |
651 | </tr> |
652 | <tr><td>strong</td> |
653 | <td>Equivalent to <strong>strong</strong></td> |
654 | </tr> |
655 | <tr><td>sub</td> |
656 | <td>Subscript</td> |
657 | </tr> |
658 | <tr><td>sup</td> |
659 | <td>Superscript</td> |
660 | </tr> |
661 | <tr><td>title</td> |
662 | <td>Title reference (book, etc.); standard default role</td> |
663 | </tr> |
664 | </tbody> |
665 | </table> |
666 | </div> |
667 | </div> |
668 | </body> |
669 | </html> |