I would like to generate an index of notation using the glossaries-package such that certain page numbers are suppressed.
It is easy to define some standard notation and include it in the index using \glsaddall.
But this adds the page numbers to the index, which is what I want to avoid.
Adding nonumberlist to the definition of an entry suppresses the page number. (nonumberlist also exists as package option, but not as option to \glsaddall.) But this has to be done for each entry and would also suppress future references.
Here is my question: How can I suppress all page numbers generated by \glsaddall? In other words: \glsaddall ensures that all notation not referenced by \gls appears in the index, but without having a page number. All entries generated by \gls add page numbers.
Here is a good example:
\documentclass{article}
\usepackage{amsfonts}
\newcommand*{\Z}{\mathbb{Z}}
\newcommand*{\Q}{\mathbb{Q}}
% glossaries-user.pdf (v3.03):
% If you use hyperref and glossaries, you must load hyperref first.
\usepackage{hyperref}
\usepackage[
style=long3colheader,
hyperfirst=false
]{glossaries}
\newglossaryentry{integers}{name=\ensuremath{\Z},
description={the ring of integers}, sort=!}
\newglossaryentry{rationals}{name=\ensuremath{\Q},
description={the field of rational numbers}, sort=!, nonumberlist}
\newglossaryentry{vector-space}{name=\ensuremath{V},
description={a vector space}, sort=V}
\makeglossaries
\begin{document}
\glsaddall
A vector space \gls{vector-space} \ldots
\printglossaries
\end{document}
The output is the following. The pages for Z and Q should not appear. (The page for Q is suppressed manually.)

(This question is related but not equal to glossaries: including an entry without page location.)


\glsaddallunusedis absolutely acceptable. Thank you! – One May 26 '13 at 21:03makeindex. And if you put all this code into its own package, saymyglos.sty, and load that with\usepackage{myglos}, your main file will look clean again ;-) – mafp May 26 '13 at 21:38