-
Notifications
You must be signed in to change notification settings - Fork 95
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
[latex_formula_renderer] #276
Comments
No, it doesn't. Formula numbering is something the plugins using this plugin (it only provides infrastructure for other plugins, nothing you can directly use as an end-user!) must do themselves. |
@bk322: Does this answer your question? Do you need more information? Or are interested in having number/label support in the plugin? |
@felixfontein yes, it answers my question. I'm interested in having number/label support for equations on the ReST level. You say it should not be implemented on the level of this plugin. I believe plugins which support the numbering does not exist yet. If you know some -- I'd be grateful for links. |
@bk322 I could add those roles as part of our sphinx compatibility plugins. |
@ralsina: Numbering the formulas requires state between different invocations of the same role in the same document. On the other hand, labeling is harder: this probably has to be a post-processing step after parsing the document (and before rendering the document to HTML), since label references can also appear before the label is defined, and has to be updated with the correct number. |
I am going to take a shot during lunch right now. |
Done in 84ecbad |
Of course I have no idea what Sphinx actually does with that syntax but what my version does is:
|
Closing since it seems nobody needs to do anything else? |
@ralsina In Sphinx, the result is supposed to look like in these screenshots: sphinx-doc/sphinx#2122 (comment) How does it look like in your code? I don't see where/how the number is generated or inserted. |
@felixfontein number is not visible, it just adds an anchor with whatever is put in I don't really care about these things being visually identical to sphinx, mostly about them doing sensible things and accepting the same input. Adding a displayed numbered label is trivial if it's really important. |
Does it support formula numbering and referencing numbered formula? For example sphinx supports
:label: eqX
and:eq:
http://www.sphinx-doc.org/en/master/ext/math.html#role-eqeqX
The text was updated successfully, but these errors were encountered: