[NTG-context] Alignment with an enumeration

Fabrice Couvreur fabrice1.couvreur at gmail.com
Mon Apr 12 19:22:19 CEST 2021


Hi,
Is it possible that the first item is on the baseline of the definition
environment title ? Thank you.
Fabrice

\define\ItemCommand
    {\hskip\zeropoint\relax\autoinsertnextspace}

  \setupitemgroup
    [itemize]
    [color=darkred,
style=bold,
     distance=\spaceamount]

  \setupitemgroup
    [itemize:1]
    [option={n,packed,fit,intext},
    command=\ItemCommand]

  \setupitemgroup
    [itemize:2]
    [lefttext=,
    righttext=,
    option={a,text}]

\setupenumerations
  [before={},
   after={\blank},
   alternative=serried,
   number=no,
   title=yes,
   titleleft={(},
   titleright={)},
   prefix=yes,
   prefixsegments=chapter,
   way=bychapter,
   titlestyle=bold,
   width=broad]

\defineenumeration
   [definition]
   [text=Définition,
    number=no,
    headcommand=\groupedcommand{}{},
    style=normal]

\starttext
\startdefinition
  \input knuth
\stopdefinition
\startdefinition
  \startitemize[n]
    \startitem
      First item
    \stopitem
    \startitem
      Second item
    \stopitem
  \stopitemize
\stopdefinition
\stoptext
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20210412/a9e2ef79/attachment.htm>


More information about the ntg-context mailing list