Am 28.05.2025 um 19:05 schrieb Henning Hraban Ramm:
Am 28.05.25 um 17:08 schrieb Thomas Meyer:
Thank you Hraban, Bruce and Wolfgang,

I started with the dialogue and description works well. So I was totally fixated on description and didn't realise that it could be simpler. But with section and enumeration I have the same problem: I need the count in the margin and on both sides, right AND left!
Maybe I'm standing like an ox in front of a barn door ...

Well, you can’t avoid special solutions for special demands ;)

Something like:

\setuphead[Scene][command=\MySceneTitle]

\define[2]\MySceneTitle{%
   \inleft{#1}\inright{#1}{\bfd #2}
}

(#1 is the formatted section number, #2 is the title)

Alternative solution with custom section layout.

%%%% begin example
\defineheadalternative
  [scene]
  [alternative=vertical,
   renderingsetup=scene:title]

\startsetups [scene:title]
  \startlocalheadsetup
    \startmaxaligned
      \llap{\headnumbercontent\hskip{\leftmargindistance}}%
      \rlap{\hskip{\textwidth+\rightmargindistance}\headnumbercontent}%
      \vbox\bgroup
        \headtextcontent
      \egroup
    \stopmaxaligned
  \stoplocalheadsetup
\stopsetups

\showframe [text] [leftmargin,text,rightmargin]

\definehead [Scene] [section] [alternative=scene]

\starttext

\Scene{Int. Café Glockenspiel -- Tag}
Sie  betritt das Café und sucht offenbar nach jemandem.

\stoptext
%%%% end example

Wolfgang

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

Reply via email to