overleaf / toolkit

GNU Affero General Public License v3.0
620 stars 150 forks source link

Glossary is not printed #113

Open MathesiusSuperbus opened 2 years ago

MathesiusSuperbus commented 2 years ago

I have local installation of the Overleaf Community Version. The defined acronyms are recognized - get printed by \acrshort{} and \acrfull{}, but the glossary won't get printed even if I use the very example for glossaries from the Overleaf documentation.

Steps to Reproduce

\documentclass{article}
\usepackage[acronym]{glossaries}

\makeglossaries

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

\newacronym{lcm}{LCM}{Least Common Multiple}

\begin{document}
Given a set of numbers, there are elementary methods to compute 
its \acrlong{gcd}, which is abbreviated \acrshort{gcd}. This process 
is similar to that used for the \acrfull{lcm}.

\clearpage

\printglossary[type=\acronymtype]

\end{document}

Compile using any of the compilers

Expected Behaviour

"Acronyms" glossary should be printed on page 2

Observed Behaviour

Glossary not printed.

Context

Technical Info

Community Edition, sharelatex:with-texlive-full, Win11, Docker v4.12.0

Analysis

No .acn file generated among the project files in overleaf-toolkit\data\sharelatex\data\compiles\xxx. Manual makedictionaries output.acn and re-generation of the pdf fixes this but --- needs to be done manually...?

aeaton-overleaf commented 1 year ago

I've just attempted to reproduce this in the latest version of Overleaf Community Edition, and I do see the Acronyms glossary printed on page 2.

It's possible that this could vary depending on the TeX Live packages that are installed.

@MathesiusSuperbus As it's been a while since this was reported, could you confirm whether this is still an issue?

caesarw commented 1 year ago

It seems the bug still exists. I can reproduce this on the latest version of CE with either TexLive 2022 and 2023 (both with scheme-full installed). However, the bug does not reproduce on the official Overleaf site.

Serdans commented 1 year ago

Having the same issue. glossaries are not printed with \printglossaries

Serdans commented 1 year ago

Got a solution. Seems like the \printnoidxglossaries was working, but \printglossaries wasn't. By including automake in my package option and calling \makeglossaries, it worked.

Example:

\documentclass{article}
\usepackage[automake]{glossaries}

\newglossaryentry{latex}{
    name=latex,
    description={is a mark up language specially}
}
\makeglossaries

\begin{document}
The \Gls{latex} typesetting markup language.

\printglossaries
\end{document}

More here: https://tex.stackexchange.com/questions/426010/printnoidxglossaries-vs-printglossaries