Is there a way to access the key of the most-recently-declared label?
for instance:
\begin{equation}\label{equ:1}
...
\end{equation}
bla bla bla \ref{\getlastlabelkey} bla bla bla ...
instead of:
bla bla bla \ref{equ:1} bla bla bla ...
equ:1and the reference? – cmhughes May 23 '12 at 16:57\@currentlabel. This macro is set by all labelable macros like\section,\caption,equationetc. and written by\labelunder the given label name in the.auxfile. If you need to do some internal stuff using\@currentlabeldirectly might be easier because it doesn't need an explicit\labeladded by the user. – Martin Scharrer May 24 '12 at 09:11