[NTG-context] Defineenumeration head offset

Alexandre Christe aleks.christe at gmail.com
Mon Nov 7 21:04:59 CET 2022


Dear list,

Is there a trick to not apply the leftoffset to the header of a
defineenumeration?

MWE:

\definetextbackground
  [textFrameEx]
  [
    frame=off,
    framecolor=darkgreen,
    rulethickness=2ex,
    background=,
    location=paragraph,
    leftoffset=2.25ex,
    rightoffset=2.25ex,
    after={\hrule}
  ]

\defineenumeration
  [example]
  [
    text=Example,
    headalign=middle,
    headcolor=white,

headcommand={\inframed[background=color,backgroundcolor=darkgreen,width=\textwidth]},
    number=no,
    before={%
      \starttextbackground[textFrameEx]
    },
    after={%
      \stoptextbackground%
    },
  ]

\starttext

\startexample
    Blablabla
\stopexample

\stoptext
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20221107/da066e72/attachment.htm>


More information about the ntg-context mailing list