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