typst/tests/layouts/styles.typ
Laurenz 1a6fb48bc5 Page style modification functions 📜
- `page.size`
- `page.margins`
2019-11-18 15:10:11 +01:00

25 lines
585 B
XML

[page.size: width=250pt, height=300pt]
[page.margins: 10pt]
_Emoji:_ Hello World! 🌍
_Styles:_ This is made *bold*, that _italic_ and this one `monospace` using the
built-in syntax!
_Styles with functions:_ This [bold][word] is made bold and [italic][that] italic
using the standard library functions `bold` and `italic`!
[italic]
Styles can also be changed through context modification.
This works basically in the same way as the built-in syntax.
[italic]
This is not italic anymore. 😀
[box][
[italic]
Styles are scoped by boxes.
]
Outside of the box: No effect.