ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Fabrice Couvreur <fabrice1.couvreur@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Vertical spacing in enumerations
Date: Tue, 14 Feb 2017 17:02:08 +0100	[thread overview]
Message-ID: <CACyK-epinpri8q1PYRtL0WK-M3oM5zWeRFiYFHH5VLbLEyyOrQ@mail.gmail.com> (raw)


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

                 reply	other threads:[~2017-02-14 16:02 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CACyK-epinpri8q1PYRtL0WK-M3oM5zWeRFiYFHH5VLbLEyyOrQ@mail.gmail.com \
    --to=fabrice1.couvreur@gmail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).