In the code below, the vertical spacing of the second level should be like that of the first level Thank you Fabrice
\definecolor[MyBlue][c=0.06 , m=0.03, y=0.00, k=0.00] \defineframed [algorithmframe] [width=\textwidth, align=normal, strut=no, offset=1ex, foregroundstyle={\switchtobodyfont[7pt]}, background=color, location=middle, backgroundcolor=MyBlue, framecolor=darkblue, corner=round] \definelines [algorithm] [space=on, before={\startframed[algorithmframe]}, after=\stopframed] \starttext \startalgorithm \startitemize[1,joinedup,nowhite] \item On commence par le sommet A : il est à une distance \math{d({\rm A})} égale à \math{0} du sommet A. \item Pour tous les sommets S adjacents à A et non marqués : \startitemize[2,joinedup,nowhite] \item on calcule la somme \math{s} du poids de l'arête A-S et de la distance \math{d({\rm A})} ; \item si \math{s < d({\rm S})}, on remplace la distance \math{d({\rm S})} par \math{s} et on retient que cette distance \quotation{provient} du sommet A. \stopitemize \item On marque définitivement le sommet A. \stopitemize \stopalgorithm \stoptext
___________________________________________________________________________________ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___________________________________________________________________________________