conditional glossary style
I use glossaries to display a global symbol list but also local one for each equation. The first userkey is used to add the physical unit. But some smybols (like efficiencies or proportions) don't require a unit. I marked these with a dash. In the global list of symbols this looks fine (like the one at COP).
But for the local one (due to using a diffrent style) it looks kinda silly.
So my wish is to drop the in - if the \glsuerkeyi equals -. I have a command which is placed inside the glossarystyle to produce the entries :
%glossarystyle uses tabular
\newcommand{\itemss}[2]{\glstext*{#1} & #2 in \glsuseri*{#1} \\}
So I guess this command needs to be renewed conditionally for each entry. I found this (How to check if a macro value is empty or will not create text with plain TeX conditionals?) helpful post.
But I have quite a few things I'm not sure about:
a) Can the command even be renewed inside the glossaries environment and if yes can it be redefined for each entry?
b) I'm not sure which solution from the other post to apply. Since I got tokens, printed out text and I do not want to check for emtpy strings, and so on.
I would really appreciate if you could point me in the right direction.
I use glossaries to display a global symbol list but also local one for each equation. The first userkey is used to add the physical unit. But some smybols (like efficiencies or proportions) don't require a unit. I marked these with a dash. In the global list of symbols this looks fine (like the one at COP).
But for the local one (due to using a diffrent style) it looks kinda silly.
So my wish is to drop the in - if the \glsuerkeyi equals -. I have a command which is placed inside the glossarystyle to produce the entries :
%glossarystyle uses tabular
\newcommand{\itemss}[2]{\glstext*{#1} & #2 in \glsuseri*{#1} \\}
So I guess this command needs to be renewed conditionally for each entry. I found this (How to check if a macro value is empty or will not create text with plain TeX conditionals?) helpful post.
But I have quite a few things I'm not sure about:
a) Can the command even be renewed inside the glossaries environment and if yes can it be redefined for each entry?
b) I'm not sure which solution from the other post to apply. Since I got tokens, printed out text and I do not want to check for emtpy strings, and so on.
I would really appreciate if you could point me in the right direction.
No comments:
Post a Comment