0

How to get a hold of ID of a register? I can see it with \show but can't use it (save and display) in the document itself.

\documentclass[varwidth,border=5mm]{standalone}
\begin{document}
  \newdimen\dA
  \show\dA % OUTPUT: \dA=\dimen105
  % HOW TO DISPLAY 105
  %  (WHICH IS ID OF \dA REGISTER)?
\end{document}

1 Answer 1

2

The information shown on the terminal by \show is always available in-document using \meaning

enter image description here

\documentclass[varwidth,border=5mm]{standalone}
\begin{document}
  \newdimen\dA
  at this point you could use\\
   \the\allocationnumber\\
   but after  \newcount\zzz  that will change but you can use\\
   \texttt{\meaning\dA.}

\end{document}
1
  • But you should never need to know that number, that is rather the point of the allocation system. Nov 18, 2019 at 8:02

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .