* Centering an algorithm
@ 2017-09-23 10:12 Fabrice Couvreur
0 siblings, 0 replies; only message in thread
From: Fabrice Couvreur @ 2017-09-23 10:12 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 949 bytes --]
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
[-- Attachment #1.2: Type: text/html, Size: 1347 bytes --]
[-- Attachment #2: Type: text/plain, Size: 492 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2017-09-23 10:12 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-23 10:12 Centering an algorithm Fabrice Couvreur
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).