Getting framed text to page break
![](https://secure.gravatar.com/avatar/e4119be23c6b43ebdb1041bb53ac9e67.jpg?s=120&d=mm&r=g)
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
![](https://secure.gravatar.com/avatar/5ef3be2c0e949ae4c891de058ebf4d76.jpg?s=120&d=mm&r=g)
On 2011-07-06 <00:22:39>, Kip Warner wrote:
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:
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
\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
___________________________________________________________________________________ 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 ___________________________________________________________________________________
-- () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments
![](https://secure.gravatar.com/avatar/e4119be23c6b43ebdb1041bb53ac9e67.jpg?s=120&d=mm&r=g)
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
![](https://secure.gravatar.com/avatar/93131e1e6e2204bd13501390d768dbdc.jpg?s=120&d=mm&r=g)
Am 07.07.2011 um 03:16 schrieb Kip Warner:
I'm not very competent with ConTeXt, but I tried to translate what you and wrote into the following:
[...]
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
![](https://secure.gravatar.com/avatar/e4119be23c6b43ebdb1041bb53ac9e67.jpg?s=120&d=mm&r=g)
On Thu, 2011-07-07 at 07:04 +0200, Wolfgang Schuster wrote:
Am 07.07.2011 um 03:16 schrieb Kip Warner:
I'm not very competent with ConTeXt, but I tried to translate what you and wrote into the following:
[...]
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
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