No need to click on an a tag to see the equation, just hover on any <a>
tag created using \eqref{label}
and that's it!
Check https://mauriciopoppe.com/notes/mathematics/calculus/derivative/ for a live demo
- index.html (the configuration I use for MathJax which enables equation numbers, see http://cdn.mathjax.org/mathjax/latest/test/sample-eqnum.html for more examples) (MathJaxV2)
- mathjaxPreview.js the scripts which enables the preview (MathJax V2)
- mathjaxPreviewV3.js the same script but with support for MathJax V3
This is brilliant.
But one thing that might be helpful for people trying to use this snippet of code: make sure to add
mathjaxPreview
script outside<body></body>
, otherwise the.on()
event listener would mess up.Great Gist.