Hello Willi, Thanks for your answer. Your suggestion works ... if I would be free to choose the framed text to be 0.5 textwidth. However, the framed text is source code and I do need the entire textwidth because otherwise I'm going to get line wraps and that'll make things look ugly. I expected placefigure[right] to be clever enough to see that there is no room beside the framed text, and either place the figure above it or beneath it. My current workaround is to put the placefigure[right] macro earlier in the flow of text if possible, or use placefigure[force]. Regards, Jos ________________________________ Message: 4 Date: Wed, 8 Jul 2009 16:44:11 +0200 From: Willi Egger Subject: Re: [NTG-context] placefigure[right] draws figures inside framed text To: mailing list for ConTeXt users Message-ID: Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Hi, use \framedtext[width=.5\textwidth]{...}. Framed text breaks over the lines. Do not use a \vbox Willi On Jul 8, 2009, at 1:54 PM, Jos van Gisbergen wrote: > Hello, > > I'm using framed text to display verbatim sourse code. The frame > should use > the entire textwidth, so I use width=broad. > A problem occurs when I use a figure placed at the right side of > the page, > before a framed text section: the figure is drawn *inside* the frame. > With non-framed text everything works fine. > > I include an example. It consists of a d.tex file and METAPOST file > a.mp. To reproduce the problem, first convert a.mp to a-1.pdf using > the mptopdf utility. Then texexec --pdf d.tex