From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/113415 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Adam Reviczky via ntg-context Newsgroups: gmane.comp.tex.context Subject: Re: Paragraph break over pages with hanging float Date: Mon, 15 Nov 2021 14:20:11 +0000 Message-ID: References: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1310551575878284790==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24422"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Adam Reviczky , mailing list for ConTeXt users To: Hans Hagen Original-X-From: ntg-context-bounces@ntg.nl Mon Nov 15 15:20:47 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 1mmcql-0006B6-AT for gctc-ntg-context-518@m.gmane-mx.org; Mon, 15 Nov 2021 15:20:47 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id EE5B628937F; Mon, 15 Nov 2021 15:20:27 +0100 (CET) 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 J5X5PH2sKJP5; Mon, 15 Nov 2021 15:20:25 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 9C89428937D; Mon, 15 Nov 2021 15:20:25 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id CDD8B28937D for ; Mon, 15 Nov 2021 15:20:23 +0100 (CET) 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 I8mLFNoBZCUl for ; Mon, 15 Nov 2021 15:20:22 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.208.53; helo=mail-ed1-f53.google.com; envelope-from=reviczky@gmail.com; receiver= Original-Received: from mail-ed1-f53.google.com (mail-ed1-f53.google.com [209.85.208.53]) (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 AD18328930F for ; Mon, 15 Nov 2021 15:20:22 +0100 (CET) Original-Received: by mail-ed1-f53.google.com with SMTP id y12so16147702eda.12 for ; Mon, 15 Nov 2021 06:20:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=HjbeqDZUhyz/diTg7LOPaFjABRgTEM4JKn236xNceuo=; b=GfAXnUnwEn5w826HF4z2Qvj+jn0DPzRVfTQFdR5m6BnNjaIdTkbd82v7xPKgwoI8V5 T8CXN/dBOztpB2c6azfFS3JjijkFOIm/w4oXaL5HvzVgUXGEHc3mSBrCEFHLuS711gSb 9C/Hf7wwlLVkZxSb+K4L+Zddxh1IXpR9o7mQN7uBaEcOrDw32jqbeq2IxC5BNmBwFLd7 RZLa7EAm/9ftQ2AaH2cWkXaotcPepK1DVytP1p3EZ0KJl+CmWwVj9nKz1lP88/LREfqr pDoCnhUR25nlX6VICagqIYfZ60Fr1t9CxDud1zWG9u66gvVEu774ldRTGe1ZDk7oCseK OsPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=HjbeqDZUhyz/diTg7LOPaFjABRgTEM4JKn236xNceuo=; b=zHdB5uIqmcBY0zE2E2Y+Asbl7hdTRs0IbtKKPfCKeXTfYbtA4CKdnzvuLUOwl24WyM KX5JWMcHJZlE0foKtQprAl4xAgTSvn59iWGRMmTshMqhIhQ9+lQSyWK3Txw+Hb81Y8Xa g7C9s8SkKhlGz/X3JTP4qg9Fqzjap1PIufsUduWZ/H8XncmxNyRW2Azpo34swQr1G/ig tjU+hZx33eBoEi9ckqbqUGTr2Dt3iJia9QmO7mbHuYdn9Q7IUVVBTS50USfCa/xvhDlI /oC5tQm1ae5Dqi+aYnbrs4k8QqzwlrAhMainrPPPm5IuFCQSylTccu2FiNe9w2NOqlnb dWyQ== X-Gm-Message-State: AOAM530AUigi4UuX2woYkauwRVLSIOf1+7WJSYWT8jU3DpK/cIxAZG4i tesrKykscYia+dMxo+3zMHf0rBshbqRlwvez7Z5OKH7oBX0= X-Google-Smtp-Source: ABdhPJxuRBENgZvPvyVdXtJzqHnkXoJqB15UlGrZIeTR4mol+On6hcb5Xr8TrIB0sjZhf3uGmYBaZ+7wBgvo2hyfhP0= X-Received: by 2002:a05:6402:5113:: with SMTP id m19mr56620221edd.306.1636986022160; Mon, 15 Nov 2021 06:20:22 -0800 (PST) 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:113415 Archived-At: --===============1310551575878284790== Content-Type: multipart/alternative; boundary="0000000000005a6d1a05d0d48216" --0000000000005a6d1a05d0d48216 Content-Type: text/plain; charset="UTF-8" Thank Hans, I thought something along those lines, but thank you for the explanation. Indeed, I probably should do it differently. If the "force" option would not break anything then I would like to try that, otherwise it is all fine as is. This is not really critical and I will rather change the float in my document than create more issues. Regards, Adam On Mon, Nov 15, 2021 at 2:00 PM Hans Hagen wrote: > On 11/15/2021 6:26 AM, Adam Reviczky via ntg-context wrote: > > Hi, > > > > Is there a way to allow a paragraph to break over two pages (between the > > paragraph start and the placement of the float) with a hanging float > > further down the paragraph? > > > > MWE: > > > > \starttext > > \input lorem > > \blank[20*line] > > > > % commenting out the hanging float allows paragraph break > > \startplacefigure[location={right,15*hang}] > > \framed[width=3cm,height=2cm]{graphic} > > \stopplacefigure > > > > \dorecurse{10}{\input lorem} > > \stoptext > > > > When I remove the hanging float, the paragraph is broken down at the > > first pagebreak. > > With the float, the paragraph starts always on the next page, regardless > > of the space left on the previous page. > Yes and no ... tex cannot really lookahead here. But thanks to some > recent new trickery I can provide: > > location={right,15*hang,force} > > However, it really is up to the user to check of all works out right > (but i assume that the 15*hang is also soemthing specific for the > situation). Adapting this already (too) complex mechanism too much is > asking for issues. > > Hans > > ----------------------------------------------------------------- > Hans Hagen | PRAGMA ADE > Ridderstraat 27 | 8061 GH Hasselt | The Netherlands > tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl > ----------------------------------------------------------------- > --0000000000005a6d1a05d0d48216 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thank Hans,

