ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen via ntg-context <ntg-context@ntg.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Cc: Hans Hagen <j.hagen@xs4all.nl>
Subject: Re: Counter names
Date: Thu, 20 Jan 2022 18:41:43 +0100	[thread overview]
Message-ID: <38c5b49f-d168-6555-06cb-d867fe398e58@xs4all.nl> (raw)
In-Reply-To: <3f3973ad-ef66-4db6-0d2a-8c1b38bf02c7@um.es>

On 1/20/2022 2:24 PM, Joaquín Ataz López via ntg-context wrote:
> Good morning to all. I would like to ask where I can find information 
> about the name of the different counters that are handled in ConTeXt, in 
> order to manipulate them manually.
> 
> I guess the number of internal ConTeXt counters will be tremendous. But 
> I would like to know what the "most common" counters are called, for 
> example the ones that control the different structural units (chapter, 
> section...) or the elements of a structured list, etc.
> 
> I have tried to apply \incrementcounter or \decrementcounter to some 
> counters that also exist in TeX as, for example, chapter, section... but 
> I don't get any result.

most counters are 'protected' from messing them up and section related 
counters are kind of grouped anyway and have their own system

other counters, like those for floats are more directly accessible

\starttext

\chapter{test}

\setupheadnumber[chapter][+5]

\placefigure{}{}

\chapter{test}

\placefigure{}{}

\setcounter[figure][4]

\placefigure{}{}

\stoptext

chemical combination endnote figure footnote formula graphic
intermezzo itemgroup:itemize itemgroup:itemize:note linenote
paragraph realpage subpage table textnote:note userpage

otherw will be defined when you create instances

Hans


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

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

      reply	other threads:[~2022-01-20 17:41 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-20 13:24 Joaquín Ataz López via ntg-context
2022-01-20 17:41 ` Hans Hagen via ntg-context [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=38c5b49f-d168-6555-06cb-d867fe398e58@xs4all.nl \
    --to=ntg-context@ntg.nl \
    --cc=j.hagen@xs4all.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).