TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I learned from How to obtain the current page number in ConTeXt? that I can obtain the page number counter value using tex.count.pageno, but I have not found this mentioned in any available documentation. I wonder, what other counters are available? Is there some place which has a complete list?

share|improve this question
As Taco said, there is no such list, but you could start a page on the context wiki and others could add to the list over time. – Aditya May 10 '12 at 14:41
Is that what the small list is at the end of wiki.contextgarden.net/Counters? If so, I will try to add what new ones I discover to the end of that page. – Village May 11 '12 at 0:44
Yes, that appears to be a good place. – Aditya May 11 '12 at 2:06
up vote 8 down vote accepted

The snippet tex.count.pageno is just luatex's representation of \pageno, which is more obvious when you realize that it is shorthand for tex.count["pageno"]. All of the \newcount-defined counters are accessible from lua that way, as well as anonymous counters by using tex.count[0], and that is in no way ConTeXt-specific.

There is no published list of \newcount defined counters in ConTeXt. You can grep the ConTeXt source for \newcount, but most of the counters are for internal use only and of no interest to normal users. \pageno is a bit of an exception because it is in use in plain TeX and inherited from there.

The more interesting counters in ConTeXt are defined using \definecounter, and these can be listed using code like this:


The counters associated with sectioning levels do not live there ,and I do not know where those are. Hopefully someone else will know.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.