# Automatic text for labeling lemmas, examples etc [duplicate]

If I label an equation I use

\label{bla}
\eqref{bla}


since then it automaticalls copies the number of the equation e.g. 1.1 and with \eqref{bla} I get (1.1) with the link to the equation - perfect... However, I defined many other things like "Lemma", "Remark", "Example", Theorem" etc. Now is there something like eqref that automatically checks the title, e.g. Lemma 1.2 and then writes "Lemma 1.2" with the link to it similar to eqref?

Or do I need to define it? If yes- how could I do it?

## marked as duplicate by Henri Menke, Werner cross-referencing StackExchange.ready(function() { if (StackExchange.options.isMobile) return; $('.dupe-hammer-message-hover:not(.hover-bound)').each(function() { var$hover = $(this).addClass('hover-bound'),$msg = $hover.siblings('.dupe-hammer-message');$hover.hover( function() { $hover.showInfoMessage('', { messageElement:$msg.clone().show(), transient: false, position: { my: 'bottom left', at: 'top center', offsetTop: -7 }, dismissable: false, relativeToBody: true }); }, function() { StackExchange.helpers.removeMessages(); } ); }); }); Jun 28 '17 at 11:07

• Have a look to the cleveref package. – GuM Jun 28 '17 at 0:30