Thank you, Walfgang. I will try. It is a good exercise.

2008/12/1 Wolfgang Schuster <schuster.wolfgang@googlemail.com>
On Sun, Nov 30, 2008 at 5:09 PM, Zhaopeng Xing <zpxing@gmail.com> wrote:
> Hi,
>
> Does anyone know how to describe algorithm procedures in similar way as
> LaTeX algorithmic and algorithm packages? I tried to search it on wiki but
> found nothing. Thanks.

\starttext

\setuplines[space=yes]

\startlines
$sum \leftarrow 0$
\bold{for} $i \leftarrow 1,n$ \bold{do}
   $sum \leftarrow sum + i$
\bold{end for}
\stoplines

\stoptext

Wolfgang
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________



--
Zhaopeng XING

Tinbergen Institute