From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/106812 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Geert Dobbels Newsgroups: gmane.comp.tex.context Subject: Re: Float positioning Date: Thu, 9 Apr 2020 20:44:16 +0200 Message-ID: <6aaae701-e4aa-a556-2895-162072610916@gmail.com> References: <20200406141550.a635e708f8f4e81e6dbba45c@yandex.ru> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============4782207766802193821==" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="76968"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Thu Apr 09 20:45:13 2020 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 1jMcAq-000Jtj-JU for gctc-ntg-context-518@m.gmane-mx.org; Thu, 09 Apr 2020 20:45:12 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id E3189183046; Thu, 9 Apr 2020 20:44:30 +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 2ajiMZPwIS88; Thu, 9 Apr 2020 20:44:28 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id B2D66183062; Thu, 9 Apr 2020 20:44:28 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 774EF18302E for ; Thu, 9 Apr 2020 20:44:27 +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 i309vbmklIRk for ; Thu, 9 Apr 2020 20:44:26 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.128.41; helo=mail-wm1-f41.google.com; envelope-from=dobbels.geert@googlemail.com; receiver= Original-Received: from mail-wm1-f41.google.com (mail-wm1-f41.google.com [209.85.128.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 D87BC181EB4 for ; Thu, 9 Apr 2020 20:44:26 +0200 (CEST) Original-Received: by mail-wm1-f41.google.com with SMTP id h2so835817wmb.4 for ; Thu, 09 Apr 2020 11:44:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=from:subject:to:references:message-id:date:user-agent:mime-version :in-reply-to:content-language; bh=jw8edyWYZ7HCTJ1oOHeSNB6WI1fGm2M513164B5IuIo=; b=auSGRPjj2Sihr8yQFaLSlQt2WHFTfVseqQ3/22vIDt7dW4hUuo/cYHAj8XAdEM9ZRe kxmpIvmWtpu2UafM0AE4rAsESOXEjwg2ZqWA1wRlD6B82UQnA3zFgCK3rq66uDH4hmIL cQQtbx5+H8zEHwO4D1qvvouckwkApPCPNwrZnC9RUBxhH/vNEoqWKUsANKqUM5fDKZfF mtEpxLGvg6hoHlN2ZDolWs3zsYjl3B+bx/JMgqQxPTfW4cneuI1O5+bGLxzMXQjaUfaN +eiSuE6yNTYszxtKGJmK6ZyTStuEt2Ird9QwMAYNnZ9nTTQOqOZcetkXhb49PfoWaOdT cCig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:to:references:message-id:date :user-agent:mime-version:in-reply-to:content-language; bh=jw8edyWYZ7HCTJ1oOHeSNB6WI1fGm2M513164B5IuIo=; b=EI1kcp1YuHz21wm1ngt7V2oMlmZRds5rjbqL1amjorEmB2ESF4C+n7UPYheL3MoCM0 0+ibuWAnAGpQPMyX8n6wjQ5mJuSrDv75wo3Q/8dJCpPwCY8RSbA98Y6t2QTvRZ7kiw03 E4Q8vfzZ8T15mOe1Oiw5Mxsh7r9t3qzhCpgtGifU1RhfYFHtjryHyEsO4BsyICUxklaR p1fCkSQpo7+fQ2I2eIE1cDt2MuQsM7buB+mPNqGzqPRJ0NWdX51qY67ELQ1dtw2IyIQQ WywoE73WEUZcieEj+m++tQDu1Lo8HciO2l1xzUiJYJnQutFrQNbLPZxp2PXEwjpoC8mt uaOQ== X-Gm-Message-State: AGi0PuaQ1dO3qvcYwScK4uJVVZ5XvsBHjhQgOOvIEwhWF4lt/B31j7OZ wfrxJAoQVm51apd7ZRr9bkNWMCcGJ8g= X-Google-Smtp-Source: APiQypIcf2DOCpp5ZFiZjjB5ZlSiKGdEydFEoShhteyIucsOuxACSIoMNxuttcKXD3Oo/MFt+5cvew== X-Received: by 2002:a1c:a443:: with SMTP id n64mr1294002wme.144.1586457866116; Thu, 09 Apr 2020 11:44:26 -0700 (PDT) Original-Received: from [192.168.1.49] (186.red-80-39-46.staticip.rima-tde.net. [80.39.46.186]) by smtp.googlemail.com with ESMTPSA id i5sm40328318wrr.12.2020.04.09.11.44.18 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 09 Apr 2020 11:44:20 -0700 (PDT) X-Google-Original-From: Geert Dobbels In-Reply-To: <20200406141550.a635e708f8f4e81e6dbba45c@yandex.ru> Content-Language: en-US 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:106812 Archived-At: This is a multi-part message in MIME format. --===============4782207766802193821== Content-Type: multipart/alternative; boundary="------------3F01F83117FAAEB1C859A7B6" Content-Language: en-US This is a multi-part message in MIME format. --------------3F01F83117FAAEB1C859A7B6 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Hello, Maybe I did not understand the problem, but doesn't the code below give you the expected result?: \setupexternalfigures[location={local,default}] \starttext \dorecurse{3}{\input{knuth}} \placefigure[force]{cow}{\externalfigure[cow][width=150mm]} \input{knuth} \placefigure[force,page]{one more cow}{\externalfigure[cow][width=150mm]} \placefigure[force,page]{cow again}{\externalfigure[cow][width=150mm]} \dorecurse{10}{\input{knuth}} \stoptext Geert On 06/04/2020 13:15, Alexey Kryukov wrote: > Hi all, > > Suppose I have the following document: > > \setupexternalfigures[location={local,default}] > \starttext > > \dorecurse{3}{\input{knuth}} > \placefigure[top]{cow}{\externalfigure[cow][width=150mm]} > \input{knuth} > \placefigure[page]{one more cow}{\externalfigure[cow][width=150mm]} > \placefigure[page]{cow again}{\externalfigure[cow][width=150mm]} > \dorecurse{10}{\input{knuth}} > \stoptext > > Here I would expect the text flow to continue below the first image, > and then two more images to be positioned on separate pages. Instead I > get no text at all at the page with the Figure 1 and one more > blank page after it. Only after the last image the text flow continues. > > Since similar situations are very common for documents which contain > several large illustrations, I would like to know if there are any > workarounds for the problem. > --------------3F01F83117FAAEB1C859A7B6 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 7bit Hello,

