1

I have used the basic commands of the package glossaries but the glossary itself does not print when using the command \printglossaries.

Using the latex code found in the link above, I cannot print the glossary. My latex installation could have not had a package installed, but after verification, they are all installed. Does anyone have an idea of what is wrong here?

\documentclass{report} 

\usepackage[style=authoryear,citestyle=authoryear,natbib=true,backend=bibtex]{biblatex}
\title{}
\author{}
\date{}
\usepackage{graphicx}
\usepackage{subcaption}
\usepackage{float}
\usepackage{amsmath}
\usepackage[super]{nth}
\usepackage[utf8]{inputenc}
\usepackage{glossaries}

\makeglossaries

\newglossaryentry{latex}
{
    name=latex, 
    description={Is a markup language specially suited for scientific documents.}
}

\begin{document}
    
    \maketitle
    
    \tableofcontents

\chapter{Chapter 1}
        
\section{Text}

Lorem ipsum \gls{latex}.

\section{Glossary}

\printglossaries

\end{document}
10
  • 2
    Remark: There is a good beginner's guide from the package author, see mirrors.ctan.org/macros/latex/contrib/glossaries/… (or ctan.org/pkg/glossaries). Commented Oct 9, 2022 at 20:39
  • 1
    The glossary will not print without you using \gls{latex} in your main text, you are not currently using any \gls or similar commands so your glossary is empty. Can you confirm if in your main document you are using \gls{} between \begin{document} and \printglossaries? Adding \gls{latex} to your code printed the glossary for me.
    – JamesT
    Commented Oct 9, 2022 at 20:44
  • Thank you for the reference Manuel, I will follow it closely. Thanks to have remarked the missing part @JamesT. Unfortunately, it seems that it is not the source of the problem here. Commented Oct 9, 2022 at 21:53
  • 1
    If I were you I would contact Overleaf support and ask them why your glossary is not appearing, unfortunately your code compiles and prints the glossary on my local system so it is definitely something only Overleaf support would be able to help with!
    – JamesT
    Commented Oct 10, 2022 at 19:47
  • 1
    No problem, if they do have a solution to your issue, could you please post it as answer and then accept it when you can please? Just helps keep the site clean! :)
    – JamesT
    Commented Oct 11, 2022 at 11:39

0

You must log in to answer this question.

Browse other questions tagged .