libs.typ: use unify library for units

seems more actively developed
This commit is contained in:
dogeystamp 2024-03-30 15:01:38 -04:00
parent 88a75f85e9
commit 93473a3ee5
Signed by: dogeystamp
GPG Key ID: 7225FE3592EFFA38

View File

@ -1,5 +1,13 @@
#import "/templates/main.typ": settings, font
#import "@preview/unify:0.5.0": num, qty, unit
// percentage error quantity
// (because both unify and metro currently can't parse percentages)
#let pq(nb, un, pe) = {
return $(num(nb) plus.minus qty(pe, "%")) unit(un)$
}
// this used to be an alias to styled tablex
#let tablef = table.with(
align: center + horizon,