You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[downloadnb-comparison] different numbering system for math tags and their citations in contexts #66
Activity
mmcky commentedon Feb 2, 2021
Does the new numbering system match the
htmlversion?shlff commentedon Feb 2, 2021
Thanks @mmcky . In the
MYST-version notebooks (please see the right side of the screenshot above),MYST-versionhtmlfiles (e.g., the(3.2)as I circled),MYST-versionhtmlfiles (e.g., the(2)as I circled).mmcky commentedon Feb 8, 2021
ohh - thanks @shlff I see the real issue here now.
I suspect that
sphinx-tojupyteris using its ownnumberingwhen writing\tag{}as we did injupinxrather than using the internalsphinxvalues.mmcky commentedon Feb 25, 2021
@AakashGfude just trying to replicate the
tagnumbering that must be done bysphinx-multitoc-numbering.Can you point me to where these values for
refidare constructed. Are they part of a transform and you generate these nested numbers?> /Users/matthewmckay/repos-collab/sphinx-tojupyter/sphinx_tojupyter/writers/translate_all.py(321)visit_math_block() -> referenceBuilder = " \\tag{" + str(node["number"]) + "}\n" (Pdb) node.pformat() '<math_block docname="numpy" ids="equation-np-polynom" label="np_polynom" nowrap="False" number="1" xml:space="preserve">\n p(x) = a_0 + a_1 x + a_2 x^2 + \\cdots a_N x^N = \\sum_{n=0}^N a_n x^n\n' (Pdb) c > /Users/matthewmckay/repos-collab/sphinx-tojupyter/sphinx_tojupyter/writers/translate_all.py(612)depart_reference() -> refid = node["refid"] (Pdb) node.pformat() '<reference internal="True" refid="equation-np-polynom">\n (9.1)\n'mmcky commentedon Feb 25, 2021
Just wondering where I might be able to get the
chapteror value9in the above example from in thesphinxconfigurationmmcky commentedon Feb 26, 2021
@shlff this build in PR #43 should be using the latest
sphinx-tojupyter.https://6038cc9d13761dc1d83bf515--nostalgic-wright-5fa355.netlify.app/intro.html
Can you check this issue and close it if resolved?
shlff commentedon Mar 10, 2021
Great thanks for your hard-working @mmcky and @AakashGfude .
I can confirm that this issue has been solved and will close this issue.