# Enable discourse-math plugin for rendering LaTeX-style equations

**URL:** <https://racket.discourse.group/t/enable-discourse-math-plugin-for-rendering-latex-style-equations/1372>\
**Category:** Site Feedback\
**Created:** [October 11, 2022, 4:44pm UTC](https://racket.discourse.group/t/enable-discourse-math-plugin-for-rendering-latex-style-equations/1372 "2022-10-11T16:44:44Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![GregVernon](https://yyz2.discourse-cdn.com/free1/user_avatar/racket.discourse.group/gregvernon/32/751_2.png) [@GregVernon](https://racket.discourse.group/u/GregVernon)\
**Post date:** [October 11, 2022, 4:44pm UTC](https://racket.discourse.group/t/enable-discourse-math-plugin-for-rendering-latex-style-equations/1372/1 "2022-10-11T16:44:44Z")

</div>

There's an official Discourse plugin (link below) that would allow for users to post LaTeX style equations and have them rendered. As far as I can tell, this plugin is not enabled on this Discourse (test: $x^2$ ). Would have made [my first post](https://racket.discourse.group/t/plotting-a-lambda-that-returns-a-math-matrix-vector/1365) look a bit cleaner.

For example this `$\mathbf{N}^p(\xi) = [N_0^p(\xi), N_1^p(\xi), \dots, N_p^p(\xi)]^T$` would have rendered as

 ![image](https://global.discourse-cdn.com/free1/uploads/racket/original/1X/b3c71ff61ddd9c11a81941d063beae337570fbe2.png)

but nicer (e.g., no background, same size as text).

I would have uploaded the equations as images, as I've done on this post, but as a new user I could only upload a single image.

> **[Discourse Math](https://meta.discourse.org/t/discourse-math/65770)**
>
> :discourse2: Summary Discourse Math uses MathJax (default) or KaTeX to render maths in your Discourse forum. 🛠 Repository Link https://github.com/discourse/discourse-math 📖 Install Guide How to install plugins in Discourse Features You...

---

<div class="post-metadata">

**Author:** ![soegaard](https://yyz2.discourse-cdn.com/free1/user_avatar/racket.discourse.group/soegaard/32/19_2.png) [@soegaard](https://racket.discourse.group/u/soegaard)\
**Post date:** [October 11, 2022, 5:52pm UTC](https://racket.discourse.group/t/enable-discourse-math-plugin-for-rendering-latex-style-equations/1372/2 "2022-10-11T17:52:42Z")

</div>

@spdegabrielle  
This sounds like a good idea.

---

<div class="post-metadata">

**Author:** ![jbclements](https://yyz2.discourse-cdn.com/free1/user_avatar/racket.discourse.group/jbclements/32/11_2.png) [@jbclements](https://racket.discourse.group/u/jbclements)\
**Post date:** [October 11, 2022, 5:53pm UTC](https://racket.discourse.group/t/enable-discourse-math-plugin-for-rendering-latex-style-equations/1372/3 "2022-10-11T17:53:56Z")

</div>

Good idea. Turns out this is a standard, "supported" plugin for discourse, so I've enabled. it. There were several options that I could select, and I have no particular opinion about any of them. Here's a screenshot, in case anyone thinks that these other options should be enabled.

 ![Screen Shot 2022-10-11 at 10.51.19 AM](https://global.discourse-cdn.com/free1/uploads/racket/original/1X/a8c1fdf77b4e43214a23063e0d4a2debad310c34.png)

---

<div class="post-metadata">

**Author:** ![jbclements](https://yyz2.discourse-cdn.com/free1/user_avatar/racket.discourse.group/jbclements/32/11_2.png) [@jbclements](https://racket.discourse.group/u/jbclements)\
**Post date:** [October 11, 2022, 5:54pm UTC](https://racket.discourse.group/t/enable-discourse-math-plugin-for-rendering-latex-style-equations/1372/4 "2022-10-11T17:54:29Z")

</div>

abc $$x = e^{i \omega t}$$ def

---

<div class="post-metadata">

**Author:** ![jbclements](https://yyz2.discourse-cdn.com/free1/user_avatar/racket.discourse.group/jbclements/32/11_2.png) [@jbclements](https://racket.discourse.group/u/jbclements)\
**Post date:** [October 11, 2022, 5:54pm UTC](https://racket.discourse.group/t/enable-discourse-math-plugin-for-rendering-latex-style-equations/1372/5 "2022-10-11T17:54:44Z")

</div>

Hmm...

maybe it wasn't enabled?

---

<div class="post-metadata">

**Author:** ![jbclements](https://yyz2.discourse-cdn.com/free1/user_avatar/racket.discourse.group/jbclements/32/11_2.png) [@jbclements](https://racket.discourse.group/u/jbclements)\
**Post date:** [October 11, 2022, 5:56pm UTC](https://racket.discourse.group/t/enable-discourse-math-plugin-for-rendering-latex-style-equations/1372/6 "2022-10-11T17:56:10Z")

</div>

x = e^44

post must be at least 20 chars!

---

<div class="post-metadata">

**Author:** ![jbclements](https://yyz2.discourse-cdn.com/free1/user_avatar/racket.discourse.group/jbclements/32/11_2.png) [@jbclements](https://racket.discourse.group/u/jbclements)\
**Post date:** [October 11, 2022, 5:56pm UTC](https://racket.discourse.group/t/enable-discourse-math-plugin-for-rendering-latex-style-equations/1372/7 "2022-10-11T17:56:40Z")

</div>

yay! okay it works. Looks like double-dollars have to include line-breaks.

---

<div class="post-metadata">

**Author:** ![bremner](https://avatars.discourse-cdn.com/v4/letter/b/aca169/32.png) [@bremner](https://racket.discourse.group/u/bremner)\
**Post date:** [October 11, 2022, 5:58pm UTC](https://racket.discourse.group/t/enable-discourse-math-plugin-for-rendering-latex-style-equations/1372/8 "2022-10-11T17:58:33Z")

</div>

Greg Vernon via Racket Discussions  
[notifications@racket.discoursemail.com](mailto:notifications@racket.discoursemail.com) writes:

> There's an official Discourse plugin (link below) that would allow for users to post LaTeX style equations and have them rendered. As far as I can tell, this plugin is not enabled on this Discourse (test: x^2 ). Would have made [my first post](https://racket.discourse.group/t/plotting-a-lambda-that-returns-a-math-matrix-vector/1365) look a bit cleaner.
> 
> For example this `$\mathbf{N}^p(\xi) = [N_0^p(\xi), N_1^p(\xi), \dots, N_p^p(\xi)]^T$` would have rendered as
> 
> ![image](https://global.discourse-cdn.com/free1/uploads/racket/original/1X/b3c71ff61ddd9c11a81941d063beae337570fbe2.png)
> 
> but nicer (e.g., no background, same size as text).
> 
> I would have uploaded the equations as images, as I've done on this post, but as a new user I could only upload a single image.
> 
> [Discourse Math - plugin - Discourse Meta](https://meta.discourse.org/t/discourse-math/65770)

My comment is not so much about math per se, but more generally I'd  
prefer the postings (which I read as a mailing list) remain as close to  
plain text as possible. I understand most people use the web interface  
(or at least read mail as HTML), and might feel differently about more  
structured posting, but even the [quote] etc... markup causes my eyes to  
glaze over and my fingers to consider unsubscribing.

Just my 2 ¢

d

---

<div class="post-metadata">

**Author:** ![soegaard](https://yyz2.discourse-cdn.com/free1/user_avatar/racket.discourse.group/soegaard/32/19_2.png) [@soegaard](https://racket.discourse.group/u/soegaard)\
**Post date:** [October 11, 2022, 7:28pm UTC](https://racket.discourse.group/t/enable-discourse-math-plugin-for-rendering-latex-style-equations/1372/9 "2022-10-11T19:28:20Z")

</div>

Inline math a^2 + b^2=c^2.

Display math:

\sum \_{n=1}^\infty \frac{1}{n^2} = \frac{\pi^2}{6}

---

<div class="post-metadata">

**Author:** ![benknoble](https://yyz2.discourse-cdn.com/free1/user_avatar/racket.discourse.group/benknoble/32/16_2.png) [@benknoble](https://racket.discourse.group/u/benknoble)\
**Post date:** [October 12, 2022, 3:18pm UTC](https://racket.discourse.group/t/enable-discourse-math-plugin-for-rendering-latex-style-equations/1372/10 "2022-10-12T15:18:51Z")

</div>

I'm not sure precisely what "accessibility features" would be, but I'm  
in favor of enabling them given the option.

---

<div class="post-metadata">

**Author:** ![soegaard](https://yyz2.discourse-cdn.com/free1/user_avatar/racket.discourse.group/soegaard/32/19_2.png) [@soegaard](https://racket.discourse.group/u/soegaard)\
**Post date:** [October 12, 2022, 3:48pm UTC](https://racket.discourse.group/t/enable-discourse-math-plugin-for-rendering-latex-style-equations/1372/11 "2022-10-12T15:48:02Z")

</div>

The "accessibility features" enable this MathJax extension (which normally is in one of the menus, I believe):

[https://docs.mathjax.org/en/latest/basic/a11y-extensions.html#a11y-extensions](https://docs.mathjax.org/en/latest/basic/a11y-extensions.html#a11y-extensions)

---

<div class="post-metadata">

**Author:** ![jbclements](https://yyz2.discourse-cdn.com/free1/user_avatar/racket.discourse.group/jbclements/32/11_2.png) [@jbclements](https://racket.discourse.group/u/jbclements)\
**Post date:** [October 13, 2022, 6:27pm UTC](https://racket.discourse.group/t/enable-discourse-math-plugin-for-rendering-latex-style-equations/1372/12 "2022-10-13T18:27:41Z")

</div>

I skimmed it, but didn't read carefully to see why it might not always be on. Is there some reason that this is not on by default? Maybe we should just turn it on and see what happens?
