summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2024-07-04 12:57:40 +0200
committerGitHub <noreply@github.com>2024-07-04 10:57:40 +0000
commit0ef672c347f368325313c8bccc4f70e3f1016b0a (patch)
tree8971d6b305d805b42b55e1e85613e4f4c5ba175d /docs
parent75246f930b9041c206a8a3c87e6db03bfc9111fd (diff)
Refactor line building (#4497)
Diffstat (limited to 'docs')
-rw-r--r--docs/guides/guide-for-latex-users.md3
-rw-r--r--docs/reference/syntax.md2
2 files changed, 2 insertions, 3 deletions
diff --git a/docs/guides/guide-for-latex-users.md b/docs/guides/guide-for-latex-users.md
index 1f3caef9..8c3b5601 100644
--- a/docs/guides/guide-for-latex-users.md
+++ b/docs/guides/guide-for-latex-users.md
@@ -593,10 +593,9 @@ The example below
```typ
#set page(margin: 1.75in)
-#set par(leading: 0.55em, first-line-indent: 1.8em, justify: true)
+#set par(leading: 0.55em, spacing: 0.55em, first-line-indent: 1.8em, justify: true)
#set text(font: "New Computer Modern")
#show raw: set text(font: "New Computer Modern Mono")
-#show par: set block(spacing: 0.55em)
#show heading: set block(above: 1.4em, below: 1em)
```
diff --git a/docs/reference/syntax.md b/docs/reference/syntax.md
index 9a7dc373..b63d1776 100644
--- a/docs/reference/syntax.md
+++ b/docs/reference/syntax.md
@@ -120,7 +120,7 @@ a table listing all syntax that is available in code mode:
| Named function | `{let f(x) = 2 * x}` | [Function]($function) |
| Set rule | `{set text(14pt)}` | [Styling]($styling/#set-rules) |
| Set-if rule | `{set text(..) if .. }` | [Styling]($styling/#set-rules) |
-| Show-set rule | `{show par: set block(..)}` | [Styling]($styling/#show-rules) |
+| Show-set rule | `{show heading: 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) |
| Context expression | `{context text.lang}` | [Context]($context) |