Roles

Roles

Sphinx text roles can be used to explicitly specify what kind of text is required:

:abbr:`LIFO (last-in, first-out)`

LIFO

:math:`a^2 + b^2 = c^2`

\(a^2 + b^2 = c^2\)

:kbd:`C-x C-f`

C-x C-f

:menuselection:`Start --> Programs`

Start ‣ Programs

:code:`1 + 2`

1 + 2

:any:`tables`

Tables

:regexp:`\d{4}`

d{4}

:file:`tables.rst`

tables.rst

:guilabel:`&Cancel`

Cancel

:command:`rm`

rm

:dfn:`something`

something

:t:`Design Patterns`

Design Patterns

:RFC:`2822`

RFC 2822

:emphasis:`text`

text

:literal:`text`

text

:strong:`text`

text

:subscript:`subscripted`

subscripted

:superscript:`superscripted`

superscripted

:mailheader:`Content-Type`

Content-Type