3 Commits

2 changed files with 11 additions and 5 deletions

View File

@@ -18,10 +18,11 @@
}
"(" + abbrs.pairs().map((v) => { v.at(0) + ":\"" + v.at(1) + "\"" }).join(",") + ")"
});
let target_label = label("abbr_" + abbreviation);
if type(text) != type(none) {
text + " (" + abbreviation + ")";
link(target_label, text + " (" + abbreviation + ")");
} else {
abbreviation;
link(target_label, abbreviation)
}
}

View File

@@ -5,7 +5,7 @@
#let base_font = "Inter";
#let mono_font = "Noto Sans Mono";
#let mono_font_compensation = 1.3em;
#let mono_font_compensation = 1.3010575323879552;
#let serif_font = "Merriweather";
#let tul_logomark_size = 6.5em;
@@ -83,7 +83,7 @@
}
// other
show raw: set text(font: mono_font, size: mono_font_compensation);
show raw: set text(font: mono_font, size: mono_font_compensation * 1em);
show raw.where(block: true): it => {
block(it, fill: rgb("#eee"), inset: 1em)
};
@@ -400,7 +400,12 @@
gutter: 1em,
..abbrs.pairs().map((a) => {
(
align(left, block(text(a.at(0), weight: "bold"), width: max_abbr_width + 1em)),
align(left, {
[
#block(text(a.at(0), weight: "bold"), width: max_abbr_width + 1em)
#label("abbr_" + a.at(0))
]
}),
text(a.at(1))
)
}).flatten()