I'm trying to redefine the style of my glossaries list, and base it on the altlist. When executing the new style however, I notice that there is an empty line when two glossary items are grouped, even though I have specified \nopostdesc
. In the normal altlist this empty line does not exist.
Another issue I have is that I'd like to capitalize the first letter of the description in the glossaries list. According to the manual I should be able to use \Glossentrydesc
, but as soon as I'm using it, I'm getting 9 errors, the first being 'undefined control sequence' related to \nopostdesc
. What am I doing wrong?
This is the result I get:
with the following MWE:
\documentclass{article}
\usepackage{glossaries}
%make a new glossaries style
\newglossarystyle{altlistnumbers}{%
\setglossarystyle{altlist}%
\renewcommand*{\glossentry}[2]{%
\item[\glsentryitem{##1}%
\glstarget{##1}{\Glossentryname{##1}}]
\mbox{}\par\nobreak
\glossentrydesc{##1}\glspostdescription\hfill ##2}%
}
\setglossarystyle{altlistnumbers}
\makeglossaries
\newglossaryentry{abb} {
name = {abb},
description = {\nopostdesc},
}
\newglossaryentry{abbone} {
description = {this is the first description of an ABB},
sort = {1},
parent = abb,
text = {abb},
long = {abbreviation-one},
first = {\glsentrylong{abbone} (\glsentrytext{abbone})}
}
\newglossaryentry{abbtwo} {
description = {there is a second different description of ABB, too},
sort = {2},
parent = abb,
text = {abb},
long = {abbreviation-two},
first = {\glsentrylong{abbtwo} (\glsentrytext{abbtwo})}
}
\begin{document}
\printglossaries
\noindent
There is \gls{abbone}, but also \gls{abbtwo}.\\
\end{document}