[NTG-context] Getting framed text to page break

Wolfgang Schuster schuster.wolfgang at googlemail.com
Thu Jul 7 07:04:59 CEST 2011


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



More information about the ntg-context mailing list