The code below creates a glossary table containing acronyms, their representation in math expressions and their description. A custom glossary style my is created using \newglossarystyle. It is a table with a \tabularnewline between every entry group, as set by redefining \glsgroupskip. However, the code produces a new line between every entry, not just the groups. By default, groups are based on the first letter of an entry, e.g. ‘bar’ and ‘baz’ should be in a group and ‘foo’ and ‘qux’ are separately grouped.
The default style (i.e. disable the line \setglossarystyle{my}) does create groups with extra separation between them. Why/where does my style fail?
Note that I use ‘Option 1’ as defined in the glossaries package manual, i.e. \makenoidxglossaries.
\documentclass{article}
\usepackage{amsfonts}
\usepackage{booktabs}
\usepackage{tabu}
\usepackage[shortcuts]{glossaries}
\makenoidxglossaries
\glsaddkey{math}{}{\acem}{\Acem}{\acm}{\Acm}{\ACm}
\newacronym[math=\mathfrak{foo}]{foo}{foo}{Foo}
\newacronym[math=\mathfrak{bar}]{bar}{bar}{Bar}
\newacronym[math=\mathfrak{baz}]{baz}{baz}{Baz}
\newacronym[math=\mathfrak{qux}]{qux}{qux}{Qux}
\newglossarystyle{my}{%
% redefine theglossary environment
\renewenvironment{theglossary}%
% begin
{\begin{longtabu} spread 0pt {@{}X[1Lm]X[1Lm]X[3Jm]@{}}}%
% end
{\bottomrule
\end{longtabu}}%
\renewcommand*{\glossaryheader}{%
\toprule%
Abbreviation & Symbol in Mathematical Expressions & Description \\ \midrule%
}%
\renewcommand*{\glsgroupskip}{%
\tabularnewline%
}%
\renewcommand*{\glossentry}[2]{%
\glstarget{##1}{\glossentryname{##1}}%
&%
$\acem{##1}$%
&%
\glossentrydesc{##1}%
\\%
}%
}
\setglossarystyle{my}
\begin{document}
\glsaddallunused
\printnoidxglossaries
\end{document}




tabu. – cfr Apr 03 '15 at 18:47tabularxandtabulary. What does it do that has adverse effects? – Erik Apr 03 '15 at 18:51tabuas you know it will no longer be available. – cfr Apr 03 '15 at 20:17