aboutsummaryrefslogtreecommitdiff
path: root/unify.typ
diff options
context:
space:
mode:
authorDenis Chevalier <perso@denischevalier.fr>2026-08-10 07:34:49 +0200
committerDenis Chevalier <perso@denischevalier.fr>2026-08-10 07:34:49 +0200
commit578d2b3bac4bcf698d18c29c494b3143e9a97ad8 (patch)
treed35f9f87919739bd39fedf242cbe73b4d94a0200 /unify.typ
parentf9da3edb5ce385b61f856b4dfa019146b6d975dc (diff)
downloadsame-578d2b3bac4bcf698d18c29c494b3143e9a97ad8.tar.gz
same-578d2b3bac4bcf698d18c29c494b3143e9a97ad8.tar.bz2
same-578d2b3bac4bcf698d18c29c494b3143e9a97ad8.zip
set per and delimiter parameters globally (curry unify methods)
Diffstat (limited to 'unify.typ')
-rw-r--r--unify.typ9
1 files changed, 9 insertions, 0 deletions
diff --git a/unify.typ b/unify.typ
new file mode 100644
index 0000000..a8ed0da
--- /dev/null
+++ b/unify.typ
@@ -0,0 +1,9 @@
+#import "@preview/unify:0.8.1": (
+ num, numrange as sys-numrange, qty as sys-qty, qtyrange as sys-qtyrange, unit as sys-unit,
+)
+
+// Set global defaults via currying
+#let unit = sys-unit.with(per: "/")
+#let qty = sys-qty.with(per: "/")
+#let numrange = sys-numrange.with(delimiter: "\"to\"")
+#let qtyrange = sys-qtyrange.with(per: "/", delimiter: "\"to\"")