From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/100433 Path: news.gmane.org!.POSTED!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Strange behaviour of \start/stopplacefigure Date: Mon, 02 Apr 2018 16:03:49 +0200 Message-ID: <5AC23845.5070807@gmail.com> References: <20180330170113.GA15447@akela.mendelu.cz> <88f34c65-a6bd-f09f-7244-e402089e8ef4@xs4all.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2633842351024132891==" X-Trace: blaine.gmane.org 1522677735 7928 195.159.176.226 (2 Apr 2018 14:02:15 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 2 Apr 2018 14:02:15 +0000 (UTC) User-Agent: Postbox 5.0.24 (Macintosh/20180302) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Apr 02 16:02:11 2018 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f302E-0001tL-Bu for gctc-ntg-context-518@m.gmane.org; Mon, 02 Apr 2018 16:02:10 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id DB0B95C963C; Mon, 2 Apr 2018 16:04:05 +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 dGyIwotvMHPU; Mon, 2 Apr 2018 16:04:05 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 2531C5C9636; Mon, 2 Apr 2018 16:04:05 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 10E635C9635 for ; Mon, 2 Apr 2018 16:04:04 +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 eKHGE-LIKNFM for ; Mon, 2 Apr 2018 16:04:03 +0200 (CEST) Original-Received: from mail-wm0-f44.google.com (mail-wm0-f44.google.com [74.125.82.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 22A0F5C9628 for ; Mon, 2 Apr 2018 16:03:53 +0200 (CEST) Original-Received: by mail-wm0-f44.google.com with SMTP id t67so5847992wmt.0 for ; Mon, 02 Apr 2018 07:03:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to; bh=gYoBNfidvoAnsFV8o0IjXbzo3gqmdrnKaEoSVyr88lU=; b=LGfLJtXJfrCM9BvPQxNpvXu5CwR/4avd++JFObUIx6ROvJU6w902FI2SpWPdWYqvkH aHJx4q17Dm3ZI1JJpe0Ub60z/hK95OAy1Ppyj5tZ6+qSDQRDjhmalqVhj8fKDE1zKO4z LWWj/0orCyOwKldy9SJmivVglz+/bW+379bBuAEJm2ChNUq/4eL0kxeyZjKkTCW47XJ6 ZaJDaVwyFg7OOeMrSgwLwAZM89X8DsYXiBoaVROIrEXHRp1YHZSQ0FkkVJ2ZkGERVhFP yDKQY4KvzzL8ZfVil95WoUH2aG5P7fU9HOVShI3zSvv/gz7z5H8idmevmrEXDxMq2D8D WSEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to; bh=gYoBNfidvoAnsFV8o0IjXbzo3gqmdrnKaEoSVyr88lU=; b=S5f+AuGZt8BGhlnEYdRM+PdMRPY9ZecDVrwdIdJRf3aD9/AeJwWcLaVkiS+3KZGfSn 9EcevzDlttdno3wjF2lNGNpakylvYCK2Nk2ro97bT6TNAvwHEMBzQFvOSdflq2435PiF SIc74FGilvtAXSfMS8783PlWnDo2Ff1tpqgmAQV03sZ/Qm8mrSQS+nz2KJQV/3ZpyCOj UzlB19+UmCJrvX6kNmUHP+evmjzUmxpXDyHBvDgRtEWUxB41IqOpygGCwXKIXMZ+VZ7h BiaXZwyJel5/ztUaPUnPUQPGCBA3CehTzZ1fAsbfXmGQh3gTDBec4qWRlacLICl/oT7W 27HA== X-Gm-Message-State: AElRT7HFVaHs4qW5uqQ/d9nkhL5envG7v664ufc4uxPCBOG0+QEgEtJd HjMWHdLUnkiJugeEUc6KPqWOSioO X-Google-Smtp-Source: AIpwx4+IYG7lbZZQZFGTY1HnzET1od7jKUWIrxYyUb4zsZZuvDmul7nQqToq+51aIVdAYvwNotu86w== X-Received: by 10.80.232.11 with SMTP id e11mr12509550edn.12.1522677832222; Mon, 02 Apr 2018 07:03:52 -0700 (PDT) Original-Received: from [192.168.1.11] (x4dbe3d32.dyn.telefonica.de. [77.190.61.50]) by smtp.gmail.com with ESMTPSA id e56sm412469edb.84.2018.04.02.07.03.51 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 02 Apr 2018 07:03:51 -0700 (PDT) In-Reply-To: <88f34c65-a6bd-f09f-7244-e402089e8ef4@xs4all.nl> X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 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.org gmane.comp.tex.context:100433 Archived-At: This is a multi-part message in MIME format. --===============2633842351024132891== Content-Type: multipart/alternative; boundary="------------090004080507050306040107" This is a multi-part message in MIME format. --------------090004080507050306040107 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit > Tomas Hala > 30. März 2018 um 19:01 > Hi, > > in the example below I came across the very strange behaviour of key > location: if I use values none or top, the following paragraph is indented > according to the settings whereas if I use the value bottom, > the first line of the following paragraph starts just on the left, > without any indentation. > > What am I doing wrong? > > Thanks for a help, > > Tomáš > > %%%%%%%%%%%%%%%%%%%%%% TL2017 > > \starttext > \indenting[yes,2em,first] > \setupfloat[indentnext=yes] > > 1none. \input knuth > > \startplacefigure[location={none,}] > \setupcaption[width=0.45\makeupwidth,align={nothyphenated,middle},textcommand=\crlf,distance=0cc] > \startfloatcombination[2*1] > \placefigure{caption left}{\externalfigure[cow.pdf][height=5cm]} > \placefigure{caption right}{\externalfigure[cow.pdf][height=5cm]} > \stopfloatcombination > \stopplacefigure > > 1top. \input knuth > > \startplacefigure[location={top,none,}] > \setupcaption[width=0.45\makeupwidth,align={nothyphenated,middle},textcommand=\crlf,distance=0cc] > \startfloatcombination[2*1] > \placefigure{caption left}{\externalfigure[cow.pdf][height=5cm]} > \placefigure{caption right}{\externalfigure[cow.pdf][height=5cm]} > \stopfloatcombination > \stopplacefigure > > 1bottom. \input knuth > > \startplacefigure[location={bottom,none,}] > \setupcaption[width=0.45\makeupwidth,align={nothyphenated,middle},textcommand=\crlf,distance=0cc] > \startfloatcombination[2*1] > \placefigure{caption left}{\externalfigure[cow.pdf][height=5cm]} > \placefigure{caption right}{\externalfigure[cow.pdf][height=5cm]} > \stopfloatcombination > \stopplacefigure > > 1end. \input knuth !!! NOT INDENTED > > \stoptext > > %%%%%%%%%%%%%%%%%%%%%% > ___________________________________________________________________________________ > 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 > 2. April 2018 um 15:41 > > That key only is for regular (here) floats The problem is that float with the “bottom” or “auto” positions don’t indent the paragraph which appears after the float while “top” does it. %%%% begin example \setupindenting[yes,6cm] \setupfloat[figure][indentnext=yes] \starttext \setupbodyfont[modern] {\bf NONE:} \input lorem \placefigure[here]{HERE}{\blackrule[width=6cm,height=2cm]} {\bf HERE:} \input lorem \placefigure[top]{TOP}{\blackrule[width=6cm,height=2cm]} {\bf TOP:} \input lorem \placefigure[bottom]{BOTTOM}{\blackrule[width=6cm,height=2cm]} {\bf BOTTOM:} \input lorem \placefigure[auto]{AUTO}{\blackrule[width=6cm,height=2cm]} {\bf AUTO:} \input lorem \stoptext %%%% end example The reason for this are these line in page-one.mkiv: \def\page_one_place_float_auto {\page_one_place_float_otherwise} \def\page_one_place_float_top {\page_one_place_float_otherwise\nonoindentation} \def\page_one_place_float_bottom {\page_one_place_float_otherwise} Wolfgang --------------090004080507050306040107 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit

