0

Is there any option to make a glossary entry not to appear in the glossaries list? I want it to be in the text and behave as glossary/acronym, but I don't want it to be displayed in the list index.

Thanks

  • 1
    Please help us to help you and add a minimal working example (MWE) that illustrates your problem. It will be much easier for us to reproduce your situation and find out what the issue is when we see compilable code, starting with \documentclass{...} and ending with \end{document}. – user31729 Jul 3 '14 at 8:22
  • Which glossary package do you use? – user31729 Jul 3 '14 at 8:25
  • @ChristianHupfer I use glossaries package. It is really difficult to create a MWE as I only want to know if there is an option in the \newacronym command to set not to be displayed in the list. – jlanza Jul 3 '14 at 8:35
  • Well, a short file with a acronym definition, such that other users do not have to create it for you... – user31729 Jul 3 '14 at 8:37
  • I think, you should ask the author of the glossaries package, Nicola Talbot. She is also a user here and perhaps also available in TeX.SX chat. Just look around ;-) – user31729 Jul 3 '14 at 9:13
3

Here's a minimal working example (MWE) that uses the method suggested in the section Links to Glossary Entries in the user manual:

\documentclass{article}

\usepackage[colorlinks]{hyperref}
\usepackage[acronym,nohypertypes={common}]{glossaries}

\newglossary{common}{cacr}{cacn}{Common Acronyms}

\makeglossaries

\newglossaryentry{sample}{name={sample},description={an example}}

\newacronym{abc}{ABC}{a sample acronym}
\newacronym[type=common]{xyz}{XYZ}{another sample acronym}

\begin{document}

First use: \gls{abc}, \gls{xyz}, \gls{sample}.
Next use: \gls{abc}, \gls{xyz}.

\printglossary
\printglossary[type=acronym]

\end{document}

This produces:

Image of resulting document

Update:

As from version 4.08 you can defined an "ignored glossary" using \newignoredglossary instead of \newglossary. The above example can be rewritten:

\documentclass{article}

\usepackage[colorlinks]{hyperref}
\usepackage[acronym]{glossaries}

\newignoredglossary{common}

\makeglossaries

\newglossaryentry{sample}{name={sample},description={an example}}

\newacronym{abc}{ABC}{a sample acronym}
\newacronym[type=common]{xyz}{XYZ}{another sample acronym}

\begin{document}

First use: \gls{abc}, \gls{xyz}, \gls{sample}.
Next use: \gls{abc}, \gls{xyz}.

\printglossaries

\end{document}

The result is the same as the above image.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.