From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/85185 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Chapter endings Date: Sun, 10 Nov 2013 22:21:31 +0100 Message-ID: <527FF8DB.2070901@gmail.com> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1716434010==" X-Trace: ger.gmane.org 1384118496 18585 80.91.229.3 (10 Nov 2013 21:21:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 10 Nov 2013 21:21:36 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Nov 10 22:21:43 2013 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 1VfcRx-0007kS-0s for gctc-ntg-context-518@m.gmane.org; Sun, 10 Nov 2013 22:21:41 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 0E11110225; Sun, 10 Nov 2013 22:21:40 +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 8IcrPQpt-K+G; Sun, 10 Nov 2013 22:21:38 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 44FC7101FA; Sun, 10 Nov 2013 22:21:38 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E52F8101FA for ; Sun, 10 Nov 2013 22:21:36 +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 myRpcPO0YcEC for ; Sun, 10 Nov 2013 22:21:36 +0100 (CET) Original-Received: from filter3-til.mf.surf.net (filter3-til.mf.surf.net [194.171.167.219]) by balder.ntg.nl (Postfix) with ESMTP id 1EE2A101F6 for ; Sun, 10 Nov 2013 22:21:36 +0100 (CET) Original-Received: from mail-bk0-x231.google.com (mail-bk0-x231.google.com [IPv6:2a00:1450:4008:c01::231]) by filter3-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id rAALLZng011932 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Sun, 10 Nov 2013 22:21:35 +0100 Original-Received: by mail-bk0-f49.google.com with SMTP id w14so1701278bkz.36 for ; Sun, 10 Nov 2013 13:21:34 -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=KugffvOSJjeWMFh2/A8S5OYaM/ezBn7LaxkhTEC9Fus=; b=piP1R1NEwOfr8++/5O0IgXCVVqDtAFHVEDP2/gJHMQbrIjqSHkWFJqTywizrqKvWGz eujERUII1/F2uJE/u1jo/DzfkbkdMQVGEY6eBxWYmssYBlANGJFMHj3m8GlGF113LHLy t4t27X/+0aMQvbOLNf5ioLBBFMjhQbRYfxxCiFpK04Yhxrbb1MsMoRTmuYekh2/qq7fo zGo9FnP+APZ/iBNVWOu8aypKR3wPG+OlmNoq1AHzC2fqJUz/t/kzK9/HlndTkni6lDfe /lfYMUeerVDVsbFRuyoS58ZJBzk/ob3h6/l6QTqwrH6IHVOqAS2SXgb7yu+INaee3yAv bSqA== X-Received: by 10.205.14.69 with SMTP id pp5mr19190200bkb.14.1384118494841; Sun, 10 Nov 2013 13:21:34 -0800 (PST) Original-Received: from keima.localdomain (x2f24aac.dyn.telefonica.de. [2.242.74.172]) by mx.google.com with ESMTPSA id on10sm12260848bkb.13.2013.11.10.13.21.33 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 10 Nov 2013 13:21:34 -0800 (PST) User-Agent: Postbox 3.0.8 (Macintosh/20130427) In-Reply-To: X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=2a00:1450:4008:c01::231; country=IE X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 06KLVlzhr - c8bed1b7fb70 - 20131110 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:85185 Archived-At: This is a multi-part message in MIME format. --===============1716434010== Content-Type: multipart/alternative; boundary="------------000806070104060001050202" This is a multi-part message in MIME format. --------------000806070104060001050202 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit > Francisco Gracia > 10. November 2013 16:07 > This is a disclaimer to my former message about this subject. > > I continued considering the solution to the problem of using > *fleurons* in a document via the suggested *\leaders* command and it > turned out to be a dead end for the following reasons: > > 1) it acts wrongly if the page in which the *fleuron* is to appear > has a lot of blank space availabe, as the following test code > demonstrates: > > \setuplayout[lines=30] > > \def\Fleuron > {\par > \leaders\vbox to > \lineheight{\midaligned{Finis\\coronat\\opus}}\vfil} \starttext > > \dorecurse{32}{Line \recurselevel\par} > > \Fleuron > > \stoptext > > where the intended *fleuron* appears superposed several times instead > of the only one desired; You can avoid this when you limit the space for the leaders command. \unexpanded\def\Fleuron {\par \begingroup \setupalign[middle]% \dowithnextbox {\scratchdimen\htdp\nextbox \cleaders\box\nextbox\vskip\dimexpr\scratchdimen+\lineheight\relax \endgroup} \vbox} Wolfgang --------------000806070104060001050202 Content-Type: multipart/related; boundary="------------000301030606050502090203" --------------000301030606050502090203 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit
10. November 2013 16:07
This is a disclaimer to my former message about this subject.

