Take the 2-minute tour ×
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.

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
add comment

2 Answers

up vote 5 down vote accepted

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

\the\abovedisplayskip
share|improve this answer
add comment

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

\showthe\c@foo

assuming you defined the counter as

\newcounter{foo}
share|improve this answer
add comment

Your Answer

 
discard

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.