I have just begun using the glossaries
package. I have created a glossary entry for the coproduct symbol as disjoint union:
\newglossaryentry{coprod}
{
name = {\ensuremath{\coprod}},
description = {The coproduct in the category of sets, i.e., the disjoint union},
sort = coprod,
symbol = {\ensuremath{\coprod}}
}
Where I put either \gls{coprod}
or \glssymbol{coprod}
in the body of my document, it prints the coproduct symbol correctly, but it doesn't format subscripts and superscripts (e.g. \gls{coprod}_1^r
) as it would for the \coprod
symbol in math mode (i.e. above and below). Instead, they're to the right, and too close together. How can I fix this?
Addendum: An example of the call to \gls{coprod}
in my code looks like:
\[
[n] = \gls{coprod}_1^r \lambda_i
\]
\gls
? If not that's your problem, but since it is not clear what your context is please provide a MWE. – TeXnician Feb 15 '17 at 5:27\gls
is in math mode. I will try Elad Den's displaystyle idea. – benblumsmith Feb 15 '17 at 17:53