Skip to content

Commit f4e20ee

Browse files
committed
✏️ Fixed typos in code blocks
1 parent aca7b50 commit f4e20ee

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/src/developer_documentation/custom_themes.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ Then, we'll update the theme variable accordingly:
166166
// to import utils, see The Theme Variable section
167167
168168
// import the cover along with the entry functions
169-
#import "./entries.typ": cover frontmatter-entry, body-entry, appendix-entry
169+
#import "./entries.typ": cover, frontmatter-entry, body-entry, appendix-entry
170170
171171
#let foo-theme = utils.make-theme(
172172
cover: cover, // add the cover to the theme
@@ -193,15 +193,15 @@ look like:
193193
set text(fill: red) // Make all of the text red, across the entire document
194194
195195
doc // Return the entire document
196-
}
196+
})
197197
```
198198

199199
Then, we'll update the theme variable accordingly:
200200

201201
```typ
202202
// foo/foo.typ
203203
#import "./rules.typ": rules // import the rules
204-
#import "./entries.typ": cover frontmatter-entry, body-entry, appendix-entry
204+
#import "./entries.typ": cover, frontmatter-entry, body-entry, appendix-entry
205205
206206
// to import utils, see The Theme Variable section
207207
@@ -287,7 +287,7 @@ Using the `make-toc` constructor we can make a `toc` like this:
287287
288288
#let toc = utils.make-toc((frontmatter, body, appendix) => {
289289
// ...
290-
}
290+
})
291291
```
292292

293293
Using the constructor gives us access to three variables, `frontmatter`, `body`, and `appendix`. These variables are all [arrays](https://typst.app/docs/reference/foundations/array/), which are dictionaries that all contain the same information as the `ctx` variables from [this](#creating-the-entries) section, with the addition of a `page-number` field, which is an [integer](https://typst.app/docs/reference/foundations/int/).
@@ -396,7 +396,7 @@ Here's an example from the `default-theme`:
396396
#entry.definition
397397
],)
398398
})
399-
}
399+
})
400400
```
401401

402402
## Using the Theme

0 commit comments

Comments
 (0)