Quick snippet to add injlim
and projlim
to typst, defined as math operators with the correct baseline.
Keywords: direct limit, inverse limit, projective limit, injective limit, colimit, varinjlim
varprojlim

#let (injlim, projlim) = { | |
let factory = arrowsym => context { | |
let size = measure[lim].width | |
let arrow = pad(top: -1em, math.stretch(math.script(arrowsym), size: size)) | |
math.attach(math.limits[lim], b: arrow) | |
} | |
(sym.arrow.r, sym.arrow.l).map(factory).map(math.op.with(limits: true)) | |
} |
$ QQ = injlim_(n>0) 1/n ZZ $ |