The following outlines the set of suggested format to be used when making
additions to the document. The use of consistent macros and labels helps
improve the overall readability of the document and assists in longer term
maintenance.
The format is to a single line of text, underlined by non-ASCII characters.
Numbering is disabled. Use concise text.
The length of the underline must be at least as long as the
line of text
The order of the non-ASCII characters denotes chapters / sections /
subsections / etc.
In the pmixexamples docs, the sequence of underline characters we use are:
Chapter=======
Section-------
Subsection^^^^^^^^^^
Subsubsection+++++++++++++
Meaning: underlines made of = denotes chapters, underlines
made of - denotes sections, underlines made of ^ denotes
subsections, and underlines made of + denote subsubsections.
A hierarchical naming scheme is used for labels to help reflect the location
of content.
General format:
.._pmixexamples:<A>:<X>:<Y>:<Z>:
For example, this Authors Guide lives under the /misc directory and
has a top-level label that provides a logical namesapce for the document.
.._pmixexamples:other:misc:author-guide:
All labels (sub-sections, figures, tables, etc.) in this file will have
the same namespace and will have this same prefix. For example, the dummy
example figure has the label
fig:pmixexamples:other:misc:author-guide:dummy
Note
We recommend using a short prefix for Figures sand Tables to aid recognition
of the kind of label, e.g., fig: for figures, tab: for tables.
Format figures with a fixed pixel width between 400px and 800px, as rendering
them relatively to the window size may show them with abnormal sizes and
resolutions. Make sure that images have reasonable enough resolutions, e.g.,
100 dpi or larger. Figures should be centered.
General format:
:ref:`label` # Link text is (full) caption
:ref:`Short string <label>` # Link text is "Short string"
..figure:: path/to/figure.png
:name: label
:align: center
:width: 400px
Full caption
Note
Numbered cross-references would use :numref:`label`, but
are generally avoided in the docs.
Cross-reference to Figures in the local document by number.
Example:
In :ref:`Dummy <fig:pmixexamples:other:misc:author-guide:dummy>` we have a dummy figure.
In :ref:`fig:pmixexamples:other:misc:author-guide:dummy` we have a dummy figure.
..figure:: images/dummyfig.png
:name: fig:pmixexamples:other:misc:author-guide:dummy
:align: center
:width: 400px
A caption for my figure that is sort of long.
You would reference the term Sphinx like that and here is a link to a term
while showing text in the topic including the term in angle brackets
reStructuredText.