* Vertical spacing in enumerations
@ 2017-02-14 16:02 Fabrice Couvreur
0 siblings, 0 replies; only message in thread
From: Fabrice Couvreur @ 2017-02-14 16:02 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 1196 bytes --]
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
[-- Attachment #1.2: Type: text/html, Size: 1515 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-02-14 16:02 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-14 16:02 Vertical spacing in enumerations 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).