Image/Table numbering and labels #4673
Unanswered
chrisdburr
asked this question in
Q&A
Replies: 2 comments 1 reply
-
This is an excellent use case for a Markdown extension or MkDocs plugin. Have you checked the MkDocs plugin Wiki? |
Beta Was this translation helpful? Give feedback.
1 reply
-
Some really great looking plugins, but none that meet the desired outcome, unfortunately. Some are in the right ballpark (e.g. autorefs), but nothing I can see that would do both automatic numbering and also allow for cross-referencing. If anyone has found a workaround for this, I’d appreciate any suggestions. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Apologies if this is in the documentation already, it's possible I am not searching for the correct terms, and have also struggled to find anything on MK Docs in general.
Desired Outcome
To be able to automatically number images and tables, and then have a label that can be used to cross-reference the element in the rest of the docs—either natively or through a plugin.
Example
Let's say I have an image (or figure), which is added as a figure, as follows:
Is it possible to do the following:
a) automatically number this figure, such that the caption reads 'Figure X: A Caption for the image'
b) cross-reference the figure in the documents, using a label such as
See @fig-label for details.
Beta Was this translation helpful? Give feedback.
All reactions