From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/86083 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: setupalign and flushbottom Date: Fri, 24 Jan 2014 18:41:45 +0100 Message-ID: References: <20140124185552.7b17adf34e19a3811e97ace4@yandex.ru> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0996475563==" X-Trace: ger.gmane.org 1390585308 3240 80.91.229.3 (24 Jan 2014 17:41:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 24 Jan 2014 17:41:48 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Jan 24 18:41:57 2014 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1W6klP-00076f-9Y for gctc-ntg-context-518@m.gmane.org; Fri, 24 Jan 2014 18:41:55 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D7147101E8; Fri, 24 Jan 2014 18:41:54 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id kmOZDUBXJoPV; Fri, 24 Jan 2014 18:41:49 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 60A0D101E2; Fri, 24 Jan 2014 18:41:49 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 1BB4F101E2 for ; Fri, 24 Jan 2014 18:41:48 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id HWREi1qxPsiB for ; Fri, 24 Jan 2014 18:41:46 +0100 (CET) Original-Received: from filter4-ams.mf.surf.net (filter4-ams.mf.surf.net [192.87.102.72]) by balder.ntg.nl (Postfix) with ESMTP id 5F3FF101E1 for ; Fri, 24 Jan 2014 18:41:46 +0100 (CET) Original-Received: from mail-we0-x229.google.com (mail-we0-x229.google.com [IPv6:2a00:1450:400c:c03::229]) by filter4-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s0OHsY2H022850 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Fri, 24 Jan 2014 18:54:35 +0100 Original-Received: by mail-we0-f169.google.com with SMTP id u57so3044987wes.28 for ; Fri, 24 Jan 2014 09:41:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=Ulb8Wm0Fb9kc8oKtI9f4448xto0xNQF897N3YcU9AII=; b=eZU924J5IBzrBtG5BHXV6asCyKFZHg7MGFoQBAkvBzxu11JXmw8S8WmnlM+05i7Qwr 7sFpfCP9YS7LBMZhicPRShpzj8qaPxTEEBymx/+OuK4smN1Ywg8TKQ2qRyNfDNqsdX65 17dPgf2wTPA2cxoMfboqBoy4jo/l2A+srvNXK3rVnWibSd1q535LKLRIJSOaGU0cOsHc FtSYzz96xFBo7XGrpFy/xWfQZiXmulJM5UKAhALQqNR0QKWqjlmV08qzDky0e2M4+Jya Xwc2t0xn+UarlZNwxqmkJc2gsvXs7DLTdm5zUvmlE4RNqTKDce3qkk/QRnN3ZlGfLKn4 XRRQ== X-Received: by 10.194.79.131 with SMTP id j3mr11626233wjx.17.1390585305460; Fri, 24 Jan 2014 09:41:45 -0800 (PST) Original-Received: by 10.227.145.198 with HTTP; Fri, 24 Jan 2014 09:41:45 -0800 (PST) In-Reply-To: <20140124185552.7b17adf34e19a3811e97ace4@yandex.ru> X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=2a00:1450:400c:c03::229; country=IE X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 01LhRSz7g - c66c0ef4d386 - 20140124 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 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-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:86083 Archived-At: --===============0996475563== Content-Type: multipart/alternative; boundary=047d7bd6bad42976c004f0badf32 --047d7bd6bad42976c004f0badf32 Content-Type: text/plain; charset=ISO-8859-1 2014/1/24 Alexey Kryukov > Dear list, > > according to the wiki and the ConTeXt manual, the ConTeXt equivalent > for the LaTeX \flushbottom command is \setupalign[line]. However in my > tests this setting doesn't have the desired effect. For example: > > \setuplayout[height=720pt] > \setuphead[subject][before={\vskip4pt plus 1fil},after={\blank[small]}] > \setupalign[line] > \showgrid > > \starttext > \dorecurse{3}{\input knuth} > > \subject{My Subject} > > \dorecurse{8}{\input knuth} > \stoptext > > Here at the first page there is a small gap between the last line and > the page border, although the glue above the heading can safely be > expanded to make the page filled. However I do get the desired result if > I replace \setupalign [line] with a low-level command (\alignbottom). > > So what is the correct way to get pages bottom-aligned in MKIV? Use \setupalign[height]. Wolfgang --047d7bd6bad42976c004f0badf32 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
2014/1/24 Alexey Kryukov <ana= gnost@yandex.ru>
Dear list,

according to the wiki and the ConTeXt manual, the ConTeXt equivalent
for the LaTeX \flushbottom command is \setupalign[line]. However in my
tests this setting doesn't have the desired effect. For example:

\setuplayout[height=3D720pt]
\setuphead[subject][before=3D{\vskip4pt plus 1fil},after=3D{\blank[small]}]=
\setupalign[line]
\showgrid

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

\subject{My Subject}

\dorecurse{8}{\input knuth}
\stoptext

Here at the first page there is a small gap between the last line and
the page border, although the glue above the heading can safely be
expanded to make the page filled. However I do get the desired result if I replace \setupalign [line] with a low-level command (\alignbottom).

So what is the correct way to get pages bottom-aligned in MKIV?=A0

Use \setupalign[height].

Wolfgang<= /div>
--047d7bd6bad42976c004f0badf32-- --===============0996475563== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ --===============0996475563==--