mirror of
https://github.com/typst/typst
synced 2025-05-16 01:55:28 +08:00
39 lines
666 B
Typst
39 lines
666 B
Typst
// Test symbols.
|
|
|
|
--- symbol ---
|
|
#emoji.face
|
|
#emoji.woman.old
|
|
#emoji.turtle
|
|
|
|
#set text(font: "New Computer Modern Math")
|
|
#sym.arrow
|
|
#sym.arrow.l
|
|
#sym.arrow.r.squiggly
|
|
#sym.arrow.tr.hook
|
|
|
|
#sym.arrow.r;this and this#sym.arrow.l;
|
|
|
|
--- symbol-constructor ---
|
|
#let envelope = symbol(
|
|
"🖂",
|
|
("stamped", "🖃"),
|
|
("stamped.pen", "🖆"),
|
|
("lightning", "🖄"),
|
|
("fly", "🖅"),
|
|
)
|
|
|
|
#envelope
|
|
#envelope.stamped
|
|
#envelope.pen
|
|
#envelope.stamped.pen
|
|
#envelope.lightning
|
|
#envelope.fly
|
|
|
|
--- symbol-constructor-empty ---
|
|
// Error: 2-10 expected at least one variant
|
|
#symbol()
|
|
|
|
--- symbol-unknown-modifier ---
|
|
// Error: 13-20 unknown symbol modifier
|
|
#emoji.face.garbage
|