Skip to content

Commit

Permalink
Update math index.md
Browse files Browse the repository at this point in the history
Remove "spacing matters" warning, as there doesn't seem to be any difference between the two.

Add math rendering ($) to escape example.
  • Loading branch information
anghelos authored and sitandr committed Sep 7, 2024
1 parent a48fdc0 commit f8093be
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions src/basics/math/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,6 @@ To make it short, Typst uses several simple rules:
```typ
$a "equals to" 2$
```
<div class="warning">
Spacing matters there!
</div>
```typ
$a "=" 2$, $a"="2$
```
- You can turn it into multi-letter variables using `italic`:
```typ
$(italic("mass") v^2)/2$
Expand All @@ -92,8 +85,10 @@ $
Any symbol that is used may be escaped with `\\`, like in markup mode. For example, you can disable fraction:

```typ
$
a / b \
a \/ b
$
```

The same way it works with any other syntax.
Expand All @@ -110,4 +105,4 @@ You may easily increase the distance it by wrapping into box:

```typ
#lorem(17) #box($display(1)/display(1+x^n)$, inset: 0.2em) #lorem(20)
```
```

0 comments on commit f8093be

Please sign in to comment.