Skip to content
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

\text fails with \ref, \eqref #2528

Closed
bdtc opened this issue Sep 8, 2020 · 1 comment
Closed

\text fails with \ref, \eqref #2528

bdtc opened this issue Sep 8, 2020 · 1 comment
Labels
Accepted Issue has been reproduced by MathJax team Fixed Test Needed v3 v3.1
Milestone

Comments

@bdtc
Copy link

bdtc commented Sep 8, 2020

Issue Summary

\text fails with \ref and \eqref.

Technical details:

Latest MathJax 3, Firefox.

Supporting information:

<!DOCTYPE html>
<html lang="en-US">

<head>

<meta charset="UTF-8" />

<script>
MathJax = {
    loader: {
         load: ['[tex]/tagformat', '[tex]/textmacros'],
    },
    tex: {
         packages: {'[+]': ['tagformat', 'textmacros']},
         tags: "ams",
    }
}
</script>

<script
         id="MathJax-script"
         src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml.js"
></script>

</head>


<body>


<h1>First section</h1>

<p>

\begin{equation}
y=mx+b \label {eq-thisequation}
\end{equation}

</p>


<h1>Text macros</h1>


<p>
eqref in math text: \(\text{\eqref {eq-thisequation}}\)
</p>

<p>
eqref in math: \(\eqref {eq-thisequation}\)
</p>

<p>
ref in math text: \(\text{\ref {eq-thisequation}}\)
</p>

<p>
ref in math: \(\ref {eq-thisequation}\)
</p>

</body>
</html>
@dpvc dpvc added Accepted Issue has been reproduced by MathJax team Feature Request v3 labels Sep 8, 2020
@dpvc
Copy link
Member

dpvc commented Sep 8, 2020

Thanks for pointing this out. These should be made active in the textmacros.

In the meantime, you can use \(\text{$\ref{eq-thisequation}$}\) as a workaround.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Accepted Issue has been reproduced by MathJax team Fixed Test Needed v3 v3.1
Projects
None yet
Development

No branches or pull requests

2 participants