1

I have large lists of the kind

There are N values:

\begin{enumerate} \item item1 \item item2 ... \item itemN

How can I replace "N" in the first line of text by a counter that would automatically show N such as in

There are \readcounter{enumlist} values:

\begin{enumerate} \item item1 \item item2 ... \item itemN

Thank you.

leparc
  • 163
  • 1
    Welcome to TeX.SE. – Mico May 28 '22 at 10:19
  • See the answer https://tex.stackexchange.com/a/74597/110998 – gernot May 28 '22 at 14:24
  • Thank you @gernot, the solution provided (putting a \label{} for the last item and using \ref{}) works very well but has two drawback: \ref{} produces a link to the last item of the enumerate + gets the color of an hyperlink. Is there a way to locally disable this. – leparc May 28 '22 at 16:57
  • 1
    @leparc Have you seen the discussion below the answer that I linked to? It seems to be exactly your issue, and \ref* seems to be the solution. – gernot May 29 '22 at 07:53
  • @gernot, thank you so much, I read it too fast and jumped on the \ref solution when \ref* is what I need. – leparc May 29 '22 at 09:35

0 Answers0