Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

\vspace warning with glossaries #502

Open
edwintorok opened this issue Jul 26, 2023 · 0 comments
Open

\vspace warning with glossaries #502

edwintorok opened this issue Jul 26, 2023 · 0 comments

Comments

@edwintorok
Copy link

edwintorok commented Jul 26, 2023

If I have more than one glossary entry then I get a vspace warning from acmart.
Minimal example:

\documentclass{acmart}
\usepackage{glossaries}
\newacronym{AST}{AST}{Abstract Syntax Tree}
\newacronym{GC}{GC}{Garbage Collector}
\makeglossaries
\begin{document}
\gls{AST}
\gls{GC}
\printglossaries
\end{document}

Then run pdflatex mwe && makeglossaries -c -d . mwe && pdflatex mwe and it prints (the more glossary entries you have the more warnings it will print):


Class acmart Warning: \vspace should only be used to provide space above/below
surrounding objects on input line 5.

Relevant versions: acmart 2023/03/30 v1.90, glossaries 2022/11/03 v4.52 (NLCT), Fedora 38 with TexLive 2022.

The generated mwe.gls looks like this, I don't see a \vspace there unless it is implicit in the expansion of these commands:

\glossarysection[\glossarytoctitle]{\glossarytitle}\glossarypreamble
\begin{theglossary}\glossaryheader
\glsgroupheading{A}\relax \glsresetentrylist %
\glossentry{AST}{\glossaryentrynumbers{\relax
		\setentrycounter[]{page}\glsnumberformat{1}}}\glsgroupskip
\glsgroupheading{G}\relax \glsresetentrylist %
\glossentry{GC}{\glossaryentrynumbers{\relax
		\setentrycounter[]{page}\glsnumberformat{1}}}%
\end{theglossary}\glossarypostamble
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant