-
Notifications
You must be signed in to change notification settings - Fork 3
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
Messed up with Figure numbering #14
Labels
bug
Something isn't working
Comments
Around this line
|
xxks-kkk
added a commit
that referenced
this issue
Jan 3, 2022
** Why is this change required? ** When numfig is set to true, figure directives are automatically numbered. However, before this fix, the caption of figures is overriden and the automatically numbering is gone. This commit fixed the issue (also listed on github #14). ** How does this change solve the issue? ** Instead of using nodes.caption directly (also with override when add_node, which causes bug), we create a subclass pseudocodeCaption and use it instead. ** Does this commit cause any expected behavior to change? If so, what? ** ** Issue: ** ** Design Docs: **
xxks-kkk
added a commit
that referenced
this issue
Jan 3, 2022
** Why is this change required? ** When numfig is set to true, figure directives are automatically numbered. However, before this fix, the caption of figures is overriden and the automatically numbering is gone. This commit fixed the issue (also listed on github #14). ** How does this change solve the issue? ** Instead of using nodes.caption directly (also with override when add_node, which causes bug), we create a subclass pseudocodeCaption and use it instead. ** Does this commit cause any expected behavior to change? If so, what? ** ** Issue: ** ** Design Docs: **
xxks-kkk
added a commit
that referenced
this issue
Jan 3, 2022
** Why is this change required? ** When numfig is set to true, figure directives are automatically numbered. However, before this fix, the caption of figures is overriden and the automatically numbering is gone. This commit fixed the issue (also listed on github #14). ** How does this change solve the issue? ** Instead of using nodes.caption directly (also with override when add_node, which causes bug), we create a subclass pseudocodeCaption and use it instead. ** Does this commit cause any expected behavior to change? If so, what? ** ** Issue: ** ** Design Docs: **
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
include
sphinxcontrib.pseudocode
will mess up thefigure
directive numbering. As an example, before using thesphinxcontrib.pseudocode
inconf.py
, we haveBut, after using the
sphinxcontrib.pseudocode
inconf.py
, we haveThe text was updated successfully, but these errors were encountered: