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
___________________________________________________________________________________
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
___________________________________________________________________________________

Reply via email to