ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <wolfgang.schuster.lists@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>,
	Jeroen <contextntg@gmail.com>
Subject: [NTG-context] Re: Framed Text with Chapter Numbers as Counter
Date: Sun, 17 Sep 2023 20:35:17 +0200	[thread overview]
Message-ID: <126a4e22-2c86-04a6-b58d-f29f272b4ea1@gmail.com> (raw)
In-Reply-To: <CAPtmdbO=2uOqnTGUH5mXBbJ7crN3NiiJL-StNynFWvbFzO+wUg@mail.gmail.com>

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
___________________________________________________________________________________

      parent reply	other threads:[~2023-09-17 18:36 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-16 20:28 [NTG-context] " Jeroen
2023-09-17 15:27 ` [NTG-context] " Bruce Horrocks
2023-09-17 18:19   ` Jeroen
2023-09-17 18:35 ` Wolfgang Schuster [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=126a4e22-2c86-04a6-b58d-f29f272b4ea1@gmail.com \
    --to=wolfgang.schuster.lists@gmail.com \
    --cc=contextntg@gmail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).