Context: I want to store values in the aux file to use them earlier in the file on the next run, rather than creating my own solution I want to use labels (as suggest by this answer).
Problem: Whenever a label is defined it creates something like this
\newlabel{customLabel}{{MyValue}{24}{}{Doc-Start}{}}
I want to be able to extract those values. \ref
does not work as its output is not just the value but some complex latex string.
\getrefnumber{customLabel}
from packagerefcount
-- it is expandable,\ref
isn't. – user31729 Mar 8 '16 at 14:48