TransWikia.com

Glossaries: how to disable indexing locally, self reference inside the definition?

TeX - LaTeX Asked on August 31, 2020

How to disable indexing locally?

Requirement: that Gls{foo} inside fancyhead not be indexed, such that only page 1, instead of 1 & 2, be displayed next to "Foo" under "Glossary".

enter image description here

Self reference inside the definition

For entry foo, how would I call Gls{foo}, or some variant, inside name=?

documentclass{article}
usepackage{glossaries}
usepackage{hyperref}
makenoidxglossaries

newglossaryentry{foo}
{
%  name={Gls*{foo}}, % ERROR: Improper alphabetic constant.
%  name={Glsentrytext{foo}}, % ERROR: Improper alphabetic constant.
  name={Foo},
  text={foo},
  description={ }
}

newglossaryentry{bar}
{
%  name={Gls*{bar}},
  name={Bar},
  text={bar},
  description={ }
}


usepackage{fancyhdr}%-------------------------------------------------
fancyhf{}
fancyhead[c]{Gls*{foo}}
pagestyle{fancy}

begin{document}

Gls{foo}

newpage

Gls{bar}

printnoidxglossaries

end{document}

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP