[NTG-context] Re: side-by-side
Patrick Gundlach
patrick at gundla.ch
Sun Oct 31 13:16:17 CET 2004
Hi David,
[...]
> I'd like to arrange this on my slide side-by-side, the code to the left,
> the image to the right. If I we're doing this in Latex, I would probably
> use minipage environments for this.
> Can someone hint at the Context Way of doing this? I'd like my code
> vertically centered on the left, the image on the right.
Is this what you want?
\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
\placesidebyside{%
\framed[align={lohi,right},frame=off]%
{\typebuffer}}
{\externalfigure
[cow]
[width=.5\textwidth]}
\stoptext
Patrick
--
ConTeXt wiki: http://contextgarden.net
More information about the ntg-context
mailing list