mirror of
https://github.com/typst/typst
synced 2025-05-13 20:46:23 +08:00
docs: Mention single-letter variables more prominently (#508)
This commit is contained in:
parent
66a22b5555
commit
0c33a64481
@ -34,6 +34,8 @@ math: |
|
||||
$ "area" = pi dot.op "radius"^2 $
|
||||
$ cal(A) :=
|
||||
{ x in RR | x "is natural" } $
|
||||
#let x = 5
|
||||
$ #x < 17 $
|
||||
```
|
||||
|
||||
Math mode makes a wide selection of [symbols]($category/symbols/sym) like
|
||||
|
@ -55,7 +55,7 @@ follows:
|
||||
| Fraction | `[$1 + (a+b)/5$]` | [`frac`]($func/frac) |
|
||||
| Line break | `[$x \ y ]` | [`linebreak`]($func/linebreak) |
|
||||
| Alignment point | `[$x &= 2 \ &= 3$]` | [Math]($category/math) |
|
||||
| Variable access | `[$pi$]` | [Math]($category/math) |
|
||||
| Variable access | `[$#x$, $pi$]` | [Math]($category/math) |
|
||||
| Field access | `[$arrow.r.long$]` | [Scripting]($scripting/#fields) |
|
||||
| Implied multiplication | `[$x y$]` | [Math]($category/math) |
|
||||
| Symbol shorthand | `[$->, !=$]` | [Symbols]($category/symbols/sym) |
|
||||
|
Loading…
x
Reference in New Issue
Block a user