mirror of
https://github.com/typst/typst
synced 2025-05-13 20:46:23 +08:00
44 lines
696 B
Typst
44 lines
696 B
Typst
// Test emph and strong.
|
|
|
|
---
|
|
// Basic.
|
|
_Emphasized and *strong* words!_
|
|
|
|
// Inside of a word it's a normal underscore or star.
|
|
hello_world Nutzer*innen
|
|
|
|
// Can contain paragraph in nested content block.
|
|
_Still [
|
|
|
|
] emphasized._
|
|
|
|
---
|
|
// Inside of words can still use the functions.
|
|
P#strong[art]ly em#emph[phas]ized.
|
|
|
|
---
|
|
// Adjusting the delta that strong applies on the weight.
|
|
Normal
|
|
|
|
#set strong(delta: 300)
|
|
*Bold*
|
|
|
|
#set strong(delta: 150)
|
|
*Medium* and *[*Bold*]*
|
|
|
|
---
|
|
// Error: 13 expected underscore
|
|
#box[_Scoped] to body.
|
|
|
|
---
|
|
// Ends at paragraph break.
|
|
// Error: 7 expected underscore
|
|
_Hello
|
|
|
|
World
|
|
|
|
---
|
|
// Error: 1:12 expected star
|
|
// Error: 2:1 expected star
|
|
_Cannot *be_ interleaved*
|