4

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}.

Please, refer to section \ref{my-glossar}. 

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

\bibliography{biblio}
\bibliographystyle{plain}

\end{document}
4
  • Have you added a \label{my-glossar} after the corresponding section/chapter? Commented May 26, 2019 at 17:34
  • Try to add ist right after the ` \printglossary` command. Commented May 26, 2019 at 17:37
  • See answer (untested, no MWE from your side). Commented May 26, 2019 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.) Commented May 26, 2019 at 17:49

1 Answer 1

1

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}. 

Please, refer to section \ref{main}. 

\printglossary[type=main]

\end{document}

enter image description here

0

You must log in to answer this question.