Skip to content

Commit

Permalink
Add examples with 76424
Browse files Browse the repository at this point in the history
  • Loading branch information
blegat committed Oct 13, 2020
1 parent d3ec102 commit ede1069
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion test/examples/src/man/tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -422,8 +422,14 @@ In an `@example` or `@eval`block, it renders as an equation:
LaTeXEquation("x^2")
```

Documenter also supports having the LaTeX text being already wrapped in `\[ ... \]`.
Documenter also supports having the LaTeX text being already wrapped in `\[ ... \]`:

```@example showablelatex
LaTeXEquation("\\[\\left[ \\begin{array}{rr}x&2 x\\end{array}\\right]\\]")
```

or wrapped in `$$ ... $$`:

```@example showablelatex
LaTeXEquation("$$\\begin{bmatrix} 1 & 2\\ 3 & 4 \\end{bmatrix}$$")
```

0 comments on commit ede1069

Please sign in to comment.