libs.typ: use unify library for units
seems more actively developed
This commit is contained in:
parent
88a75f85e9
commit
93473a3ee5
8
libs.typ
8
libs.typ
@ -1,5 +1,13 @@
|
|||||||
#import "/templates/main.typ": settings, font
|
#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
|
// this used to be an alias to styled tablex
|
||||||
#let tablef = table.with(
|
#let tablef = table.with(
|
||||||
align: center + horizon,
|
align: center + horizon,
|
||||||
|
Loading…
Reference in New Issue
Block a user