ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <schuster.wolfgang@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Chapter endings
Date: Sun, 10 Nov 2013 22:21:31 +0100	[thread overview]
Message-ID: <527FF8DB.2070901@gmail.com> (raw)
In-Reply-To: <CACiybx5csP-yzKY5UjLAS53NaAbLSL+W9hMfYf44u6Zu2AnKHQ@mail.gmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 1116 bytes --]


> Francisco Gracia <mailto:fgragu023@gmail.com>
> 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

[-- Attachment #1.2.1: Type: text/html, Size: 2563 bytes --]

[-- Attachment #1.2.2: compose-unknown-contact.jpg --]
[-- Type: image/jpeg, Size: 770 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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	other threads:[~2013-11-10 21:21 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-10 15:07 Francisco Gracia
2013-11-10 21:21 ` Wolfgang Schuster [this message]
  -- strict thread matches above, loose matches on Subject: below --
2013-11-04 22:48 Francisco Gracia
2013-11-02 20:54 Francisco Gracia
2013-11-04  0:37 ` Wolfgang Schuster
2013-11-04 14:55   ` Hans Hagen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=527FF8DB.2070901@gmail.com \
    --to=schuster.wolfgang@gmail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).