From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/85068 Path: news.gmane.org!not-for-mail From: Francisco Gracia Newsgroups: gmane.comp.tex.context Subject: Chapter endings Date: Sat, 2 Nov 2013 21:54:15 +0100 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0891079005==" X-Trace: ger.gmane.org 1383425658 18877 80.91.229.3 (2 Nov 2013 20:54:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 2 Nov 2013 20:54:18 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Sat Nov 02 21:54:24 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 1VciDA-0000Y9-6B for gctc-ntg-context-518@m.gmane.org; Sat, 02 Nov 2013 21:54:24 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 36F201020E; Sat, 2 Nov 2013 21:54:23 +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 XKVwtiGj-NuA; Sat, 2 Nov 2013 21:54:20 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id AC4C7101F9; Sat, 2 Nov 2013 21:54:20 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 03D1D101F9 for ; Sat, 2 Nov 2013 21:54:19 +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 cRx6XR4pAE0V for ; Sat, 2 Nov 2013 21:54:17 +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 46341101F5 for ; Sat, 2 Nov 2013 21:54:17 +0100 (CET) Original-Received: from mail-oa0-x243.google.com (mail-oa0-x243.google.com [IPv6:2607:f8b0:4003:c02::243]) by filter4-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id rA2L0ChU017811 for ; Sat, 2 Nov 2013 22:00:12 +0100 Original-Received: by mail-oa0-f67.google.com with SMTP id j6so1293147oag.6 for ; Sat, 02 Nov 2013 13:54:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=lasLAgpm2nXFV9II7eafGCgt1TJYEEpHwGcMA/gBiFE=; b=jpqGbJc6ZyM5wk2Jq1glEBpEMvH4bY7CIuMAFo0TgiTvHuWxbdx3y4RJL7yMkHzHxo Vhmsm12LiEVJ53f/g+jSDNIdHm8cV4ei8OncLmJLZ+nhxHaJKp9tlapm9l83peqmGxAM gatY1gzA3hJ6rpQz6g8C7mpHk1yjkoft6icgr3Nxw7SUx2fqd7nB5Gw+q/ZyUTF36fD6 UC1NY7ldN5NJXNBFxnaqUYxzLJZ8RzHaizRn0hLfovIHqMwGKxS5NjNWoGF5sfmg4U0s sbfLaRRTEeWg77hODv0Q1il0TlSlIVQ7haaOMjoSBo6IVdzHS3h8Rf2F/Mqs1nbp6dnL hJiQ== X-Received: by 10.182.73.231 with SMTP id o7mr7440794obv.34.1383425655459; Sat, 02 Nov 2013 13:54:15 -0700 (PDT) Original-Received: by 10.76.6.233 with HTTP; Sat, 2 Nov 2013 13:54:15 -0700 (PDT) X-Bayes-Prob: 0.0546 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=2607:f8b0:4003:c02::243; country=US X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 01KIJ0cB6 - 423624799b85 - 20131102 (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:85068 Archived-At: --===============0891079005== Content-Type: multipart/alternative; boundary=047d7bfe93fec454b004ea37e2b1 --047d7bfe93fec454b004ea37e2b1 Content-Type: text/plain; charset=ISO-8859-1 There is plenty of information available about how to deal with issues related to chapter openings (*headings*) in *Context* but I have not found any related to document endings. I would like to end the chapters of a book with some small decorative element, be it text or graphics; let us call it a *Fleuron*. Just putting it in the last line of the text file to be typeset, one can take for sure that earlier or later it will end appearing as the only element of the last page of the product of some run. To avoid this undesirable outcome, it seems to me that one is forced to provide some help to *Context* via some text marks or some code, but I have not been able to conjecture what they should be. The clearest arrangement would seem to be the inclusion at the end of the source document of some *Context* instructions equivalent to the following pseudocode: if *Fleuron* fits into the current page: typeset *Fleuron* But how do I formulate the condition? How do I know what is the *current page*, what is the size that *Context* has calculated for *Fleuron* and what is the amount of space remaining in the page? One can imagine that this method could even be helpful in other situations of the typesetting operation not related to the last page. Does someone know how to handle it? Thanks in advance Francisco Gracia --047d7bfe93fec454b004ea37e2b1 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
There is plenty of information available about how to deal= with issues related to chapter openings (*headings*) in *Context* but I ha= ve not found any related to document endings.

I would like to end th= e chapters of a book with some small decorative element, be it text or grap= hics; let us call it a *Fleuron*. Just putting it in the last line of the t= ext file to be typeset, one can take for sure that earlier or later it will= end appearing as the only element of the last page of the product of some = run. To avoid this undesirable outcome, it seems to me that one is forced t= o provide some help to *Context* via some text marks or some code, but I ha= ve not been able to conjecture what they should be.

The clearest arrangement would seem to be the inclusion at the end of t= he source document of some *Context* instructions equivalent to the followi= ng pseudocode:

=A0=A0=A0 if *Fleuron* fits into the current page:=A0=A0=A0 =A0=A0=A0 typeset *Fleuron*

But how do I formulate the condition? How do I know what is the *curren= t page*, what is the size that *Context* has calculated for *Fleuron* and w= hat is the amount of space remaining in the page?

One can imagine th= at this method could even be helpful in other situations of the typesetting= operation not related to the last page.

Does someone know how to handle it?

Thanks in advance

Fra= ncisco Gracia
--047d7bfe93fec454b004ea37e2b1-- --===============0891079005== 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 ___________________________________________________________________________________ --===============0891079005==--