# Partial support for mathjax

**URL:** <https://discuss.write.as/t/partial-support-for-mathjax/2563>\
**Category:** Help\
**Created:** [March 3, 2021, 2:04pm UTC](https://discuss.write.as/t/partial-support-for-mathjax/2563 "2021-03-03T14:04:57Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![arnovel](https://discuss.write.as/user_avatar/discuss.write.as/arnovel/32/971_2.png) [@arnovel](https://discuss.write.as/u/arnovel)\
**Post date:** [March 10, 2021, 7:58am UTC](https://discuss.write.as/t/partial-support-for-mathjax/2563/7 "2021-03-10T07:58:14Z")

</div>

I’ll add any other tricks/hacks other users will need to typeset latex.  
A new hack was needed when using the align environment: `\begin{align*} ... \end{align*}`.  
Using the “normal” latex syntax (with escaped underscores):

```auto
$$
\begin{align*}
y &\approx f\_\theta \circ g\_\phi (y) \\
x &\approx g\_\phi \circ f\_\theta (x) \\
\end{align*}
$$

```

Does not produce the expected aligned equations. Instead, one should use:

```auto
$$
\begin{align\*}
y &\approx f\_\theta \circ g\_\phi (y) \\\
x &\approx g\_\phi \circ f\_\theta (x) \\\
\end{align\*}
$$

```

This means two things: one should

- escape the `*` in the begin & end, giving the syntax `\begin{align\*}`
- escape the line jumps `\\`, giving the syntax `\\\` at the end of each line

I think a good rule of thumb is: if your latex symbol has meaning in markdown (e.g. `_` , `*`, `\`, etc), you should escape it in your latex code. This is because the markdown interpretation of the syntax takes precedence over the latex one.

---

_[View the full topic](https://discuss.write.as/t/partial-support-for-mathjax/2563)._
