0

I made this simple code to try to print a glossary, but it doesn't works. The strange things is that the code is just like the one on the Overleaf website:

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{tabularx}
\usepackage{amsmath}
\usepackage{graphicx}
\usepackage[margin=1in,letterpaper]{geometry}
\usepackage{cite} 
\usepackage[final]{hyperref}

\usepackage[acronym, toc]{glossaries}
\makeglossaries
\input{glossario.tex}

\begin{document}

\section{Glossario}
\parindent=0em

\printglossary

\end{document}

And this is my glossario.tex file:

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

\newglossaryentry{maths}
{
    name=mathematics,
    description={Mathematics is what mathematicians do}
}

\newglossaryentry{formula}
{
    name=formula,
    description={A mathematical expression}
}

\newacronym{gcd}{GCD}{Greatest Common Divisor}

\newacronym{lcm}{LCM}{Least Common Multiple}
  • 3
    Only the items that are used in the document are shown. If you don't use any items then nothing is shown. If you add, for example, \gls{gcd} after \begin{document} it should work. Maybe you need to clear the cache in Overleaf (there should be a button somewhere) to make it work. – Marijn Mar 25 at 18:01
  • The following link describes how to clear the cache on Overleaf: overleaf.com/learn/how-to/Clearing_the_cache – Skillmon Mar 25 at 19:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.