Enable discourse-math plugin for rendering LaTeX-style equations

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 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

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.

2 Likes

@spdegabrielle
This sounds like a good idea.

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.

1 Like

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

Hmm...

maybe it wasn't enabled?

x = e^44

post must be at least 20 chars!

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

3 Likes

Greg Vernon via Racket Discussions
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 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

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

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

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

Display math:

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

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

1 Like

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

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?