ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <j.hagen@xs4all.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>,
	Jano Kula <jano.kula@gmail.com>
Subject: Re: very long hanging caption
Date: Fri, 7 May 2021 17:22:45 +0200	[thread overview]
Message-ID: <fde5b71a-5fb2-35d1-92e7-95a869ed40c7@xs4all.nl> (raw)
In-Reply-To: <CAPefzZ2oOqspGm8pNWjhT=pJH6Wh1ymwnOJKt8nx6-tJZVsjeA@mail.gmail.com>

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 <jano.kula@gmail.com 
> <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
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________

      reply	other threads:[~2021-05-07 15:22 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-02 16:10 Jano Kula
2021-05-07  9:55 ` Jano Kula
2021-05-07 15:22   ` Hans Hagen [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=fde5b71a-5fb2-35d1-92e7-95a869ed40c7@xs4all.nl \
    --to=j.hagen@xs4all.nl \
    --cc=jano.kula@gmail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).