From 230e15f6cb19dda08ec5280f4a8d047aaece4b0a Mon Sep 17 00:00:00 2001 From: Denis Chevalier Date: Mon, 10 Aug 2026 07:36:27 +0200 Subject: push unify.lib into its own lib subdirectory --- electrical-specifications.typ | 2 +- introduction.typ | 2 +- lib/unify.typ | 9 +++++++++ mechanical-specifications.typ | 2 +- module-design.typ | 2 +- unify.typ | 9 --------- 6 files changed, 13 insertions(+), 13 deletions(-) create mode 100644 lib/unify.typ delete mode 100644 unify.typ diff --git a/electrical-specifications.typ b/electrical-specifications.typ index a7c5a76..320ec1e 100644 --- a/electrical-specifications.typ +++ b/electrical-specifications.typ @@ -1,4 +1,4 @@ -#import "unify.typ": qty, qtyrange +#import "lib/unify.typ": qty, qtyrange = Electrical specifications diff --git a/introduction.typ b/introduction.typ index 93081cf..3fb9616 100644 --- a/introduction.typ +++ b/introduction.typ @@ -1,4 +1,4 @@ -#import "unify.typ": qty +#import "lib/unify.typ": qty = Introduction diff --git a/lib/unify.typ b/lib/unify.typ new file mode 100644 index 0000000..a8ed0da --- /dev/null +++ b/lib/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\"") diff --git a/mechanical-specifications.typ b/mechanical-specifications.typ index ba257c8..e39a05e 100644 --- a/mechanical-specifications.typ +++ b/mechanical-specifications.typ @@ -1,4 +1,4 @@ -#import "unify.typ": qty, qtyrange +#import "lib/unify.typ": qty, qtyrange = Mechanical specifications diff --git a/module-design.typ b/module-design.typ index 4880496..bebb2ce 100644 --- a/module-design.typ +++ b/module-design.typ @@ -1,4 +1,4 @@ -#import "unify.typ": num, qty, qtyrange, unit +#import "lib/unify.typ": num, qty, qtyrange, unit #import "@preview/diverential:0.3.0": * = Module design diff --git a/unify.typ b/unify.typ deleted file mode 100644 index a8ed0da..0000000 --- a/unify.typ +++ /dev/null @@ -1,9 +0,0 @@ -#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\"") -- cgit