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
Hello again,
does somebody have any hint on the long captions?
Thanks,
Jano
On Sun, May 2, 2021 at 6:10 PM Jano Kula
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
On 5/7/2021 11:55 AM, Jano Kula wrote:
Hello again, does somebody have any hint on the long captions?
Ok, after a week of struggling with this you deserve an answer: \starttext \starthanging {\framed[align=normal,bottom=\vkern10pt]{\externalfigure[t:/sources/cow.pdf][width=3cm]}} \placefloatcaption[figure][title={\input ward \input ward }] \stophanging \stoptext
Thanks, Jano
On Sun, May 2, 2021 at 6:10 PM Jano Kula
mailto: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
___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___________________________________________________________________________________
-- ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
participants (2)
-
Hans Hagen
-
Jano Kula