[Tex/LaTex] Mathematical symbol looks bad in glossary

amsmathglossariesmath-mode

I have a mathematical symbol that looks good when I use the align-environment. But not when I put the symbol inside $$. This makes the symbol look bad in the glossary, because I can not use align in the glossary.
Here is a picture, the first symol is using align, the second is using $$.
enter image description here

Here is the code:

\documentclass[a4paper]{memoir}
\usepackage{amsmath}

\begin{document}
\begin{align*}
\sum\limits_{\tau=-\infty}^{T}\mathop{}_{\mkern -25mu   \delta}


\end{align*}

\center{$\sum\limits_{\tau=-\infty}^{T}\mathop{}_{\mkern -20mu   \delta}$}


\end{document}

How can I get the first symbol inside the glossary?

Here is how it is in the glossary:

enter image description here

Here is the code for the glossary

\documentclass[a4paper]{memoir}
\usepackage{amsmath}
\usepackage[toc,nonumberlist]{glossaries}
\makeglossaries
\newglossaryentry{g1}{
    name={$\sum\limits_{\tau=-\infty}^{T}\mathop{}_{\mkern -20mu   \delta}$},
    description={description}
}


\begin{document}

\glsaddall
\printglossary
\end{document}

Best Answer

You could try \displaystyle which forces the rendering of math output like in display.

You should be cautious because of the line spacing that this causes, which could be ugly.

Anyway here is an example

\documentclass[a4paper]{memoir}
\usepackage{amsmath}

\begin{document}
\begin{align*}
\sum\limits_{\tau=-\infty}^{T}\mathop{}_{\mkern -25mu   \delta}
\end{align*}

$\displaystyle\sum\limits_{\tau=-\infty}^{T}\mathop{}_{\mkern -20mu   \delta}$


\end{document}

with result

enter image description here

Without glossary code it's difficult to know any better though