diff options
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/changelog.md | 6 | ||||
| -rw-r--r-- | docs/guides/guide-for-latex-users.md | 2 | ||||
| -rw-r--r-- | docs/guides/page-setup.md | 2 | ||||
| -rw-r--r-- | docs/guides/tables.md | 8 | ||||
| -rw-r--r-- | docs/reference/context.md | 4 | ||||
| -rw-r--r-- | docs/src/main.rs | 2 |
6 files changed, 12 insertions, 12 deletions
diff --git a/docs/changelog.md b/docs/changelog.md index 42cd4027..88c029c5 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -861,7 +861,7 @@ description: | - Import autocompletion now only shows the latest package version until a colon is typed - Fixed autocompletion for dictionary key containing a space - - Fixed autocompletion for for loops + - Fixed autocompletion for `for` loops - Command line interface - Added `typst query` subcommand to execute a @@ -895,7 +895,7 @@ description: | - Development - Extracted parser and syntax tree into `typst-syntax` crate - - The `World::today` implementation of Typst dependants may need fixing if + - The `World::today` implementation of Typst dependents may need fixing if they have the same [bug](https://github.com/typst/typst/issues/1842) that the CLI world had @@ -1009,7 +1009,7 @@ description: | path must contain `[{n}]` if the document has multiple pages. - Added `--diagnostic-format=short` for Unix-style short diagnostics - Doesn't emit color codes anymore if stderr isn't a TTY - - Now sets the correct exit when invoked with a non-existent file + - Now sets the correct exit when invoked with a nonexistent file - Now ignores UTF-8 BOM in Typst files - Miscellaneous Improvements diff --git a/docs/guides/guide-for-latex-users.md b/docs/guides/guide-for-latex-users.md index 8c3b5601..c845747b 100644 --- a/docs/guides/guide-for-latex-users.md +++ b/docs/guides/guide-for-latex-users.md @@ -469,7 +469,7 @@ Aside from the official package repository, you might also want to check out the compiles a curated list of resources created for Typst. If you need to load functions and variables from another file within your -project, for example to use a template, you can use use the same +project, for example to use a template, you can use the same [`{import}`]($scripting/#modules) statement with a file name rather than a package specification. To instead include the textual content of another file, you can use an [`{include}`]($scripting/#modules) statement. It will retrieve diff --git a/docs/guides/page-setup.md b/docs/guides/page-setup.md index f37ec3b4..0c5bdf6d 100644 --- a/docs/guides/page-setup.md +++ b/docs/guides/page-setup.md @@ -188,7 +188,7 @@ conditionally remove the header on the first page: This example may look intimidating, but let's break it down: By using the `{context}` keyword, we are telling Typst that the header depends on where we are in the document. We then ask Typst if the page [counter] is larger than one -at our (context-dependant) current position. The page counter starts at one, so +at our (context-dependent) current position. The page counter starts at one, so we are skipping the header on a single page. Counters may have multiple levels. This feature is used for items like headings, but the page counter will always have a single level, so we can just look at the first one. diff --git a/docs/guides/tables.md b/docs/guides/tables.md index 9a61117d..39eb39f6 100644 --- a/docs/guides/tables.md +++ b/docs/guides/tables.md @@ -714,7 +714,7 @@ very first and last line. align: center + horizon, table.header[Technique][Advantage][Drawback], [Diegetic], [Immersive], [May be contrived], - [Extradiegetic], [Breaks immersion], [Obstrusive], + [Extradiegetic], [Breaks immersion], [Obtrusive], [Omitted], [Fosters engagement], [May fracture audience], ) ``` @@ -746,7 +746,7 @@ below the first row: >>> align: center + horizon, >>> table.header[Technique][Advantage][Drawback], >>> [Diegetic], [Immersive], [May be contrived], ->>> [Extradiegetic], [Breaks immersion], [Obstrusive], +>>> [Extradiegetic], [Breaks immersion], [Obtrusive], >>> [Omitted], [Fosters engagement], [May fracture audience], >>> ) ``` @@ -777,7 +777,7 @@ The next example shows how to draw all but the outer lines: >>> align: center + horizon, >>> table.header[Technique][Advantage][Drawback], >>> [Diegetic], [Immersive], [May be contrived], ->>> [Extradiegetic], [Breaks immersion], [Obstrusive], +>>> [Extradiegetic], [Breaks immersion], [Obtrusive], >>> [Omitted], [Fosters engagement], [May fracture audience], >>> ) ``` @@ -812,7 +812,7 @@ calendar. >>> align: center + horizon, >>> table.header[Technique][Advantage][Drawback], >>> [Diegetic], [Immersive], [May be contrived], ->>> [Extradiegetic], [Breaks immersion], [Obstrusive], +>>> [Extradiegetic], [Breaks immersion], [Obtrusive], >>> [Omitted], [Fosters engagement], [May fracture audience], >>> ) ``` diff --git a/docs/reference/context.md b/docs/reference/context.md index 8c6ee9de..0ea88975 100644 --- a/docs/reference/context.md +++ b/docs/reference/context.md @@ -59,11 +59,11 @@ context is known. The body of a context expression may be evaluated zero, one, or multiple times, depending on how many different places it is put into. ## Location context -Context can not only give us access to set rule values. It can also let us know +Context cannot only give us access to set rule values. It can also let us know _where_ in the document we currently are, relative to other elements, and absolutely on the pages. We can use this information to create very flexible interactions between different document parts. This underpins features like -heading numbering, the table of contents, or page headers dependant on section +heading numbering, the table of contents, or page headers dependent on section headings. Some functions like [`counter.get`]($counter.get) implicitly access the current diff --git a/docs/src/main.rs b/docs/src/main.rs index 3f53dfc8..d87e359b 100644 --- a/docs/src/main.rs +++ b/docs/src/main.rs @@ -90,7 +90,7 @@ struct Args { /// This option controls where to spit them out. The HTML generation will /// assume that this output directory is served at `${base_url}/assets/*`. /// The default is `assets`. For example, if the base URL is `/docs/` then - /// the gemerated HTML might look like `<img src="/docs/assets/foo.png">` + /// the generated HTML might look like `<img src="/docs/assets/foo.png">` /// even though the `--assets-dir` was set to `/tmp/images` or something. #[arg(long, default_value = "assets")] assets_dir: PathBuf, |
