Getting framed text to page break

Hey list, I'd like to get framed text to break over a page, but I'm not sure how to do this. Right now, I am using: \def\StartSpecialFramedText% { \crlf \startframedtext [width=broad, bottom=\vss, top=\vss, align=right, corner=rectangular] \it } \def\StopSpecialFramedText% { \stopframedtext \crlf } ... \StartSpecialFramedText Some ... text \StopSpecialFramedText But the problem is that does not page break, but seems to want to stay all together on a single page. -- Kip Warner -- Software Engineer OpenPGP encrypted/signed mail preferred http://www.thevertigo.com

On 2011-07-06 <00:22:39>, Kip Warner 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 ···8<···························································· Hth, Philipp
-- () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments

On Wed, 2011-07-06 at 10:44 +0200, Philipp Gesang wrote:
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

Am 07.07.2011 um 03:16 schrieb Kip Warner:
Solution 1: \definestartstop [SpecialFramed] [ before={\setupbackground[frame=on,before=\blank,after=\blank]\startbackground}, after=\stopbackground, %commands={\setupalign[flushleft,broad]}, style=italic] \starttext \input knuth \startSpecialFramed \dorecurse{6}{\input knuth\par} \stopSpecialFramed \input knuth \stoptext Solution 2: \definetextbackground [SpecialFramed] [ before=\blank, after=\blank, background=, framecolor=black, location=paragraph, %align={flushleft,broad}, style=italic] \starttext \input knuth \startSpecialFramed \dorecurse{6}{\input knuth\par} \stopSpecialFramed \input knuth \stoptext Wolfgang

On Thu, 2011-07-07 at 07:04 +0200, Wolfgang Schuster wrote:
Thanks Wolfgang. It worked. I also didn't know about \definestartstop. Thanks for that too. -- Kip Warner -- Software Engineer OpenPGP encrypted/signed mail preferred http://www.thevertigo.com
participants (3)
-
Kip Warner
-
Philipp Gesang
-
Wolfgang Schuster