Skip to content

Commit

Permalink
Clarified use of command scope, clarified text in general.
Browse files Browse the repository at this point in the history
  • Loading branch information
krestenlaust committed Jan 26, 2024
1 parent d9bc1bc commit 9d19bed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion report-template/chapters/understanding_typst.typ
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Typst has two modes of text. This text right here is written directly in markup
rect()
#rect()

To enter markup mode in a command context/mode, use [], previously shown, this can be thought of as similar to a string in a general-purpose programming language#footnote("Typst also has a concept of strings (using double quotes \"), used primarily in functions, like this one right here.")#footnote([This could've also been written using the content mode (`[...]`). This way it's easier to markup *things* than in a string.]).
To enter markup mode in a command context/mode, use `[...]`, previously shown, this can be thought of as similar to a string `"..."` in a general-purpose programming language#footnote("Typst infers between the concept of strings, and content mode seamlessly. String literals are primarily used in function calls, like this one right here.")#footnote([This could've also been written using the content mode `[...]`. This way it is easier to *markup* things than in a string.]).

The operators can be combined to cancel each other out like so:
#[This is exactly the same as] writing the text like this.
Expand Down

0 comments on commit 9d19bed

Please sign in to comment.