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

Automatic equation numbering when referencing with :ref: #127

Open
benRenard opened this issue Jan 17, 2024 · 0 comments
Open

Automatic equation numbering when referencing with :ref: #127

benRenard opened this issue Jan 17, 2024 · 0 comments
Labels
documentation Improvements or additions to documentation enhancement New feature or request

Comments

@benRenard
Copy link
Collaborator

In the Sphynx doc, the equation number in references to equations is hard-coded, e.g. :
The likelihood function in :ref:`equation 3 <math_num_documentation.bayesian_estimation.likelihood>`

It would be nice to be able to use automatic numbering, e.g. something that could look like:
The likelihood function in :ref:`equation %s <math_num_documentation.bayesian_estimation.likelihood>`

Apparently it's doable by playing with the numref/numfig/etc. options in conf.py.

@benRenard benRenard added documentation Improvements or additions to documentation enhancement New feature or request labels Jan 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant