Hello David,
this is far from perfect, but perhaps worth a tryout:
--------------------------------------------------
\setupcolors[state=start]
\setuptyping
[before={\startframedtext[width=\localhsize,background=screen,
backgroundscreen=0.8]},
after={\stopframedtext},
color=darkred]
\starttext
\startbuffer
>> x=linspace(-2,4);
>> y=x.^2-2*x-3;
>> plot(x,y)
>> xlabel('x')
>> ylabel('y')
>> title('y = x^2 -2x -3')
>> grid on
\stopbuffer
\typebuffer % test
\placesidebyside{%
\framed[align={lohi,right},
frame=on,
offset=10pt,
background=screen,
screen=0.8,
width=.5\textwidth,
strut=no,
foregroundcolor=darkred]{\typebuffer}}
{\framed[frame=off,width=.5\textwidth]{\externalfigure[cow.pdf][width=4cm,height=4cm]}}
\stoptext
--------------------------------------------------
Patrick
--
ConTeXt wiki: http://contextgarden.net
_______________________________________________
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context