# Support MathJax Extensions

**URL:** <https://forum.obsidian.md/t/support-mathjax-extensions/96379>\
**Category:** Feature requests\
**Tags:** math\
**Created:** [February 9, 2025, 11:09am UTC](https://forum.obsidian.md/t/support-mathjax-extensions/96379 "2025-02-09T11:09:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![md.kovachev](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/m/ecc23a/32.png) [@md.kovachev](https://forum.obsidian.md/u/md.kovachev)\
**Post date:** [February 9, 2025, 11:09am UTC](https://forum.obsidian.md/t/support-mathjax-extensions/96379/1 "2025-02-09T11:09:18Z")

</div>

### Use case or problem

Some LaTeX symbols are not supported by default in MathJax but are available in extensions. Some of these symbols are also quite common in engineering fields such as double and triple integrals over closed surfaces, e.g. `\oiint` and `\oiiint`. Moreover, there is no way to currently draw diagrams in LaTeX because TikZ is not supported by Obsidian.

### Proposed solution

Make it so that the user can add and enable extensions to support missing symbols and add packages. I am not familiar enough with the MathJax ecosystem to provide further guidelines, though, so if someone has any ideas, now would be a good time to leave a reply. 🙂

Alternatively, just implement a larger portion of the MathJax extensions.

### Current workaround (optional)

Use unicode symbols which look ugly and cannot scale appropriately. However, some symbols do not have unicode equivalents and there is no alternative for packages like TikZ.

---

<div class="post-metadata">

**Author:** ![blue\_emperor](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/b/9e8a1a/32.png) [@blue\_emperor](https://forum.obsidian.md/u/blue_emperor)\
**Post date:** [February 9, 2025, 5:28pm UTC](https://forum.obsidian.md/t/support-mathjax-extensions/96379/2 "2025-02-09T17:28:20Z")

</div>

> [@Math Double-Closed-Path-Integral Symbol](https://forum.obsidian.md/t/math-double-closed-path-integral-symbol/10104/4):
>
> We support all extensions that are bundled within the Mathjax distribution. I searched briefly and I haven’t found much outside the MathJax distribution. If they exist(?), they can be added with plugins through the API.

According to [previous answer](https://forum.obsidian.md/t/math-double-closed-path-integral-symbol/10104/4) by WhiteNoise, MathJax extensions can be already added using the plugin API.

Currently you can get `mhchem ` and `bussproofs` extensions using [_Extended MathJax_](https://github.com/wei2912/obsidian-latex) community plugin. Using the same plugin you can use this preamble to get `\oiint` and `\oiiint`:

```txt
\newcommand{\oiint}{{\subset\!\supset} \mathllap{\iint}}
\newcommand{\oiiint}{{\Large{\subset\!\supset}} \mathllap{\iiint}}

```

---

<div class="post-metadata">

**Author:** ![md.kovachev](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/m/ecc23a/32.png) [@md.kovachev](https://forum.obsidian.md/u/md.kovachev)\
**Post date:** [February 10, 2025, 7:03am UTC](https://forum.obsidian.md/t/support-mathjax-extensions/96379/3 "2025-02-10T07:03:46Z")

</div>

Such hacks render incorrectly in inline mode.

---

<div class="post-metadata">

**Author:** ![heinrich27](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/h/d6d6ee/32.png) [@heinrich27](https://forum.obsidian.md/u/heinrich27)\
**Post date:** [May 16, 2025, 9:01am UTC](https://forum.obsidian.md/t/support-mathjax-extensions/96379/4 "2025-05-16T09:01:36Z")

</div>

You can supply alternative macro definitions per style with: `\mathchoice #1 #2 #3 #4`, see [command reference](https://www.onemathematicalcat.org/MathJaxDocumentation/TeXSyntax.htm#mathchoice)
