# Mathjax not working

**URL:** https://meta.discourse.org/t/mathjax-not-working/130558
**Category:** Support
**Created:** [October 9, 2019, 10:11am UTC](https://meta.discourse.org/t/mathjax-not-working/130558 "2019-10-09T10:11:25Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![AnkitJain](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ankitjain/32/158153_2.png) [@AnkitJain](https://meta.discourse.org/u/AnkitJain)
#### Post date: [October 9, 2019, 10:11am UTC](https://meta.discourse.org/t/mathjax-not-working/130558/1 "2019-10-09T10:11:25Z")

</div>

I tried to get a fraction with this code:

`$$\frac{a}{b}$$`

It gives the above text itself. I checked plugin is enabled.

---

<div class="post-metadata">

### Author: ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)
#### Post date: [October 9, 2019, 10:57am UTC](https://meta.discourse.org/t/mathjax-not-working/130558/2 "2019-10-09T10:57:22Z")

</div>

Try with just a single dollar sign on each side:

\frac{a}{b}

---

<div class="post-metadata">

### Author: ![AnkitJain](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ankitjain/32/158153_2.png) [@AnkitJain](https://meta.discourse.org/u/AnkitJain)
#### Post date: [October 9, 2019, 12:00pm UTC](https://meta.discourse.org/t/mathjax-not-working/130558/3 "2019-10-09T12:00:15Z")

</div>

Worked

1\_Font size become too small. But RIGHT CLICK on the equation gave SETTINGS options to select size and other options

---

<div class="post-metadata">

### Author: ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)
#### Post date: [October 9, 2019, 12:02pm UTC](https://meta.discourse.org/t/mathjax-not-working/130558/4 "2019-10-09T12:02:57Z")

</div>

\frac{a}{b} will render the expression inline, which can be quite small, especially for fractions. To render larger expressions, use the block format

\frac{a}{b}

More examples can be found here:

> [@Discourse Math](https://meta.discourse.org/t/discourse-math-plugin/65770):
>
> discourse2Summary Discourse Math uses [MathJax](https://www.mathjax.org/) (default) or [KaTeX](https://katex.org/) to render maths in your Discourse forum.open_bookInstall Guide This plugin is bundled with Discourse core. There is no need to install the plugin separately. Enabling Math The Math plugin can be enabled from its settings, accessed from your admin/plugins page: [Math settings] Features Once enabled, you can render inline math by wrapping with a single $ like so: $E=mc^2$. You can render blocks of math…

---

<div class="post-metadata">

### Author: ![AnkitJain](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ankitjain/32/158153_2.png) [@AnkitJain](https://meta.discourse.org/u/AnkitJain)
#### Post date: [October 9, 2019, 12:10pm UTC](https://meta.discourse.org/t/mathjax-not-working/130558/5 "2019-10-09T12:10:24Z")

</div>

> [@AnkitJain](#):
>
> \frac{a}{b}

So i needed to put double dollars in seperate lines. Thanks for the explanation.

---

<div class="post-metadata">

### Author: ![AnkitJain](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ankitjain/32/158153_2.png) [@AnkitJain](https://meta.discourse.org/u/AnkitJain)
#### Post date: [October 9, 2019, 12:11pm UTC](https://meta.discourse.org/t/mathjax-not-working/130558/6 "2019-10-09T12:11:07Z")

</div>

> [@david](#):
>
> \frac{a}{b}

Worked!

My double dollars were on the same line. So it was not working?

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [November 8, 2019, 12:21pm UTC](https://meta.discourse.org/t/mathjax-not-working/130558/7 "2019-11-08T12:21:05Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
