I am following the guide from Overleaf on how to use the glossaries package. I am trying to work it with RevTex 4.2. Below is my sample script:
\documentclass[%
reprint,amsmath,amssymb,aps,
]{revtex4-2}
\usepackage{dcolumn}
\usepackage{hyperref}
\usepackage[utf8]{inputenc}
\usepackage{glossaries}
\makeglossaries
\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}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
\title{Why Acronyms swill not work? }
\maketitle
\clearpage
\printglossary[type=\acronymtype]
\printglossary
\end{document}
The output of this file is only the title with no compilation errors. No glossaries or acronyms appearing. I also tried the acronyms package and again without any compilation errors I get blank output.
What is the solution?
\glscommands, if I add\gls{gcd}and runmakeglossariesI get the GCD acronym appearing in the list of acronyms. Does that work for you? Are you actually runningmakeglossaries, or maybe looking for\glsaddor\glsaddall? – Dai Bowen Apr 12 '23 at 00:48