Hello,
Wolfgang offered me a way to present an algorithm.
Can not I center it ?
Thank you.
Fabrice

\definecolor[MyBlue][c=0.06 , m=0.03, y=0.00, k=0.00]

\defineframedtext
   [algorithmframe]
   [width=fit,
    background=color,
    foregroundstyle={\tt},
    backgroundcolor=MyBlue,
    framecolor=darkblue,
    corner=round]

\definelines
   [algorithm]
   [space=on,
    before=\startalgorithmframe,
    after=\stopalgorithmframe]

\starttext

\startlinecorrection[blank]
\startmidaligned
\startalgorithm
Variables : \math{V} est un réel
                  \math{N} est un entier naturel
Début
  Affecter à \math{V} la valeur 354\,412
  Affecter à \math{N} la valeur 0
  Tant que \unknown\unknown
    \math{N} prend la valeur \unknown\unknown
    \math{V} prend la valeur \unknown\unknown
  Fin Tant que
  Afficher \unknown\unknown
Fin
\stopalgorithm
\stopmidaligned
\stoplinecorrection

\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
___________________________________________________________________________________

Reply via email to