jupyter-book
jupyter-book copied to clipboard
Overflow of equation using `{math}` but not $$ $$
Describe the bug
Context
In my current work I have been using $$ ... \tag{}\label{} $$ in order to refer an equation through $\eqref{}$. However, this produces the text with math-looking layout. So, I switched to {math} in order to use {eq} when refering but now, it seems that the tag from {math} produces overflow inside the equation:

Expectation I expect overflow not to occur. Using $$ ... \tag{}\label{} $$ produces no overflow:

But, as you can see, this method makes the tag math-looking.
Question
Is there a way to make sure no overflow occurs using {math}? Or, is it possible to refer to an equation using $$ ... \tag{}\label{} $$ in some other way which does not make the reference-text math-looking (like $\eqref{}$ does)?
Reproduce the bug
- Make a markdown-file.
- Write some equation inside
{math}and add:label: something
List your environment
No response
Or, is it possible to refer to an equation using $$ ... \tag{}\label{} $$ in some other way which does not make the reference-text math-looking (like $\eqref{}$ does)?
@mscharling have you tried using the eq label syntax that is available for $$ which doesn't use latex labels and tags.
$$
<math>
$$ (label)
which can be references as a standard label to the math equation using:
{eq}`label`
https://jupyterbook.org/en/stable/content/math.html#numbering-equations
@mmcky Yeah, I tried that already. Same problem as when using {math} :/