|
1 |
| -#import "@preview/xarrow:0.2.0": xarrow |
2 |
| - |
3 | 1 | #import "../prelude.typ": *
|
4 | 2 |
|
5 | 3 | // 0. Some useful internal variables or functions
|
|
39 | 37 |
|
40 | 38 | // 1. functions created to make it easier to define a spec
|
41 | 39 | #let operatornamewithlimits(it) = math.op(limits: true, math.upright(it))
|
42 |
| -#let arrow-handle(arrow-sym) = define-cmd(1, handle: it => $limits(xarrow(sym: #arrow-sym, it))$) |
| 40 | +#let arrow-handle(arrow-sym) = define-cmd(1, handle: it => $limits(stretch(#arrow-sym)^#it)$) |
43 | 41 | #let _greedy-handle(fn) = (..args) => $fn(#args.pos().sum())$
|
44 | 42 | #let greedy-handle(alias, fn) = define-greedy-cmd(alias, handle: _greedy-handle(fn))
|
45 | 43 | #let limits-handle(alias, wrap) = define-cmd(1, alias: alias, handle: it => math.limits(wrap(it)))
|
|
950 | 948 | varTheta: of-sym($italic(Theta)$),
|
951 | 949 | varUpsilon: of-sym($italic(Upsilon)$),
|
952 | 950 | varXi: of-sym($italic(Xi)$),
|
953 |
| - // xarrows |
954 |
| - xleftarrow: arrow-handle(math.arrow.l.long), |
955 |
| - xrightarrow: arrow-handle(math.arrow.r.long), |
956 |
| - xLeftarrow: arrow-handle(math.arrow.l.double.long), |
957 |
| - xRightarrow: arrow-handle(math.arrow.r.double.long), |
| 951 | + xleftarrow: arrow-handle(math.arrow.l), |
| 952 | + xrightarrow: arrow-handle(math.arrow.r), |
| 953 | + xLeftarrow: arrow-handle(math.arrow.l.double), |
| 954 | + xRightarrow: arrow-handle(math.arrow.r.double), |
958 | 955 | xleftrightarrow: arrow-handle(math.arrow.l.r),
|
959 | 956 | xLeftrightarrow: arrow-handle(math.arrow.l.r.double),
|
960 | 957 | xhookleftarrow: arrow-handle(math.arrow.l.hook),
|
|
0 commit comments