TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

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 would like to print the value of a register into the document for 'debugging' purposes. For counters I would use \arabic{myCounter}. But \abovedisplayskip is not a counter.

share|improve this question
up vote 5 down vote accepted

You can use \the to typeset a value of a dimension for example:

share|improve this answer

For debugging I often find \showthe to be more useful (as in \showthe\abovedisplayskip); it pauses the typesetting and displays the value on the console. For a LaTeX counter you would write


assuming you defined the counter as

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.