Maybe I did not understand the problem, but doesn't the code below give you the expected result?:

\setupexternalfigures[location={local,default}]

\starttext

\dorecurse{3}{\input{knuth}}

\placefigure[force]{cow}{\externalfigure[cow][width=150mm]}

\input{knuth}

\placefigure[force,page]{one more cow}{\externalfigure[cow][width=150mm]}

\placefigure[force,page]{cow again}{\externalfigure[cow][width=150mm]}

\dorecurse{10}{\input{knuth}}

\stoptext


Geert

On 06/04/2020 13:15, Alexey Kryukov wrote:
Hi all,

Suppose I have the following document:

\setupexternalfigures[location={local,default}]
\starttext

\dorecurse{3}{\input{knuth}}
\placefigure[top]{cow}{\externalfigure[cow][width=150mm]}
\input{knuth}
\placefigure[page]{one more cow}{\externalfigure[cow][width=150mm]}
\placefigure[page]{cow again}{\externalfigure[cow][width=150mm]}
\dorecurse{10}{\input{knuth}}
\stoptext

Here I would expect the text flow to continue below the first image,
and then two more images to be positioned on separate pages. Instead I
get no text at all at the page with the Figure 1 and one more
blank page after it. Only after the last image the text flow continues.

Since similar situations are very common for documents which contain
several large illustrations, I would like to know if there are any
workarounds for the problem.


--------------3F01F83117FAAEB1C859A7B6-- --===============4782207766802193821== 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== --===============4782207766802193821==--