I would like to know if there is a way to make the page references in the nomenclature point to the exact place where the \nomenclature command has been given (e.g. by assigning a label as discussed here).
More precisely, what I would like is an analogue of these patches to backref for nomenclature. I know that there is the nomeqref command from nomenclature, but sometimes I introduce notations without having any equation (but possibly within a definition -- this could be an idea for having a precise place to refer to).
Minimal (not really working) example:
\documentclass[11pt, a4paper]{article}
\usepackage[refpage]{nomencl}
\usepackage[pageanchor, backref=page, colorlinks=true]{hyperref}
\def\pagedeclaration#1{, \hyperlink{nomencl.#1}{page\nobreakspace#1}} % from https://tex.stackexchange.com/questions/197166
\makenomenclature
\begin{document}
.
\hypertarget{nomencl.1}
$x$ \nomenclature[1(X)]{$X^0$}{my x}
\vspace{10cm}
,
\hypertarget{nomencl.2}
$L$ \nomenclature[1(L)]{$L^0$}{my l}
\newpage
s \hypertarget{nomencl.3} t
$v$ \nomenclature[1(V)]{$V^0$}{my v}
\vspace{10cm}
...
\hypertarget{nomencl.4}
$b$ \nomenclature[1(B)]{$B^0$}{my b}
\newpage
\printnomenclature[2cm]
\end{document}
For instance, I want the "page 2" of the B^0 item in the nomenclature to point out to the B^0 instead of just the top of page 2.
Thanks in advance for any suggestion.