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
Alexandre Christe via ntg-context schrieb am 07.11.2022 um 21:04:
Dear list,
Is there a trick to not apply the leftoffset to the header of a defineenumeration?
MWE:
[...]
You can use \offset to shift the enumeration title. \defineframed [ExampleHeadFrame] [location=low, background=color, backgroundcolor=darkgreen, width=\textwidth] \define[1]\ExampleHeadCommand {\offset[leftoffset=-2.25ex]{\ExampleHeadFrame{#1}}} \defineenumeration [example] [..., headcommand=\ExampleHeadCommand, ...] Wolfgang
participants (2)
-
Alexandre Christe
-
Wolfgang Schuster