summaryrefslogtreecommitdiff
path: root/docs/src/tutorial
diff options
context:
space:
mode:
Diffstat (limited to 'docs/src/tutorial')
-rw-r--r--docs/src/tutorial/3-advanced.md4
-rw-r--r--docs/src/tutorial/4-template.md7
2 files changed, 7 insertions, 4 deletions
diff --git a/docs/src/tutorial/3-advanced.md b/docs/src/tutorial/3-advanced.md
index ab65008c..49eb8e31 100644
--- a/docs/src/tutorial/3-advanced.md
+++ b/docs/src/tutorial/3-advanced.md
@@ -202,7 +202,7 @@ Another tweak could be to save the paper title in a variable, so that we do not
have to type it twice, for header and title. We can do that with the `{let}`
keyword:
-```example
+```example:single
#let title = [
A fluid dynamic model
for glacier flow
@@ -274,7 +274,7 @@ the document as a parameter. We have called the parameter `rest` here, but you
are free to choose any name. The function can then do anything with this
content. In our case, it passes it on to the `columns` function.
-```example
+```example:single
>>> #let title = [
>>> A fluid dynamic model
>>> for glacier flow
diff --git a/docs/src/tutorial/4-template.md b/docs/src/tutorial/4-template.md
index 6b176d32..7ecec0d1 100644
--- a/docs/src/tutorial/4-template.md
+++ b/docs/src/tutorial/4-template.md
@@ -125,7 +125,10 @@ previous chapter.
columns(2, doc)
}
-#show: doc => conf([Paper title], doc)
+#show: doc => conf(
+ [Paper title],
+ doc,
+)
= Introduction
#lorem(90)
@@ -256,7 +259,7 @@ adding an import before the show rule. Name the function that you want to import
from another file between the `{import}` and `{from}` keywords and specify the
path of the file after the `{from}` keyword.
-```example
+```example:single
>>> #let conf(
>>> title: none,
>>> authors: (),