Hi,

I have a question regarding framed text.
To obtain framed verbatim text that breaks over pages, I use the macro
\definetextbackground. I have encountered a slight problem, however:
sometimes the upper part of the frame appears on the bottom of the
page with no text in it (because there's not enough room). The strange
thing is that if I comment out the setupcolors macro the problem
disappears (in the example that is).
I have included an example of this below. Run with texexec --pdf test.tex

The version of texexec I'm using is:

 TeXExec 5.2.4 - ConTeXt / PRAGMA ADE 1997-2005
               texexec : TeXExec 5.2.4 - ConTeXt / PRAGMA ADE 1997-2005
               texutil : TeXUtil 9.0.0 - ConTeXt / PRAGMA ADE 1992-2004
                   tex : pdfeTeX, 3.141592-1.21a-2.2 (Web2C 7.5.4)
               context : ver: 2005.01.31
               cont-en : ver: 2005.01.31  fmt: 2009.1.26  mes: english


Thanks in advance

Trychius


----------------------------------  test.tex  ----------------------------------
\installlanguage[en]
\setuppapersize[A4]

\definelayout[m yCustomLayout][
 header=10mm,                    % height of header
 footer=10mm,                    % height of footer
 topspace=8mm,                   % space above header
 bottomspace=\topspace,          % space below footer
 backspace=25mm,
 cutspace=20mm,
 width=middle,
 height=middle,
 marking=on,                     % enable the marking of text
 grid=yes,
]

\setuplayout[myCustomLayout]

\setuptyping[margin=10mm,
  &nbs p;          space=off,               % Do not show space characters explicitely
             color=black,             % Color of verbatim text
            ]

\setupcolors[state=start]

\definetextbackground[FramedText][
        location=paragraph,
        rulethickness=0.5pt,
        framecolor=red,
        background=color,backgroundcolor=yellow,
        leftoffset=1.0\bodyfontsize,rightoffset=1.0\bodyfontsize,
        topof fset=1.0\bodyfontsize,bottomoffset=1.0\bodyfontsize,
        frame=on]



\starttext
            in this story took place, some of the most
            important mines of the Scottish coal beds
            had been exhausted by too rapid working. In
            the region which extends between Edinburgh
            and Glasgow, for a distance of ten or twelve
            miles, lay the Aberfoyle colliery, of which
            Now, at the time when the events related
            in this story took place, some of the most
            important mines of the Scottish coal beds
            had been exhausted by too rapid working. In
            the region which extends between Edinburgh
            and Glasgow, for a distance of ten or twelve
            miles, lay the Aberfoyle colliery, of which
            Now, at the time when the events related
            in this story took place, some of the most
            important mines of the Scottish coal beds
            had been exhausted by too rapid working. In
            the region which extends between Edinburgh
            and Glasgow, for a distance of ten or twelve
            miles, lay the Aberfoyle colliery, of which
            Now, at the time when the events related
            in this story took place, some of the most
            important mines of the Scottish coal beds
            had been exhausted by too rapid working. In
            the region which extends between Edinburgh
            and Glasgow, for a distance of ten or twelve
            miles, lay the Aberfoyle colliery, of which
            had been exhausted by too rapid working. In
            the region which extends between Edinburgh
            and Glasgow, for a distance of ten or twelve
            miles, lay the Aberfoyle colliery, of whic h
            had been exhausted by too rapid working. In
            the region which extends between Edinburgh
            and Glasgow, for a distance of ten or twelve
            miles, lay the Aberfoyle colliery, of which
            had been exhausted by too rapid working. In
            the region which extends between Edinburgh
            and Glasgow, for a distance of ten or twelve
            miles, lay the Aberfoyle colliery, of whic h
            had been exhausted by too rapid working. In
            the region which extends between Edinburgh
            and Glasgow, for a distance of ten or twelve
            miles, lay the Aberfoyle colliery, of which
            had been exhausted by too rapid working. In
            the region which extends between Edinburgh
            and Glasgow, for a distance of ten or twelve
            miles, lay the Aberfoyle colliery, of whic h
            had been exhausted by too rapid working. In
            the region which extends between Edinburgh
            and Glasgow, for a distance of ten or twelve
            miles, lay the Aberfoyle colliery, of which
            had been exhausted by too rapid working. In
            had been exhausted by too rapid working. In
            had been exhausted by too rapid working. In
            had been exhausted by too rapid working. I n
            had been exhausted by too rapid working. In
            had been exhausted by too rapid working. In
            had been exhausted by too rapid working. In
            had been exhausted by too rapid working. In
            had been exhausted by too rapid working. In
            had been exhausted by too rapid working. In
            miles, lay the Aberfoyle colliery, of which
            had been exhausted by too rapid working. I n
            the region which extends between Edinburgh
            and Glasgow, for a distance of ten or twelve
            miles, lay the Aberfoyle colliery, of which
            had been exhausted by too rapid working. In
            the region which extends between Edinburgh
            and Glasgow, for a distance of ten or twelve
            miles, lay the Aberfoyle colliery, of which
            had been exhausted by too rapid wo rking. In
            the region which extends between Edinburgh
            and Glasgow, for a distance of ten or twelve
            miles, lay the Aberfoyle colliery, of which
            had been exhausted by too rapid working. In
            the region which extends between Edinburgh
            and Glasgow, for a distance of ten or twelve
            miles, lay the Aberfoyle colliery, of which
            had been exhausted by too rapid wo rking. In
            the region which extends between Edinburgh
            and Glasgow, for a distance of ten or twelve
            miles, lay the Aberfoyle colliery, of which
            had been exhausted by too rapid working. In
            the region which extends between Edinburgh
            and Glasgow, for a distance of ten or twelve
            miles, lay the Aberfoyle colliery, of which
            had been exhausted by too rapid wo rking. In
            the region which extends between Edinburgh
            and Glasgow, for a distance of ten or twelve
            miles, lay the Aberfoyle colliery, of which
            had been exhausted by too rapid working. In
            the region which extends between Edinburgh
            and Glasgow, for a distance of ten or twelve
            miles, lay the Aberfoyle colliery, of which
            had been exhausted by too rapid wo rking. In
            the region which extends between Edinburgh
            and Glasgow, for a distance of ten or twelve
            miles, lay the Aberfoyle colliery, of which
            had been exhausted by too rapid working. In
            the region which extends between Edinburgh
            and Glasgow, for a distance of ten

\startFramedText
\starttyping
            in this story took place, some of the most
            impor tant mines of the Scottish coal beds
            had been exhausted by too rapid working. In
            the region which extends between Edinburgh
            and Glasgow, for a distance of ten or twelve
            miles, lay the Aberfoyle colliery, of which
            the engineer, James Starr, had so long directed
            the works. For ten years these mines had been
            abandoned. No new seams had been discovered,
            although the soundings had been car ried
            to a depth of fifteen hundred or even of
            two thousand feet, and when James Starr had
            retired, it was with the full conviction that
            even the smallest vein had been completely
            exhausted.
\stoptyping
\stopFramedText
\stoptext