Really impressed by the extensive potential of glossaries
package by Nicola L.C. Talbot to manage different types of glossaries in a generic approach, however I tried to look for this feature in the user-manual, but couldn't find help though.
As in the MWE, sometimes you want to make use of all benefits of the defining new entries by glossaries
package, yet you don't want them to make their way into the glossary list, or that type of list to which they don't really belong, which happened to be Acronyms in my case, and the entry Xxx
is not welcomed to be in the acronym list as it is something not belonging to the rest of acronyms, an odd one. In keeping with this, another wish is not to get this entry even counted like others in that glossary list or any other, it is like rendering it as a''ghost entry'', if it fits the description, i.e., to be typeset but not listed, like ghosts may visit election campaigns but their votes would never be counted!
Is there any way to suppress entries similar to Xxx
from appearing in the Acronym list, while still ''\gls''ing it in the text?
Note: glossaries package is v3.07 from TexLive 2013 distribution.
\documentclass[12pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage{xcolor}
\usepackage[hyperindex=true]{hyperref}
\definecolor{dark-red}{rgb}{0.4,0.15,0.15}
\hypersetup{colorlinks, linkcolor={dark-red}}
\usepackage[xindy, nonumberlist=true]{glossaries}
\makeglossaries
\newacronym{lab1}{Acr1}{long description 1}
\newacronym{lab2}{Acr2}{long description 2}
\newacronym{lab3}{Acr3}{long description 3}
\newacronym{lab4}{Xxx}{description in text but not to be listed}
\begin{document}
Here is the first use of \gls{lab1}, \gls{lab2}, \gls{lab3}, and \gls{lab4}.
This is the second use of \gls{lab1}, \gls{lab2}, \gls{lab3}, and \gls{lab4}.
\end{document}
Result of MWE: