Hello again,
does somebody have any hint on the long captions?
Thanks,
Jano

On Sun, May 2, 2021 at 6:10 PM Jano Kula <jano.kula@gmail.com> wrote:
Dear list,

having images with very long captions I'd like captions to be wrapped around the figures. I would guess hang=yes parameter could do so, but not in my case. 

---------------- text of
|              | the caption 
|              | which is
---------------- much longer
than the height of the image
and should be wrapped around the image

The second question is how to change the distance between image and the caption, distance parameter has no effect. MkIV, because footnotes in columns are needed (not in lmtx, yet).

% macros=mkiv
\setupcaption[
  number=no,
  hang=yes,
  align={nothyphenated,flushleft},
  distance=4mm,
  location=righthanging]

\startbuffer[caption]
\dorecurse{60}{very long caption }
\stopbuffer

\starttext
\startplacefigure[title={\getbuffer[caption]}]
\externalfigure[cow][height=40mm,width=80mm]
\stopplacefigure
\stoptext


Thank you,
Jano