Am 09.09.26 um 11:38 schrieb Hans Hagen via ntg-context:
On 9/9/2026 7:22 AM, Henning Hraban Ramm wrote:
Am 07.09.26 um 23:12 schrieb Hans Hagen via ntg-context:
I pushed an update (hopefully ok because bots were saturating the
logs and such so we ran out of disk space).
Apart from fixes for issues mentioned / encountered the last weeks we
also added a goodie file for lm so that Jim can go forward.
Thank you!
Unfortunately, I see changes WRT floats:
captions that used to be left aligned are now centered,
combinations are wider than textwidth, and their captions are even wider.
I found a MWE for caption alignment, but so far not for the
combination problem:
\useMPlibrary[dum]
\setupcaptions[figure][
align=flushleft,
number=no,
]
\starttext
\startplacefigure[location=top,title=Some caption]
\externalfigure[dummy][width=1tw]
\stopplacefigure
\stoptext
fixed in next upload, when you're in a hurry:
\permanent\protected\def\doifelseframed#1%
{\ifcstok{#1\c!frame }\v!on \expandafter\firstoftwoarguments
\orelse\ifcstok{#1\c!frame }\v!closed\expandafter\firstoftwoarguments
\orelse\ifcstok{#1\c!frame }\v!round
\expandafter\firstoftwoarguments
\orelse\ifcstok{#1\c!topframe }\v!on \expandafter\firstoftwoarguments
\orelse\ifcstok{#1\c!bottomframe}\v!on \expandafter\firstoftwoarguments
\orelse\ifcstok{#1\c!leftframe }\v!on \expandafter\firstoftwoarguments
\orelse\ifcstok{#1\c!rightframe }\v!on \expandafter\firstoftwoarguments
\orelse\ifempty{#1\c!background }\expandafter\secondoftwoarguments
\else \expandafter\firstoftwoarguments\fi}
Thank you!
That fixes the problem for multi line captions. The other patch too.
The caption is only aligned to the image if I set the width to 1tw or
1hs, though. (1fw didn’t work.) And it only helps if images are that
wide, i.e. it interferes with sidefloats and other not-full-width cases.
How can I set the caption width to the image width? AFAIR that wasn’t
necessary before.
Hraban
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : [email protected] /
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___________________________________________________________________________________