summaryrefslogtreecommitdiff
path: root/tests/typ/math/op.typ
blob: 2a0f84fc67997db9486991efeb6d787fbbb95155 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// 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 page(width: auto)
#set text(font: "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 $

---
// Test styled operator.
$ bold(op("bold", limits: #true))_x y $