1
0
Fork 0

More syntax to my ReST cheat sheet

pub/systemd-gripes
LEdoian 1 year ago
parent 35b4720c5b
commit 41d2ae70cf

16
TIPS

@ -111,4 +111,20 @@ Tables:
"LEdoian", "young", "Python" "LEdoian", "young", "Python"
"Knuth", "older", "CWEB (IIRC)" "Knuth", "older", "CWEB (IIRC)"
Images and Figures:
- Do not use .. image::, because that makes no wrapping element, using which we could center the image
- Usage::
.. figure:: {static}/images/some/path.ext
:width: 100%
:alt: Hello world
This is a caption.
- Of course, using just the path is sufficient.
Footnotes:
This is a text with an autonumberred[#fnlabel]_ footnote.
.. [#fnlabel] And this is the text of the footnote, whereever I place it.
`reST spec <https://docutils.sourceforge.io/docs/ref/rst/restructuredtext.html#anonymous-hyperlinks>`__ `reST spec <https://docutils.sourceforge.io/docs/ref/rst/restructuredtext.html#anonymous-hyperlinks>`__

Loading…
Cancel
Save