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.

Is there a simple solution in ConTeXt that I haven't found yet, or will I have to try some plain TeX box magic myself?

Thanks -- Thomas
___________________________________________________________________________________
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
___________________________________________________________________________________

Reply via email to