From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/111281 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jano Kula Newsgroups: gmane.comp.tex.context Subject: Re: very long hanging caption Date: Fri, 7 May 2021 11:55:10 +0200 Message-ID: References: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============6125611834852033842==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11358"; mail-complaints-to="usenet@ciao.gmane.io" To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri May 07 11:56:14 2021 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lexDS-0002mL-Rs for gctc-ntg-context-518@m.gmane-mx.org; Fri, 07 May 2021 11:56:14 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 978E52832C4; Fri, 7 May 2021 11:55:53 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id tfzbH-6vgXB1; Fri, 7 May 2021 11:55:51 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id BF10E2832C6; Fri, 7 May 2021 11:55:51 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 1A4232832C3 for ; Fri, 7 May 2021 11:55:51 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Syi9qPZokLkL for ; Fri, 7 May 2021 11:55:49 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.210.41; helo=mail-ot1-f41.google.com; envelope-from=jano.kula@gmail.com; receiver= Original-Received: from mail-ot1-f41.google.com (mail-ot1-f41.google.com [209.85.210.41]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 92882282F15 for ; Fri, 7 May 2021 11:55:49 +0200 (CEST) Original-Received: by mail-ot1-f41.google.com with SMTP id i23-20020a9d68d70000b02902dc19ed4c15so3450551oto.0 for ; Fri, 07 May 2021 02:55:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=u/qYIQ6Oui5UYqsgcB4zqvW9NAZcsaKVD8qCrDEsb68=; b=aTbzGexUFyNd4lGG1z3aoCwDAh6qt7SUKLceqk0Px57grYo6DFZFV8qLPtx03ib5rD +jjBMpvo0A0tDrFeEmJCyeYUcmnknEgTrydSm/olMXylDeJ2dn48Z5dSx3AD/0I0VE9n ftpwj+7IcxAUKooqrohNUHRjq7hrCXZyshPSGQb8DMjpvpvUIi00tJLpYjH08g8Koqoq nCAoI+3Nf8IcovemwoZW95J7FkqDxkUCaR2on/my5HQ7jvhEO73FhaA84B17WLcSTFUj 0qidA2Jxlf1qnQmYXzhP1JqbMMacoYWQq4DkYfvFFahAzT93gryhCJ1n1wcBeZABUrof yTPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=u/qYIQ6Oui5UYqsgcB4zqvW9NAZcsaKVD8qCrDEsb68=; b=RqIh+K8pf6FDv42LqqTFZW9p2fuXVA5FdEED8k1qIm4a1Rzt/VRRhrBXzLzNRRcbjy TxBJYyFjcZJXY9vn+HW3AiZD0J25kMwOwyrbiXeBN+rdoY8NS10jMX37upOkN/cKYP8K FrtsSrk+gxNZRc//vx69lnZkHtfgRsKfU5lX1K7b7BmWZ3zmtVmScRfTIZDM1OIgPIoG JZqo38ruPhQ8qDYv06c+46T3+CnkmehfW1QopmC9iTrWouit3VnbdrW7Ei4xHsxxYrBn /QJiVUO7aiYsLmocFhiC/hveCUW7zDj1Vc0TJqmELgzNVoj3+wjNHI2ArSAsMEDb6Rmy TF7g== X-Gm-Message-State: AOAM530fuMv/Yotfcy0+Pah/V/o5UdMvLrpjLzAaDs7miNZFDBaL4IHv CJ4yWlvJAfO+9dA0ZtP92PF2w/QLmN2tivyFZZ0/VbVL X-Google-Smtp-Source: ABdhPJwvsE1hI4dyw5f8+XsLh14BwddhU2i8PWf4qaGQKdEqcpNKZZaPydj/9RASm6qjh4UQnxalmBwxA+EGTNRpOLs= X-Received: by 2002:a9d:5f82:: with SMTP id g2mr7448167oti.4.1620381347575; Fri, 07 May 2021 02:55:47 -0700 (PDT) In-Reply-To: X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.io gmane.comp.tex.context:111281 Archived-At: --===============6125611834852033842== Content-Type: multipart/alternative; boundary="0000000000009f7d0f05c1ba6e52" --0000000000009f7d0f05c1ba6e52 Content-Type: text/plain; charset="UTF-8" Hello again, does somebody have any hint on the long captions? Thanks, Jano On Sun, May 2, 2021 at 6:10 PM Jano Kula 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 > > > > > > > --0000000000009f7d0f05c1ba6e52 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello again,
does somebody have any h= int on the long captions?
Thanks,
J= ano

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

having images with very long captions I&#= 39;d like captions to be wrapped around the figures. I would guess hang=3Dyes parameter could do so, but not in my cas= e.=C2=A0

----------------= text of
|=C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 | the caption=C2=A0
|=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 | which is=
---------------- much longer
than the height of the image<= /div>
and should be wrapped around the image

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

% macr= os=3Dmkiv
\setupcaption[
=C2=A0 number=3Dno,
=C2=A0 hang=3Dyes,=C2=A0 align=3D{nothyphenated,flushleft},
=C2=A0 distance=3D4mm,
=C2= =A0 location=3Drighthanging]

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

\starttext
\startplacefigure[= title=3D{\getbuffer[caption]}]
\externalfigure[cow][height=3D40mm,width= =3D80mm]
\stopplacefigure
\stoptext


Thank you,
Jano






--0000000000009f7d0f05c1ba6e52-- --===============6125611834852033842== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============6125611834852033842==--