From 0c33a64481a3b5e4392ce33cb2a127c71406439b Mon Sep 17 00:00:00 2001 From: Sebastian Zivota Date: Sat, 1 Apr 2023 18:07:59 +0200 Subject: [PATCH] docs: Mention single-letter variables more prominently (#508) --- docs/src/reference/details.yml | 2 ++ docs/src/reference/syntax.md | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/src/reference/details.yml b/docs/src/reference/details.yml index 25799402d..dcce41ea5 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 7a91b0a8e..b19d38e0b 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) |