mirror of
https://github.com/typst/typst
synced 2025-05-13 20:46:23 +08:00
22 lines
382 B
Typst
22 lines
382 B
Typst
// Test text operators.
|
|
|
|
---
|
|
// Test predefined.
|
|
$ max_(1<=n<=m) n $
|
|
|
|
---
|
|
// With or without parens.
|
|
$ &sin x + log_2 x \
|
|
= &sin(x) + log_2(x) $
|
|
|
|
---
|
|
// Test scripts vs limits.
|
|
#set text("New Computer Modern")
|
|
Discuss $lim_(n->oo) 1/n$ now.
|
|
$ lim_(n->infinity) 1/n = 0 $
|
|
|
|
---
|
|
// Test custom operator.
|
|
$ op("myop", limits: #false)_(x:=1) x \
|
|
op("myop", limits: #true)_(x:=1) x $
|