# Glossary acronym without references

Seems silly that I have to ask for such a simple thing but this glossary library is driving me up the wall. What I want to do is to simply display all the acronyms that I have defined after my table of content without having any references to them in my text. So something like this:

...
\usepackage[nonumberlist, acronym]{glossaries}
\newacronym{Foobar}{Foobar}{foo bar}
...
\begin{document}
\tableofcontents
\printglossaries
...
\end{document}


But no matter how I twist and turn the order it just doesn't display correctly. The few times I got it to display it somehow had ghost entries from previous test.

• Welcome to TeX.SX! 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 Jun 5 '15 at 14:35
• For example, I don't see \makeglossaries in your preamble and ... as ellipsis in the preamble is just bad ;-) – user31729 Jun 5 '15 at 14:36

The \makeglossaries is necessary as well as \glsaddall to show all defined acronyms.

Compilation can be done with several methods, but the easiest way is (assuming the source file is called foo.tex)

pdflatex foo

makeglossaries foo

\documentclass{article}
\usepackage[nonumberlist, acronym]{glossaries}
\newacronym{Foobar}{Foobar}{foo bar}
\newacronym{UNESCO}{Unesco}{United Nations Educational, Scientific and Cultural Organization}
\makeglossaries
\begin{document}
{"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 1, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.7257810235023499, "perplexity": 1334.8409047058356}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2019-35/segments/1566027321696.96/warc/CC-MAIN-20190824194521-20190824220521-00528.warc.gz"}