-
Hi there, I was wondering if it was possible to print the entries in a grid like way. From the advanved documentation I didnt get it working. For example I currently have this setup and want to make all explanations start at the red line. The code I used to display it like this is: #import "@preview/glossarium:0.5.2": register-glossary, print-glossary, gls, glspl
#import "../acronyms.typ": acronyms
#heading(outlined: false, numbering: none)[Abkürzungsverzeichnis]
#register-glossary(acronyms)
#let __has_attribute(entry, key) = {
let attr = entry.at(key, default: "")
return attr != "" and attr != []
}
#let has-long(entry) = __has_attribute(entry, "long")
#let my-print-title(entry) = {
let caption = []
let txt = text.with(weight: 600)
if has-long(entry) {
caption += txt(emph(entry.short)) + [ #h(20pt) ] + entry.long
} else {
caption += txt(emph(entry.short))
}
return caption
}
#print-glossary(
acronyms,
disable-back-references: true,
user-print-title: my-print-title
) Is there any way to make this work 🙂 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hello @alex289, this is rather similar to In any case, for grid-like output, it's best to override |
Beta Was this translation helpful? Give feedback.
Hello @alex289, this is rather similar to
https://forum.typst.app/t/how-to-fully-control-visualization-of-a-glossary-in-glossarium/1694
My best advice is to adapt the code to your needs
If you find yourself with technical issues, I'll try my best to help
In any case, for grid-like output, it's best to override
user-print-glossary
, because you can controlentries
andgroups
, that is you write the loop to generate the whole glossary