From b15b944bd3f7b580207ec2462ba8c94d45e3ff8a Mon Sep 17 00:00:00 2001 From: vky Date: Mon, 31 Aug 2026 03:34:12 +0200 Subject: [PATCH] added macro for qualifier display --- data/macros.typ | 17 +++++++++++++++++ data/svg/qualifier/test.svg | 17 ----------------- main.typ | 4 ++-- 3 files changed, 19 insertions(+), 19 deletions(-) delete mode 100644 data/svg/qualifier/test.svg diff --git a/data/macros.typ b/data/macros.typ index ce1b46d..04cdf92 100644 --- a/data/macros.typ +++ b/data/macros.typ @@ -61,6 +61,23 @@ ]] } +#let qualif( + glyph, + size: 1em, + inset: 0em, + baseline: 0em, +) = { + box( + // stroke: 0.1pt, + height: size, + width: size, + inset: -1em, + )[ + #align(center + horizon)[ + #image("svg/qualifier/" + glyph + ".svg", scaling: "smooth") + ]] +} + #let glinline( glyph, size: 0.74em, diff --git a/data/svg/qualifier/test.svg b/data/svg/qualifier/test.svg deleted file mode 100644 index abb3924..0000000 --- a/data/svg/qualifier/test.svg +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/main.typ b/main.typ index 4e04656..b438db7 100644 --- a/main.typ +++ b/main.typ @@ -1,5 +1,5 @@ #import "data/setup.typ": * -#import "data/macros.typ": example, glinline, glyphy, numy +#import "data/macros.typ": example, glinline, glyphy, numy, qualif #show: template #set document( @@ -199,7 +199,7 @@ Ces _glyphes_ ne se suffisent cependant pas à eux-même. En effet, lorsqu'ils s if calc.even(x) { right } else { left } ), columns: 8, - [.], [0], [:], [1], [<], [2], [>], [3], + [#qualif("ascended")], [0], [:], [1], [<], [2], [>], [3], )] #example(