% This file is embedded in glossaries-extra-manual.pdf
% Example 6 Tagging abbreviation initials
% Label: "ex:tagging"
% arara: pdflatex
% arara: makeglossaries
% arara: pdflatex
% arara: pdfcrop
\documentclass[12pt]{article}
\pagestyle{empty}
\usepackage{glossaries-extra}
\makeglossaries
\GlsXtrEnableInitialTagging{acronym,abbreviation}{\itag}
\setabbreviationstyle[acronym]{short-nolong-desc}
\newacronym
[description={a system for detecting the location and speed of ships, aircraft, etc, through the use of radio waves}% description of this term
 ]
 {radar}% identifying label
 {radar}% short form
 {\itag{ra}dio \itag{d}etection \itag{a}nd \itag{r}anging} 

\newabbreviation{xml}{XML}
 {e\itag{x}tensible \itag{m}arkup \itag{l}anguage} 

\newabbreviation[category={other}]{tne}{TNE}
 {\itag{t}agging \itag{n}ot \itag{e}nabled} 
\begin{document}
First use: \gls{radar}, \gls{xml}, \gls{tne}. 

Long form only: \glsxtrlong{radar}, \glsxtrlong{xml}, \glsxtrlong{tne}.
\printglossaries 
\end{document}
