Support \eqref and \label
See original GitHub issueBefore requesting a feature, please search for existing issues.
Is your feature request related to a problem? Please describe.
I am trying to migrate from Mathjax to Katex, however, \eqref and \label are not supported for the moment. Any roadmap on this?
Describe the solution you’d like:
Support \eqref and \lable for equation reference
Link to or name of a (La)TeX package that provides the same feature: KaTeX’s general goal is to render as LaTeX does.
Describe alternatives you’ve considered: A clear and concise description of any alternative solutions or features you’ve considered.
Additional context: Add any other context or screenshots about the feature request here.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:25
- Comments:15 (6 by maintainers)
Top Results From Across the Web
Using \eqref and labelling an equation in LaTex - TeX
It is a bad idea to use labels like eq:1 as that may make a human reader think that it is equation 1....
Read more >LaTeX/Labels and Cross-referencing - Wikibooks
Help and Recommendations. FAQ · Tips and Tricks. Appendices. Authors · Links · Package Reference · Sample LaTeX documents · Index · Command...
Read more >Cross referencing sections, equations and floats - Overleaf
Again, the commands \label and \ref are used for references. The label is set after the \section statement, i.e. the \label command should...
Read more >LaTeX Help by Example Lesson 2 Tag and Label displayed ...
Usually, a displayed equation's tag appears in the PDF file on the right ... By using the label+eqref, Latex will automatically make the...
Read more >How to suppress equation numbers in Franklin?
It seems that Franklin.jl doesn't currently support the “*” form of math environments, ... x = 2 $$ } $$ x = 3...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Inspired by this issue: https://github.com/falgon/roki-web/issues/34 We can use KaTeX’s marco command to implement
\eqref&\labelfunction by\href&\htmlIdcommandATTENTION:
\href&\htmlIdcommand are disabled by default, we must add them intotrustoptionUPDATE: The previous trust setting code is wrong, as @nschloe said,
trustonly acceptbooleanorfunction. We can usefunctiontype to allow specific commands. Thank nschloe very much!KaTeX option:
example:
Used in the same way as LaTeX or MathJax.
@kevinbarabash Neat idea. One challenge is that labels and refs will generally span multiple equations, so this would need to be done at the autorender level. But maybe if we work out the interface for how autorender could do it, we could get a more general API…