<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Nov 8, 2015 at 11:46 AM, Ulrike Fischer <span dir="ltr"><<a href="mailto:news3@nililand.de" target="_blank">news3@nililand.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
In the case of unnumbered section I agree that there is no "natural"<br>
value for \@currentlabel -- why should one use the title, when the<br>
\ref of other section gives a number?</blockquote></div><br>Because it could be a special section: f.e. Comments </div><div class="gmail_extra">However as I mentioned even if section is not numbered, or theorem is  not numbered but custom-named \nameref works</div><div class="gmail_extra"><br></div><div class="gmail_extra">\documentclass[12pt]{article}</div><div class="gmail_extra">\usepackage{amsthm}</div><div class="gmail_extra">\usepackage{hyperref}</div><div class="gmail_extra">\newtheorem*{theorem}{Theorem}</div><div class="gmail_extra"><br></div><div class="gmail_extra">\begin{document}</div><div class="gmail_extra"><br></div><div class="gmail_extra">\section*{No number section}</div><div class="gmail_extra">\label{sect-nn}</div><div class="gmail_extra"><br></div><div class="gmail_extra">\begin{theorem}[My Great Theorem]</div><div class="gmail_extra">\label{mythm}</div><div class="gmail_extra">blah-blah-blah</div><div class="gmail_extra">\end{theorem}</div><div class="gmail_extra"><br></div><div class="gmail_extra">\nameref{mythm}</div><div class="gmail_extra"><br></div><div class="gmail_extra">\nameref{sect-nn}</div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div><div class="gmail_extra">\end{document}</div><div class="gmail_extra"><br></div><div class="gmail_extra"><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><br>Victor Ivrii</div></div>
</div></div>