summaryrefslogtreecommitdiff
path: root/docs/src/reference
diff options
context:
space:
mode:
authorSebastian Zivota <loewenheim@users.noreply.github.com>2023-04-01 18:07:59 +0200
committerGitHub <noreply@github.com>2023-04-01 18:07:59 +0200
commit0c33a64481a3b5e4392ce33cb2a127c71406439b (patch)
tree7e45988d2fa43a1c6c489ec625de1a03722e8663 /docs/src/reference
parent66a22b555544694d99b8d710fdd2edb9f8deae8a (diff)
docs: Mention single-letter variables more prominently (#508)
Diffstat (limited to 'docs/src/reference')
-rw-r--r--docs/src/reference/details.yml2
-rw-r--r--docs/src/reference/syntax.md2
2 files changed, 3 insertions, 1 deletions
diff --git a/docs/src/reference/details.yml b/docs/src/reference/details.yml
index 25799402..dcce41ea 100644
--- a/docs/src/reference/details.yml
+++ b/docs/src/reference/details.yml
@@ -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
diff --git a/docs/src/reference/syntax.md b/docs/src/reference/syntax.md
index 7a91b0a8..b19d38e0 100644
--- a/docs/src/reference/syntax.md
+++ b/docs/src/reference/syntax.md
@@ -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) |