Renderer support
| Package | MathJax | KaTeX | XeTeX |
|---|---|---|---|
ams | MathJax: Full | KaTeX: None | XeTeX: Full |
textmacros | MathJax: Full | KaTeX: None | XeTeX: None |
Syntax#
\eqrefm:N{\cs}control sequenceArgspec m:N — one mandatory argument. Same argspec in ams and textmacros. Reading argspecs
Examples#
Package variants#
| Package | Signature | Allowed mode | Notes |
|---|---|---|---|
ams | m:N | math | Referencing a numbered equation by label, typically producing a parenthesized equation number in AMS math input. |
textmacros | m:N | text | Used in prose to cite an equation label with AMS-style parenthesized formatting, e.g. '(3.2)'. |
In TeXForm#
TeXForm parses this entry as prefix syntax; the package determines its argument specification.
Equivalent forms#
(\ref{#1})approximateDefault tag formatting makes this behave like a parenthesized
\ref, but MathJax's tagformat extension can customize the reference formatting.
See also#
\refbase
Test cases#
| Input | Case | MathJax | KaTeX | XeTeX |
|---|---|---|---|---|
\eqref{a} | Positive · baseline | Pass | Fail | Pass |
\eqref a | Positive · bare[0] | Pass | Fail | Pass |
\eqref{\alpha} | Negative · neg:N[0] | Pass | Fail | Fail |
| Input | Case | MathJax | KaTeX | XeTeX |
|---|---|---|---|---|
\eqref{a} | Positive · baseline | Pass | Fail | Fail |
\eqref a | Positive · bare[0] | Pass | Fail | Fail |
\eqref{\alpha} | Negative · neg:N[0] | Pass | Fail | Fail |