On Wed, 2011-07-06 at 10:44 +0200, Philipp Gesang wrote:
> Hi again,
> 
> there’s also the background mechanism which has been explicitly
> (see pack-rul.mkiv) designed with page breaks in mind. Example:
> 
> ···8<····························································
> 
> \setupbackground[
>   corner=rectangular,
>   frame=on,
>   background=,
> ]
> 
> 
> \starttext
> \startbackground
>   \dorecurse{42}{\input dawkins \endgraf}
> \stopbackground
> \stoptext

Hey Phil,

I'm not very competent with ConTeXt, but I tried to translate what you
and wrote into the following:

\def\StartSpecialFramedText%
{
\crlf
\setupbackground
  [corner=rectangular,
   frame=on,
   background=
  ]

\startbackground
\startframedtext
    [width=broad,
     bottom=\vss,
     top=\vss,
     align=right,
     corner=rectangular]
\it 
}

\def\StopSpecialFramedText%
{
\stopframedtext
\stopbackground
\crlf
}

...

\StartSpecialFramedText
Lots
...
of
...
Text
\StopSpecialFramedText


It comes out looking almost the same as initially, but with a box around
it.

-- 
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com

Attachment: signature.asc
Description: This is a digitally signed message part

___________________________________________________________________________________
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