Skip to content

Allow numbering custom elements as figure/table/block #1858

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

Closed
wants to merge 5 commits into from

Conversation

Jellby
Copy link
Contributor

@Jellby Jellby commented Apr 21, 2015

Add the option to have other elements (added by an extension) numbered as figure, table or code block, by specifying the attribute "figtype".

@shimizukawa shimizukawa added this to the 1.4 milestone Jul 11, 2015
tk0miya added a commit to tk0miya/sphinx that referenced this pull request Feb 13, 2016
tk0miya added a commit to tk0miya/sphinx that referenced this pull request Feb 13, 2016
tk0miya added a commit to tk0miya/sphinx that referenced this pull request Feb 14, 2016
tk0miya added a commit to tk0miya/sphinx that referenced this pull request Feb 14, 2016
tk0miya added a commit to tk0miya/sphinx that referenced this pull request Feb 14, 2016
@tk0miya tk0miya closed this in 2ec60d5 Feb 14, 2016
@tk0miya
Copy link
Member

tk0miya commented Feb 14, 2016

Now, we introduce new API Sphinx.add_enumerated_node to support this.
More details, please refer #2317.

Anyway, your pull request has become of the wake of the feature.
Thank you for great proposal.

@eudoxos
Copy link

eudoxos commented Oct 13, 2016

Coming back here, I see add_enumerable_node was merged in 1.4; how is it supposed to be used? It is not documented at all from the user perspective.

@paternal
Copy link

Coming back here, I see add_enumerable_node was merged in 1.4; how is it supposed to be used? It is not documented at all from the user perspective.

@eudoxos: I managed to use it in sphinxcontrib-proof. You can see it in action there.

Creating a dummy extension to show how to use add_enumerable_node() (and documenting it) is on my TODO list, but with a low priority. So if you, random passerby, want to do it, go ahead!

@paternal
Copy link

I wrote such a dummy extension. I offered to the sphinx team to adopt it as a part of @sphinx-contrib (see #5567).

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 25, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants