Jeroen schrieb am 16.09.2023 um 22:28:
This MWE has a framed text for some verbatim text (code) with as title ref. a counter 1, 2, etc.. Is there a way to change this frame text title as following with the chapter number and a sequential number and the title.

Code Fragment 1.1 (The First Title)
Code Fragment 1.2 (The Second Title)
Code Fragment 2.1 (The Third Title)

MWE:

[...]

\defineenumeration
   [Counter]
   [title=yes,
    alternative=empty,
    before=\startCountFramedText,
    after=\stopCountFramedText]

\defineenumeration
  [Counter]
  [      title=yes,
   alternative=empty,
          text=Code Fragment,
           way=bychapter,
        prefix=yes,
        before=\startCountFramedText,
         after=\stopCountFramedText]

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

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

Reply via email to