[texhax] enumerate inconsistency

Victor Ivrii vivrii at gmail.com
Sun Nov 8 18:11:11 CET 2015


On Sun, Nov 8, 2015 at 11:46 AM, Ulrike Fischer <news3 at nililand.de> wrote:

>
> In the case of unnumbered section I agree that there is no "natural"
> value for \@currentlabel -- why should one use the title, when the
> \ref of other section gives a number?


Because it could be a special section: f.e. Comments
However as I mentioned even if section is not numbered, or theorem is  not
numbered but custom-named \nameref works

\documentclass[12pt]{article}
\usepackage{amsthm}
\usepackage{hyperref}
\newtheorem*{theorem}{Theorem}

\begin{document}

\section*{No number section}
\label{sect-nn}

\begin{theorem}[My Great Theorem]
\label{mythm}
blah-blah-blah
\end{theorem}

\nameref{mythm}

\nameref{sect-nn}


\end{document}




-- 

Victor Ivrii
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/texhax/attachments/20151108/a8e9d18f/attachment.html>


More information about the texhax mailing list