Open internettechnik opened 3 weeks ago
I wouldn't be able to guess what changed. Could you isolate your code for an example? It works on 0.5.0?
@internettechnik ?
I myb had the same "issue". I didn't check between version, but I also had same weird styling when importing the package.
My issue was user related. The styles that I had applied before were the cause of the bad alignment.
I guess glossarium uses figures and captions under the hood to link and display the entries in the glossar. So your individual styling of figures and captions will take effect on the glossar. As I understand it, this functionality of leaving the styling to the user is intendet ( #60 )
Sadly I wasnt able to reproduce a isolated example in my given time. But I can present and explain my fix.
[
#set figure(placement: none)
#show figure: set block(width: 100%)
#show figure.caption: c =>[
#align(left, [#c.body])
]
#heading([Glossar])
#glossarium.print-glossary(glossar-list)
]
[ ]
so that the style adjustment only affects the glossar.#set figure(placement: none)
) #show figure: set block(width: 100%)
#show figure.caption: c =>[
#align(left, [#c.body])
]
If you are styling figure.caption
of all kinds, it will affect glossary entries, as they are indeed figure elements.
Glad you got it working!
unfortunately, the alignment seems to be centered now (0.5.1) which differs from 0.5.0 and cannot be changed / set with set text align directive.