30. März 2018 um 19:01
Hi,

in the example below I came across the very strange behaviour of key
location: if I use values none or top, the following paragraph is indented
according to the settings whereas if I use the value bottom,
the first line of the following paragraph starts just on the left,
without any indentation.

What am I doing wrong?

Thanks for a help,

Tomáš

%%%%%%%%%%%%%%%%%%%%%% TL2017

\starttext
\indenting[yes,2em,first]
\setupfloat[indentnext=yes]

1none. \input knuth

\startplacefigure[location={none,}]
\setupcaption[width=0.45\makeupwidth,align={nothyphenated,middle},textcommand=\crlf,distance=0cc]
\startfloatcombination[2*1]
\placefigure{caption left}{\externalfigure[cow.pdf][height=5cm]}
\placefigure{caption right}{\externalfigure[cow.pdf][height=5cm]}
\stopfloatcombination
\stopplacefigure

1top. \input knuth

\startplacefigure[location={top,none,}]
\setupcaption[width=0.45\makeupwidth,align={nothyphenated,middle},textcommand=\crlf,distance=0cc]
\startfloatcombination[2*1]
\placefigure{caption left}{\externalfigure[cow.pdf][height=5cm]}
\placefigure{caption right}{\externalfigure[cow.pdf][height=5cm]}
\stopfloatcombination
\stopplacefigure

1bottom. \input knuth

\startplacefigure[location={bottom,none,}]
\setupcaption[width=0.45\makeupwidth,align={nothyphenated,middle},textcommand=\crlf,distance=0cc]
\startfloatcombination[2*1]
\placefigure{caption left}{\externalfigure[cow.pdf][height=5cm]}
\placefigure{caption right}{\externalfigure[cow.pdf][height=5cm]}
\stopfloatcombination
\stopplacefigure

1end. \input knuth !!! NOT INDENTED

\stoptext

%%%%%%%%%%%%%%%%%%%%%%
___________________________________________________________________________________
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
___________________________________________________________________________________
2. April 2018 um 15:41

That key only is for regular (here) floats

The problem is that float with the “bottom” or “auto” positions don’t indent the paragraph
which appears after the float while “top” does it.


%%%% begin example
\setupindenting[yes,6cm]
\setupfloat[figure][indentnext=yes]

\starttext

\setupbodyfont[modern]

{\bf NONE:} \input lorem

\placefigure[here]{HERE}{\blackrule[width=6cm,height=2cm]}

{\bf HERE:} \input lorem

\placefigure[top]{TOP}{\blackrule[width=6cm,height=2cm]}

{\bf TOP:} \input lorem

\placefigure[bottom]{BOTTOM}{\blackrule[width=6cm,height=2cm]}

{\bf BOTTOM:} \input lorem

\placefigure[auto]{AUTO}{\blackrule[width=6cm,height=2cm]}

{\bf AUTO:} \input lorem

\stoptext
%%%% end example


The reason for this are these line in page-one.mkiv:

\def\page_one_place_float_auto       {\page_one_place_float_otherwise}
\def\page_one_place_float_top        {\page_one_place_float_otherwise\nonoindentation}
\def\page_one_place_float_bottom     {\page_one_place_float_otherwise}


Wolfgang
--------------090004080507050306040107-- --===============2633842351024132891== 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 X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f --===============2633842351024132891==--