References ========== Cross-references ~~~~~~~~~~~~~~~~ To cross-reference to arbitrary locations within one document, use the ``ref`` role. Reference target names need to start with an underscore. For example, ``.. _example:``. However, the reference itself should not have the underscore preceding the reference. For example, ``example``. For more information on referencing, see `Internal Hyperlink Targets `_. **Input** .. code-block:: none .. _cg_titles: Titles ~~~~~~ This is the section we want to reference to. ... The following - :ref:`cg_titles` - generates a link to the section with the defined label using this section heading as a link title. A link label and a reference can be defined in separate source files, but within one directory. Otherwise, use the external linking. **Output** ... The following - :ref:`cg_titles` - generates a link to the section with the defined label using this section heading as a link title. A link label and a reference can be defined in separate source files, but within one directory. Otherwise, use the external linking. Reference works only if it points to heading or section. For making link to any location you must give your reference an explicit title, using this syntax: ``:ref:`Link title `.`` **Input** .. code-block:: none .. _label used in referencing file: **Input** This is the section we want to reference to. ... Here is a link to :ref:`that label located in another file