I continued considering the solution to the problem of using *fleurons* in a document via the suggested *\leaders* command and it turned out to be a dead end for the following reasons:

    1) it acts wrongly if the page in which the *fleuron* is to appear has a lot of blank space availabe, as the following test code demonstrates:

\setuplayout[lines=30]

\def\Fleuron
{\par
\leaders\vbox to \lineheight{\midaligned{Finis\\coronat\\opus}}\vfil}    \starttext

\dorecurse{32}{Line \recurselevel\par}

\Fleuron

\stoptext

where the intended *fleuron* appears superposed several times instead of the only one desired;
You can avoid this when you limit the space for the leaders command.

\unexpanded\def\Fleuron
  {\par
   \begingroup
   \setupalign[middle]%
   \dowithnextbox
     {\scratchdimen\htdp\nextbox
      \cleaders\box\nextbox\vskip\dimexpr\scratchdimen+\lineheight\relax
      \endgroup}
     \vbox}

Wolfgang
--------------000301030606050502090203 Content-Type: image/jpeg; x-apple-mail-type=stationery; name="compose-unknown-contact.jpg" Content-Transfer-Encoding: base64 Content-ID: Content-Disposition: inline; filename="compose-unknown-contact.jpg" /9j/4AAQSkZJRgABAQEARwBHAAD/2wBDAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEC AQEBAQEBAgICAgICAgICAgICAgICAgICAgICAgICAgICAgL/2wBDAQEBAQEBAQICAgICAgIC AgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgL/wAAR CAAZABkDAREAAhEBAxEB/8QAGAAAAwEBAAAAAAAAAAAAAAAABgcICQr/xAA0EAABAwMCAgUK BwAAAAAAAAACAQMEBQYRABITIQcUMUF2CBUXIjI2N0JRtVRWkZOV0dL/xAAYAQEAAwEAAAAA AAAAAAAAAAADAAEEAv/EACQRAAICAAQGAwAAAAAAAAAAAAABAhEDMrHREyExM0FxgfDx/9oA DAMBAAIRAxEAPwDuEt+gW/ULet6oVC3rfqNQqFv0OfPn1GhUqfOmzZtKZlS5UqZMaNwzNwiJ VIl7eXLCaZIGwBl3TY8epPx2+jy2ZNPjvkwc9uhW8j7nCPhvOsQliYIeS7cvCpp8o50qwrC4 v3lsNSDbdmTEhvs2tahxpfV3WnmbbozJEw/gwdadbYExVRXKEKoSdvJcaOSqxE7/AAiX0gXx +a69/JSf9alIlste0VzaNpeFrcT9KKymotyiaZ0KRCnzacoE7Kjzn4gi2KqUh3jqDHDHv4mR UfruTWlMzlVUKIVNp9GguEJnAh0+IZjyAiisgyRDnu5azS8miKqjOTVkKqS/psG37fo1Fbab eg25b8eZPeFJBBJSjMG5HjMeyihnaauZwe4OGiju13GAcpOwBeN+U8/IkGbsiS8b7ryogmbz hbyc9REROfZhERO5ETShjPtvpGqTUyLErytS4siSwx5x2tRH4hPOI0DkjZtaJtFxuVEbIUUi yeNujlBUJGbJN6nM/Cyf2Hf60YgjvKA+NPSP4gT7axpcPtr51YWJnYn9dnAQWl722p4ot37y zqnlfp6FrqbwawG8/9k= --------------000301030606050502090203-- --------------000806070104060001050202-- --===============1716434010== 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 ___________________________________________________________________________________ --===============1716434010==--