% This file is embedded in glossaries-extra-manual.pdf
% Example 2 \newabbreviation vs \newacronym vs \newglossaryentry
% arara: pdflatex
% arara: makeglossaries
% arara: pdflatex
% arara: pdfcrop
\documentclass[12pt]{article}
\pagestyle{empty}
\usepackage{glossaries-extra}
\makeglossaries
\newglossaryentry{sample}{name={sample},description={an example}}
\newabbreviation{xml}{XML}{extensible markup language}
\newacronym{nasa}{NASA}{National Aeronautics and Space Administration}
\begin{document}
First use: \gls{sample}, \gls{xml} and \gls{nasa}. Next use: \gls{sample}, \gls{xml} and \gls{nasa}.
\printglossaries 
\end{document}
