Glossaries include symbol from other glossary in name
I have a glossary entry which defines a symbol
\newglossaryentry{nc:line:num}{
name=cache lines,
symbol=\ensuremath{\#l},
description=number of lines in cache}
and want to use its symbol in another entry inside a second glossary. Therefore I try:
\newglossaryentry{cache:swayassociative}{
name={\glsentrysymbol{nc:line:num}-way associative},
description={\nopostdesc},
parent={cache},
see={nc:line:num}
however this puts the code into the output, rather than the actual symbol.
As a bonus I am unsure how to properly right align the numbers and place the "see XXX" text properly, so that they don't overlap. (I am using the mcolalttreegroup style).
P.S.: I am trying to use glossaries for an index here, maybe it is not quite the right tool for the job, but since I actually use it for real glossaries as well, I thought it would not hurt to use a tool I am fairly familiar with (considering I am a novice and have no experience with makeidx).
I have a glossary entry which defines a symbol
\newglossaryentry{nc:line:num}{
name=cache lines,
symbol=\ensuremath{\#l},
description=number of lines in cache}
and want to use its symbol in another entry inside a second glossary. Therefore I try:
\newglossaryentry{cache:swayassociative}{
name={\glsentrysymbol{nc:line:num}-way associative},
description={\nopostdesc},
parent={cache},
see={nc:line:num}
however this puts the code into the output, rather than the actual symbol.
As a bonus I am unsure how to properly right align the numbers and place the "see XXX" text properly, so that they don't overlap. (I am using the mcolalttreegroup style).
P.S.: I am trying to use glossaries for an index here, maybe it is not quite the right tool for the job, but since I actually use it for real glossaries as well, I thought it would not hurt to use a tool I am fairly familiar with (considering I am a novice and have no experience with makeidx).
No comments:
Post a Comment