# KaTeX titles

**URL:** https://meta.discourse.org/t/katex-titles/403702
**Category:** Theme component
**Created:** [May 23, 2026, 7:50pm UTC](https://meta.discourse.org/t/katex-titles/403702 "2026-05-23T19:50:46Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![mcmcclur](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mcmcclur/32/115456_2.png) [@mcmcclur](https://meta.discourse.org/u/mcmcclur)
#### Post date: [May 23, 2026, 7:50pm UTC](https://meta.discourse.org/t/katex-titles/403702/1 "2026-05-23T19:50:46Z")

</div>

There have been several requests here on Meta for the Math Plugin to support the typesetting of titles. [Here is just one example](https://meta.discourse.org/t/topic-titles-should-evaluate-mathjax/143762). As Falco points out in [his response](https://meta.discourse.org/t/topic-titles-should-evaluate-mathjax/143762/2), though:

> We don’t support most formatting on titles, even simple ones like bold and italic.  
> For equations they can easily break the post height…

I fully understand and support Discourse’s preference here. As the maintainer of a small, purely mathematical forum, though, I too would like to be able to mathematically typeset titles. So I wrote this little theme component to do so:

> **[GitHub - mcmcclur/discourse-katex-titles: Uses KaTeX to typeset mathematics within titles](https://github.com/mcmcclur/discourse-katex-titles)**
>
> Uses KaTeX to typeset mathematics within titles

## Notes

As the name implies, this component uses KaTeX to typeset the titles. I was unable to get MathJax working properly, evidently due to a conflict with the version of MathJax in the Math Plugin. There’s an add-mathjax branch, if someone else would like to give that a go.

Since it’s a theme component, as opposed to a plugin, my impression is that admins of Discourse hosted sites should be able to use it as well.
