Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linking to subheadings #123

Open
Pbellive opened this issue Sep 30, 2016 · 1 comment
Open

Linking to subheadings #123

Pbellive opened this issue Sep 30, 2016 · 1 comment
Assignees

Comments

@Pbellive
Copy link
Contributor

Is this possible? I know how to link to an rst file but how do I link to any heading?

ideally I could do something like

:ref:`title text <rst_file:subheading>` 

Unfortunately that doesn't work. Any ideas @lheagy @sgkang @fourndo? Searching the documentation has not helped but then again it's getting late. Perhaps the solution will emerge in the morning.

Patrick

@lheagy
Copy link
Member

lheagy commented Sep 30, 2016

above the heading, an anchor needs to be added, eg:

.. _seismic_elastic_deformation:

Elastic Deformation
--------------------

Then, anywhere in the text, the section can be referenced as

:ref:`seismic_elastic_deformation`

which will link the text Elastic Deformation or

:ref:`Seismic Elastic Deformation <seismic_elastic_deformation>`

which will link the text Seismic Elastic Deformation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants