4

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.

Hector
  • 1,100

2 Answers2

6

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}
5

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

\the\abovedisplayskip
yannisl
  • 117,160