From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/94378 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: framedtext Date: Mon, 11 Apr 2016 19:10:48 +0200 Message-ID: <570BDA98.3010406@gmail.com> References: <20160411101300.76346d41@cea.fr> <42AFAD26-1009-4AAC-A4AD-62481239FA04@uva.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5183124548801832426==" X-Trace: ger.gmane.org 1460394743 14823 80.91.229.3 (11 Apr 2016 17:12:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 11 Apr 2016 17:12:23 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Apr 11 19:12:10 2016 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 plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1apfNi-0002kr-EK for gctc-ntg-context-518@m.gmane.org; Mon, 11 Apr 2016 19:12:10 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 8866AA1C3; Mon, 11 Apr 2016 19:11: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 5avt4w3Cfd9V; Mon, 11 Apr 2016 19:11:03 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 5FC3AA1F1; Mon, 11 Apr 2016 19:11:03 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id DA313A1C3 for ; Mon, 11 Apr 2016 19:11:02 +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 cUHpqMNrQod2 for ; Mon, 11 Apr 2016 19:11:02 +0200 (CEST) Original-Received: from mail-wm0-f54.google.com (mail-wm0-f54.google.com [74.125.82.54]) (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 18981A1B3 for ; Mon, 11 Apr 2016 19:10:51 +0200 (CEST) Original-Received: by mail-wm0-f54.google.com with SMTP id v188so95015960wme.1 for ; Mon, 11 Apr 2016 10:10:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to; bh=zZ6mcIlAhrTX/MghSjNMyaLs9kz5z85n54tHPwzZ+aE=; b=BAliF2Z9/S0g/0ICqqiYeJpDGr98GSgvD8sugRLLaNzarbZOEhDhc0GC9bckOyXEir fhDTnGYsI0TTrxLMNVijN/Ms5/DjnEU1cnM7HhR7D9zljFgXaZKK4jBlaE1oP/6VlblI VjqEHXEvgWoakqCyW+wtnxGz9347aKODArNTcutn5CAwaB1lCTPyptKwSSDUAg08unQE ivM1AaKDyafx4e4+JltFP3vwuLo026ZCKaxPeWUOhZw+PeWRVnJ3kZaeFesui7aaQ3Ix d5DbzwZ/mzKQvH24PY15O+jC3F+IvS4x3E6V/oBVkFPcge0zcEP+BIoxA0+Zr+YViIJz M1lQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to; bh=zZ6mcIlAhrTX/MghSjNMyaLs9kz5z85n54tHPwzZ+aE=; b=W6TrvlZq2v+t7At4HuUttPtQM6nYFLD348bsav8fueRkKyZw0KEeJa4b+qCugnaNaa q2XxKzlRn4O5qmQ3X/XyZRaP0Pq8lbbqHRfpJy2fhnAd6vCOxHy7hyEafVrlsPC/29Rt viO3lrYHcXlDxcbwds8jqB8lUTye9tVgdTmsafC8eEcq7I4qNiOtnMcW4l051Wa33QpZ WH/z9b11JsMfCx+YoJxJk2evFZHkk+ULYnLe9WzaiBeY73VRTUxdiYGcI3x8/Y53QLqG 59xzKrvN4jvQULlSgl/7ZwTPzRaaej5pglusCFLJgdgh5YaKPfAjFm8jX3E6+KcKEpf/ NE0w== X-Gm-Message-State: AD7BkJK+SsPtdVIgbo7+5QCDK9HbAVcj9vvj0u2OEYk6w9/Obrg3lrMDozc1Phk84MYMYA== X-Received: by 10.194.81.103 with SMTP id z7mr24654299wjx.25.1460394651707; Mon, 11 Apr 2016 10:10:51 -0700 (PDT) Original-Received: from keima.localdomain (x2f21c8e.dyn.telefonica.de. [2.242.28.142]) by smtp.gmail.com with ESMTPSA id w10sm17687503wjz.9.2016.04.11.10.10.50 for (version=TLSv1/SSLv3 cipher=OTHER); Mon, 11 Apr 2016 10:10:51 -0700 (PDT) User-Agent: Postbox 4.0.8 (Macintosh/20151105) In-Reply-To: <42AFAD26-1009-4AAC-A4AD-62481239FA04@uva.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:94378 Archived-At: This is a multi-part message in MIME format. --===============5183124548801832426== Content-Type: multipart/alternative; boundary="------------030803050107020501010506" This is a multi-part message in MIME format. --------------030803050107020501010506 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit > Meer, Hans van der > 11. April 2016 um 18:49 > > > Could be of course. But the question is: from where the > counterintuitive behavioud of \hfil and \hfil? > It is my nature to be not satisfied until I know ;-) It's easy to explain on the following example. %%%% begin example \starttext \hfil Text\hfil \hfill Text\hfill \stoptext %%%% end example At the end of a paragraph TeX removes the last skip and inserts the \parskipfill [1] value which is by default "0pt plus 1fil". For the first text line this results in the expected output but not for the second line because the inserted "fil" is smaller than the needed "fill". You can check this when you change the \parskipfill stretchability from fil to fill: %%%% begin example \starttext \hfill Text\hfill \start \parfillskip = 0pt plus 1 fill \hfill Text\hfill \par \stop \stoptext %%%% end example [1] https://www.tug.org/utilities/plain/cseq.html#parfillskip-rp Wolfgang --------------030803050107020501010506 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit
11. April 2016 um 18:49


Could be of course. But the question is: from where the counterintuitive behavioud of \hfil and \hfil?
It is my nature to be not satisfied until I know ;-)
It’s easy to explain on the following example.

%%%% begin example
\starttext

\hfil Text\hfil

\hfill Text\hfill

\stoptext
%%%% end example

At the end of a paragraph TeX removes the last skip and inserts the \parskipfill [1] value which is by default "0pt plus 1fil".

For the first text line this results in the expected output but not for the second line because the inserted “fil” is smaller than the needed “fill”. You can check this when you change the \parskipfill stretchability from fil to fill:

%%%% begin example
\starttext

\hfill Text\hfill

\start \parfillskip = 0pt plus 1 fill
    \hfill Text\hfill \par
\stop

\stoptext
%%%% end example

[1] https://www.tug.org/utilities/plain/cseq.html#parfillskip-rp

Wolfgang
--------------030803050107020501010506-- --===============5183124548801832426== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly90ZXguYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHA6Ly9mb3VuZHJ5LnN1cGVsZWMu ZnIvcHJvamVjdHMvY29udGV4dHJldi8Kd2lraSAgICAgOiBodHRwOi8vY29udGV4dGdhcmRlbi5u ZXQKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX18= --===============5183124548801832426==--