From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/93272 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: \startalignment Date: Tue, 12 Jan 2016 19:29:17 +0100 Message-ID: <569545FD.2030903@gmail.com> References: <20160112110715.34764b4a@cea.fr> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============7991045486298052420==" X-Trace: ger.gmane.org 1452623414 14179 80.91.229.3 (12 Jan 2016 18:30:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 12 Jan 2016 18:30:14 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Jan 12 19:30:02 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 1aJ3hh-0000TE-8D for gctc-ntg-context-518@m.gmane.org; Tue, 12 Jan 2016 19:30:01 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 286315FA0; Tue, 12 Jan 2016 19:29:39 +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 mg76PlICc397; Tue, 12 Jan 2016 19:29:38 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 6DFD65FA9; Tue, 12 Jan 2016 19:29:38 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 069B85FA6 for ; Tue, 12 Jan 2016 19:29:38 +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 33PwGXF8l7Sh for ; Tue, 12 Jan 2016 19:29:32 +0100 (CET) Original-Received: from mail-wm0-f41.google.com (mail-wm0-f41.google.com [74.125.82.41]) (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 042E15FA0 for ; Tue, 12 Jan 2016 19:29:21 +0100 (CET) Original-Received: by mail-wm0-f41.google.com with SMTP id f206so264267213wmf.0 for ; Tue, 12 Jan 2016 10:29:21 -0800 (PST) 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:content-type; bh=3emLrPclAC6OlZlZ8EXZZhyyXZjj8lylIou2S7yhcis=; b=eozXjbhJDnOiO1ReTbJCPPsUWEl+GSUBIMMuBp+qg/wK1UdANeZJRdz/XKYkztVcz/ OyUOXRGh705ck2LZjoyNcCniCygl7AdJooRcm9fPYL8UpXXob5fHUsv+jiwj2CXRyDnR r0ZhEOm6+g+hCvwDL4BpR9g+ItwZBGUNn3LTXnLqwN3i4UChvWvlwS4R/CzJoJa8oKtt oqsLDHlWgP1cr3zjkyAEDWLTUYexcEOVcK7T0QilErK6kxIEVxEGnWkz9v4oYax3Cfla jYzjz0T7Se85gqu1BiinIE5iQbtjovjYZOeUEE+IpTFY2nn2bU4lck+6fjHeMrI9eO5A xhcQ== X-Received: by 10.194.91.180 with SMTP id cf20mr78435378wjb.121.1452623361399; Tue, 12 Jan 2016 10:29:21 -0800 (PST) Original-Received: from keima.localdomain (x2f21d8e.dyn.telefonica.de. [2.242.29.142]) by smtp.gmail.com with ESMTPSA id t76sm18759173wmd.13.2016.01.12.10.29.20 for (version=TLSv1/SSLv3 cipher=OTHER); Tue, 12 Jan 2016 10:29:20 -0800 (PST) User-Agent: Postbox 4.0.8 (Macintosh/20151105) In-Reply-To: <20160112110715.34764b4a@cea.fr> 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:93272 Archived-At: This is a multi-part message in MIME format. --===============7991045486298052420== Content-Type: multipart/alternative; boundary="------------070502010409050203090108" This is a multi-part message in MIME format. --------------070502010409050203090108 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable > Alan BRASLAU > 12. Januar 2016 um 19:07 > Hello, > > Jean-Michel pointed out to me the following curiosity: > > \starttext > \input tufte > \startalignment[middle] > \input ward > \stopalignment > \input tufte > \stoptext > > The startalignment applies to the preceding text, too. Strange... It=E2=80=99s a normal behaviour for TeX, the question is should \startali= gnment=20 end the previous paragraph or not. > I never noticed this before as I have the habit of coding > \startalignment\stopalignment blocks set-off with leading and trailing > blank lines for better readability. But such practice could lead to > undesired results. Consider the following example: > > \setupwhitespace [big] > > \starttext > \input tufte > > \startalignment[middle] > \input ward > \stopalignment > \input dawkins > \stoptext > > So \stopalignment implicitly imposes a \par. > If I were to omit the blank line before \startalignment so that no big > whitespace be included before the centered block, the tufte text will > get middle aligned. Also, perhaps I might not wish for the dawkins text > to be separated by a big whitespace, logically as in: You can use \startpacked =E2=80=A6 \stoppacked to suppress blank lines in= serted=20 by \setupwhitespace. Wolfgang --------------070502010409050203090108 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
12= .=20 Januar 2016 um 19:07
He= llo,

Jean-Michel pointed out to me the following curiosity:

\starttext
\input=20 tufte
\startalignment[middle]
\input ward
\stopalignment
\inp= ut tufte
\stoptext

The startalignment applies to the preceding=20 text, too. Strange...
It=E2=80=99s a normal behaviour for TeX, the question is should \startali= gnment=20 end the previous paragraph or not.
I never noticed this before as I have the habit of coding
\st= artalignment\stopalignment blocks set-off with leading and trailing
blank lines for better=20 readability. But such practice could lead to
undesired results.=20 Consider the following example:

\setupwhitespace [big]

\sta= rttext
\input tufte

\startalignment[middle]
\input ward
\stopalignment\input dawkins
\stoptext

So \stopalignment implicitly imposes a=20 \par.
If I were to omit the blank line before \startalignment so that no big
whitespace be included before the centered block, the tufte=20 text will
get middle aligned. Also, perhaps I might not wish for the=20 dawkins text
to be separated by a big whitespace, logically as in:
You can use \startpacked =E2=80=A6 \stoppacked to suppress blank lines in= serted=20 by \setupwhitespace.

Wolfgang
--------------070502010409050203090108-- --===============7991045486298052420== 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= --===============7991045486298052420==--