
Am 28.05.2025 um 09:56 schrieb Thomas Meyer:
Hi helpers,
I have the following:
\setupbodyfont[cursor,12pt] \setuplayout[ backspace=1.5in, width=5in, leftmargin=0.5in, rightmargin=0.5in, topspace=0.5in, grid=yes, ]
\definecounter[Scenecounter][way=bytext,type=number] \setcounter[Scenecounter][1]
\definedescription [Szene] [headstyle={\bf\WORD\rawcountervalue[Scenecounter]}, headalign=right, alternative=top, hang=none, before=\startnarrow[left=0in,right=.5in][left,right]\blank, after=\stopnarrow\blank,%\incrementcounter[Scenecounter] ]
\starttext
\Szene{Int. Café Glockenspiel - Tag} Sie betritt das Café und sucht offenbar nach jemandem. \rawcountervalue[Scenecounter] %\incrementcounter[Scenecounter]
\Szene{Int. Café Glockenspiel - Nacht} Er verlässt das Café und sucht offenbar nach niemandem. \rawcountervalue[Scenecounter]
\stoptext
I would like to get my counter in the right and left margin of the bold scene title. How can I make this work?
And why can't the counter be incremented in the \definedescription? Or is it still possible?
If you need descriptions with a counter use enumerations, they are based on the same mechanism and add a number for each entry. Wolfgang