Skip to content

Commit 34bdcaf

Browse files
authored
Merge pull request #660 from THeK3nger/doc-mathjax-note
Add a note in MathJax documentation
2 parents 41399fc + 38279de commit 34bdcaf

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

book-example/src/format/mathjax.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,13 @@ To enable MathJax, you need to add the `mathjax-support` key to your `book.toml`
99
mathjax-support = true
1010
```
1111

12-
>**Note:**
12+
>**Note:**
1313
The usual delimiters MathJax uses are not yet supported. You can't currently use `$$ ... $$` as delimiters and the `\[ ... \]` delimiters need an extra backslash to work. Hopefully this limitation will be lifted soon.
1414

15+
>**Note:**
16+
> When you use double backslashes in MathJax blocks (for example in commands such as `\begin{cases} \frac 1 2 \\ \frac 3 4 \end{cases}`) you need to add _two extra_ backslashes (e.g., `\begin{cases} \frac 1 2 \\\\ \frac 3 4 \end{cases}`).
17+
18+
1519
### Inline equations
1620
Inline equations are delimited by `\\(` and `\\)`. So for example, to render the following inline equation \\( \int x dx = \frac{x^2}{2} + C \\) you would write the following:
1721
```

0 commit comments

Comments
 (0)