# Adding support for equation labelling and referencing

**URL:** https://meta.discourse.org/t/adding-support-for-equation-labelling-and-referencing/253661
**Category:** Feature
**Tags:** math, completed
**Created:** [June 13, 2022, 10:38pm UTC](https://meta.discourse.org/t/adding-support-for-equation-labelling-and-referencing/253661 "2022-06-13T22:38:23Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![nordize](https://avatars.discourse-cdn.com/v4/letter/n/c68b51/32.png) [@nordize](https://meta.discourse.org/u/nordize)
#### Post date: [June 13, 2022, 10:38pm UTC](https://meta.discourse.org/t/adding-support-for-equation-labelling-and-referencing/253661/1 "2022-06-13T22:38:23Z")

</div>

Continuing my PR series adding features to the Katex implementation, I added support for equation labelling and referencing (more Mathjax compatibility):

[https://github.com/discourse/discourse-math/pull/53](https://github.com/discourse/discourse-math/pull/53)

I enabled it in the Discourse code too as seen in the commit. This adds support for `\tag, \label, \ref, \eqref` so equations can be labeled and referenced (references are clickable too). This is another feature that Katex disables by default. Enabling it brings the Katex implementation in DIscourse more inline with Mathjax. My previous PR added support for persistent macros.

Tested and working in latest Discourse stable.

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [February 1, 2023, 11:06am UTC](https://meta.discourse.org/t/adding-support-for-equation-labelling-and-referencing/253661/2 "2023-02-01T11:06:30Z")

</div>


