How do I refer to the glossary section using ref?

I am using the glossaries package. In the document, I would like to say "Please, refer to section \ref{my-glossary}". How can I do that?

Here's an example.

In the file notes.tex

\documentclass[12pt]{article}

\usepackage[section,numberedsection=autolabel]{glossaries}

\makeglossaries

\newacronym{vae}{VAE}{variational auto-encoder}

\begin{document}

%\maketitle

\tableofcontents

\section{Abstract}
\acrshort{vae}.

\clearpage
\printglossary[type=\acronymtype]\label{my-glossar}

\bibliography{biblio}
\bibliographystyle{plain}

\end{document}

• Have you added a \label{my-glossar} after the corresponding section/chapter? May 26 '19 at 17:34
• Try to add ist right after the  \printglossary command. May 26 '19 at 17:37
• See answer (untested, no MWE from your side). May 26 '19 at 17:39
• You will probably have to add an "anchor", and even then, since a glossary is usually a starred section, you might consider using \nameref and rephrase as "see the section \nameref{...}". (Or something similar with \pageref.) May 26 '19 at 17:49

Solved by trial and error: reading the manual and looking at Using Texmaker with glossaries on Windows.

\documentclass[12pt]{article}

\usepackage[
toc,
section,
numberedsection = autolabel,
automake,
]{glossaries}
\glstoctrue

\makeglossaries %makeglossaries %

\newacronym{vae}{VAE}{variational auto-encoder}
\makeglossaries
\begin{document}

\tableofcontents

\section{Abstract}
\acrshort{vae}.