[texhax] glossaries - glsentryname and math

Vangelis Katsikaros ibob17 at yahoo.gr
Mon Jan 10 17:52:00 CET 2011


On 01/10/2011 05:42 PM, Susan Dittmar wrote:
>
> Quoting Vangelis Katsikaros (ibob17 at yahoo.gr):
>> I define an entry that has some math in its name, then if use \gls{foo}
>> everything is fine. However, if I use \glsentryname{goo}, then the
>> $math$ part is not rendered as math but as regular text (including the
>> dollar signs).
>
> Did you try using the text field? I do not have access to a working
> glossaries style right now, so I cannot test, sorry.
>
> \newglossaryentry{lala}{
>          name={$X^{y}$-tree},
>          text={$X^{y}$-tree},
>          description={The famous Xy-tree}
> }
>
> Hope that helps,

Hi,

Yes, it helped, \glsentrytext produces the correct math.

Thanks!
Vangelis



More information about the texhax mailing list