diff options
| author | Laurenz <laurmaedje@gmail.com> | 2023-02-12 20:23:52 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2023-02-12 20:25:24 +0100 |
| commit | 7b2cdb9d95331bba87f9ae54c71b7103a10faf1c (patch) | |
| tree | 8b0581fd14849e6a6ceaa9527ed8534e05d2b695 /docs/src/reference | |
| parent | 77c29b36d4e8706163c8d52359577e403a15a1ae (diff) | |
Require colon in show rule
Diffstat (limited to 'docs/src/reference')
| -rw-r--r-- | docs/src/reference/styling.md | 2 | ||||
| -rw-r--r-- | docs/src/reference/syntax.md | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/docs/src/reference/styling.md b/docs/src/reference/styling.md index 92b5f8c9..8e3937b4 100644 --- a/docs/src/reference/styling.md +++ b/docs/src/reference/styling.md @@ -110,7 +110,7 @@ element. And apart from a function, the left-hand side of a show rule can also take a number of other _selectors_ that define what to apply the transformation to: -- **Everything:** `{show rest => ..}` \ +- **Everything:** `{show: rest => ..}` \ Transform everything after the show rule. This is useful to apply a more complex layout to your whole document without wrapping everything in a giant function call. diff --git a/docs/src/reference/syntax.md b/docs/src/reference/syntax.md index b4d14e01..422c035f 100644 --- a/docs/src/reference/syntax.md +++ b/docs/src/reference/syntax.md @@ -89,8 +89,9 @@ a table listing all syntax that is available in code mode: | Named function | `{let f(x) = 2 * x}` | [Function]($type/function) | | Set rule | `{set text(14pt)}` | [Styling]($styling/#set-rules) | | Set-if rule | `{set text(..) if .. }` | [Styling]($styling/#set-rules) | -| Show rule | `{show raw: it => {..}}` | [Styling]($styling/#set-rules) | | Show-set rule | `{show par: set block(..)}` | [Styling]($styling/#show-rules) | +| Show rule with function | `{show raw: it => {..}}` | [Styling]($styling/#show-rules) | +| Show-everything rule | `{show: columns.with(2)}` | [Styling]($styling/#show-rules) | | Conditional | `{if x == 1 {..} else {..}}` | [Scripting]($scripting/#conditionals) | | For loop | `{for x in (1, 2, 3) {..}}` | [Scripting]($scripting/#loops) | | While loop | `{while x < 10 {..}}` | [Scripting]($scripting/#loops) | |
