-
Notifications
You must be signed in to change notification settings - Fork 406
Closed
Description
Currently Quarto does not support the proper comment syntax for Typst and LaTex block.
This means you need to write for Typst:
```{.typst filename="typst-template.typ"}
#let article(title: none, authors: none, body) = {
set page(paper: "a4", margin: 2.5cm) # <1>
set text(font: "Inter", size: 11pt) # <2>
if title != none { # <3>
align(center, text(weight: "bold", 1.5em, title)) # <3>
} # <3>
body # <4>
}
```
1. Page setup.
2. Typography settings.
3. Conditional title block.
4. Main content insertion.where is should be:
```{.typst filename="typst-template.typ"}
#let article(title: none, authors: none, body) = {
set page(paper: "a4", margin: 2.5cm) // <1>
set text(font: "Inter", size: 11pt) // <2>
if title != none { // <3>
align(center, text(weight: "bold", 1.5em, title)) // <3>
} // <3>
body // <4>
}
```
1. Page setup.
2. Typography settings.
3. Conditional title block.
4. Main content insertion.It would be great for teaching purposes if Quarto could use the correct comment symbol.
Note that .typ and .typst can be use. Similar for LaTeX code blocks.
Typst: //
LaTeX: %
Reactions are currently unavailable