I thought something along those lines, but thank you for the explanation. = Indeed, I probably should do it differently.

If th= e "force" option would not break anything then I would like to tr= y that, otherwise it is all fine as is.
This is not really critic= al and I will rather change the float in my document than create more issue= s.

Regards,
Adam

=
On Mon, No= v 15, 2021 at 2:00 PM Hans Hagen <j= .hagen@xs4all.nl> wrote:
On 11/15/2021 6:26 AM, Adam Reviczky via ntg-context wrote:=
> Hi,
>
> Is there a way to allow a paragraph to break over two pages (between t= he
> paragraph start and the placement of the float) with a hanging float <= br> > further down the paragraph?
>
> MWE:
>
> \starttext
> \input lorem
> \blank[20*line]
>
> % commenting out the hanging float allows paragraph break
> \startplacefigure[location=3D{right,15*hang}]
> \framed[width=3D3cm,height=3D2cm]{graphic}
> \stopplacefigure
>
> \dorecurse{10}{\input lorem}
> \stoptext
>
> When I remove the hanging float, the paragraph is broken down at the <= br> > first pagebreak.
> With the float, the paragraph starts always on the next page, regardle= ss
> of the space left on the previous page.
Yes and no ... tex cannot really lookahead here. But thanks to some
recent new trickery I can provide:

=C2=A0 =C2=A0location=3D{right,15*hang,force}

However, it really is up to the user to check of all works out right
(but i assume that the 15*hang is also soemthing specific for the
situation). Adapting this already (too) complex mechanism too much is
asking for issues.

Hans

-----------------------------------------------------------------
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0Hans Hagen | PRAGMA ADE
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Ridderstraat 27 | 80= 61 GH Hasselt | The Netherlands
=C2=A0 =C2=A0 =C2=A0 =C2=A0 tel: 038 477 53 69 | www.pragma-ade.nl | www.= pragma-pod.nl
-----------------------------------------------------------------
--0000000000005a6d1a05d0d48216-- --===============1310551575878284790== 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== --===============1310551575878284790==--