I'm trying
to put a piece of text in a partial frame that's meant to
look like square brackets aligned with the left and right edges of the
textblock.
I tried to use two \framed constructions inside each other, the
outer
one with width=textwidth and negative toffset and boffset, the inner one
with a smaller width, a fat rulethickness and the color of the
background, expecting it to erase the outer frame where it's not needed:
\color[zier]{%
\framed[%
align=middle,
width=\textwidth,
toffset=-4mm,
boffset=-4mm,
strut=no,
]{%
\color[paper]{\framed[%
align=middle,
width=222mm, % i.e. \textwidth-4mm
toffset=6mm,
boffset=5mm,
rulethickness=5mm
]{%
\color[zier]{\tfd \strut Here's the text that is menat to look
important; its length/number of lines is undetermined.\strut}
}}%
}%
}%
... but it doesn't work. Apparently the inner frame is drawn before
the
outer one. Putting the wider frame inside the narrower results in
alignment problems -- due to the overfull hbox, I presume.
Your example is of not much use because it can’t be converted to a PDF
(missing \starttext and empty lines).