From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/85096 Path: news.gmane.org!not-for-mail From: Francisco Gracia Newsgroups: gmane.comp.tex.context Subject: Chapter endings Date: Mon, 4 Nov 2013 23:48:19 +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="===============1744574553==" X-Trace: ger.gmane.org 1383605303 31411 80.91.229.3 (4 Nov 2013 22:48:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 4 Nov 2013 22:48:23 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Mon Nov 04 23:48:30 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 1VdSwf-0007P3-76 for gctc-ntg-context-518@m.gmane.org; Mon, 04 Nov 2013 23:48:29 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 3F56B10225; Mon, 4 Nov 2013 23:48:28 +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 PCJmNLMzGZCh; Mon, 4 Nov 2013 23:48:25 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 1F9AF101EF; Mon, 4 Nov 2013 23:48:25 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 00344101EF for ; Mon, 4 Nov 2013 23:48:24 +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 szGUfxr4HY24 for ; Mon, 4 Nov 2013 23:48:22 +0100 (CET) Original-Received: from filter1-utr.mf.surf.net (filter1-utr.mf.surf.net [195.169.124.152]) by balder.ntg.nl (Postfix) with ESMTP id D89EA101E5 for ; Mon, 4 Nov 2013 23:48:22 +0100 (CET) Original-Received: from mail-oa0-x229.google.com (mail-oa0-x229.google.com [IPv6:2607:f8b0:4003:c02::229]) by filter1-utr.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id rA4MmKxs018675 for ; Mon, 4 Nov 2013 23:48:21 +0100 Original-Received: by mail-oa0-f41.google.com with SMTP id o9so7973649oag.28 for ; Mon, 04 Nov 2013 14:48:20 -0800 (PST) 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=58d7TPHAxZa8kufsj6sRoAILGPgX7Jpz2vFyhoNd9ns=; b=VgENdpfl81fVdmOfx9p7N7kh/ShEajPDu0nf88z3C9SDYu3pYZPpIJPyTeiSsZKOzI l8ZI6HXUfoaVZ2Lyocs6Q5ZXtb3g3UVhSqabbReTUrynroMTrSkCjAh/yyV07v5Jb7tu K4gVrRPXXisggnKe3c5euEXOT1SJqKdvv3L/UEtzm9ftVRHtUVjZfPTxTlzUALip4P1U PfIXyImiTKXhHA8MhAVLEvDvPbYes5TJRs9irzk0o6BSGswE+tGZ9nYY24PvR0CwaqP6 vlv2SK3bQPWhyLWMFk3JPvS2Q6Bed2l4nyxAy/6ojWdSWPwGtVkvNFaH+Y2FcoD75pxv IK2g== X-Received: by 10.60.58.71 with SMTP id o7mr3331544oeq.51.1383605299749; Mon, 04 Nov 2013 14:48:19 -0800 (PST) Original-Received: by 10.76.6.233 with HTTP; Mon, 4 Nov 2013 14:48:19 -0800 (PST) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=2607:f8b0:4003:c02::229; country=US X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 07KJyMkrE - eba67331b7a5 - 20131104 (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:85096 Archived-At: --===============1744574553== Content-Type: multipart/alternative; boundary=089e0153859466a9d304ea61b6b4 --089e0153859466a9d304ea61b6b4 Content-Type: text/plain; charset=ISO-8859-1 Many thanks, Wolfgang, for your quick and complete solution to my riddle. As Hans has commented, it is really brilliant. I must confess that I do not understand yet the substance of it, i.e. the definition itself of *Fleuron*, but I will keep studying it and will end for getting it, I hope. For the moment I have analyzed and elaborated a bit on your example, first and mostly by commenting it, but also by slightly modifying it so that it shows more clearly the characteristics of your solution. I attach it here just in case it could be as helpful for someone else as it has been for me. Many thanks again and good luck! Francisco % Fleuron.tex % Example script of the creation and use of a documental ornament % We first define the documental ornament % under the traditional name of *Fleuron* % in the way brilliantly formulated by Herr Schuster \def\Fleuron {\par \leaders\vbox to \lineheight{I am the \em Fleuron\em}\vfil} % and create a page 10 lines high for testing its behaviour \setuplayout[lines=10] % We put *Context* to work \starttext % Method 1 (really?) % Typesetting the ornament as the first element of the page % results disappointing: it just does not show up \Fleuron % but other texts that follow it get their normal treatment; % for instance, this sentence I am not really the start:\par \ \ \ the \em Fleuron\em\ went before me\par % or this automatically generated text \dorecurse{4}{Line \recurselevel\par} % Even the *Fleuron* is treated the same, % if it is the last element of this page \Fleuron % so we create a new page and repeat the same % instructions \page I am not really the start:\par \ \ \ the \em Fleuron\em\ went before me\par \dorecurse{4}{Line \recurselevel\par} \Fleuron I am after the \em Fleuron\em\ % surprisingly, although there is room available, % the ornament disappears % if there is more text coming after it % so we go to another page, the third one, % for our last and definitive test \page % This time the space of the page is full \dorecurse{10}{Line \recurselevel\par} % when the turn of the *Fleuron* arrives \Fleuron % The result is that not only the *Fleuron* does not show up % in this page, which was to be expected because it is full, % but even the implied next page, the fourth, % does not get generated by *Context*. PERFECT! \stoptext --089e0153859466a9d304ea61b6b4 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Many thanks, Wolfgang, for your quick and comple= te solution to my riddle. As Hans has commented, it is really brilliant.
I must confess that I do not understand yet the substance of it,= i.e. the definition itself of *Fleuron*, but I will keep studying it and w= ill end for getting it, I hope.

For the moment I have analyzed and elaborated a bit on your = example, first and mostly by commenting it, but also by slightly modifying = it so that it shows more clearly the characteristics of your solution. I at= tach it here just in case it could be as helpful for someone else as it has= been for me.

Many thanks again and good luck!

Francisco=

% Fleuron.tex

% Example script of the creation an= d use of a documental ornament


% We first define the documental or= nament

% under the traditional name of *Fl= euron*

% in the way brilliantly formulated= by Herr Schuster

\def\Fleuron

{\par

\leaders\vbox to \lineheight{I = am the \em Fleuron\em}\vfil}


% and create a page 10 lines high f= or testing its behaviour

\setuplayout[lines=3D10]


% We put *Context* to work

\starttext


% Method 1 (really?)


% Typesetting the ornament as the f= irst element of the page

% results disappointing: it just do= es not show up

\Fleuron


% but other texts that follow it ge= t their normal treatment;

% for instance, this sentence

I am not really the start:\par

\ \ \ the \em Fleuron\em\ went = before me\par

% or this automatically generated t= ext

\dorecurse{4}{Line \recurselevel\pa= r}


% Even the *Fleuron* is treated the= same,

% if it is the last element of this= page

\Fleuron


% so we create a new page and repea= t the same

% instructions

\page

I am not really the start:\par

\ \ \ the \em Fleuron\em\ went = before me\par

\dorecurse{4}{Line \recurselevel\pa= r}

\Fleuron

I am after the \em Fleuron\em\

% surprisingly, although there is r= oom available,

% the ornament disappears

% if there is more text coming afte= r it


% so we go to another page, the thi= rd one,

% for our last and definitive test<= /p>

\page


% This time the space of the page i= s full

\dorecurse{10}{Line \recurselevel\p= ar}

% when the turn of the *Fleuron* ar= rives

\Fleuron


% The result is that not only the *= Fleuron* does not show up

% in this page, which was to be exp= ected because it is full,

% but even the implied next page, t= he fourth,

% does not get generated by *Contex= t*. PERFECT!



\stoptext

--089e0153859466a9d304ea61b6b4-- --===============1744574553== 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 ___________________________________________________________________________________ --===============1744574553==--