Debian Codegraph @

texmf-dist/doc/latex/glossaries-extra/glossaries-extra-manual-examples/glossaries-extra-manual-example006.tex

raw
1 % This file is embedded in glossaries-extra-manual.pdf
2 % Example 6 Tagging abbreviation initials
3 % Label: "ex:tagging"
4 % arara: pdflatex
5 % arara: makeglossaries
6 % arara: pdflatex
7 % arara: pdfcrop
8 \documentclass[12pt]{article}
9 \pagestyle{empty}
10 \usepackage{glossaries-extra}
11 \makeglossaries
12 \GlsXtrEnableInitialTagging{acronym,abbreviation}{\itag}
13 \setabbreviationstyle[acronym]{short-nolong-desc}
14 \newacronym
15 [description={a system for detecting the location and speed of ships, aircraft, etc, through the use of radio waves}% description of this term
16 ]
17 {radar}% identifying label
18 {radar}% short form
19 {\itag{ra}dio \itag{d}etection \itag{a}nd \itag{r}anging}
20
21 \newabbreviation{xml}{XML}
22 {e\itag{x}tensible \itag{m}arkup \itag{l}anguage}
23
24 \newabbreviation[category={other}]{tne}{TNE}
25 {\itag{t}agging \itag{n}ot \itag{e}nabled}
26 \begin{document}
27 First use: \gls{radar}, \gls{xml}, \gls{tne}.
28
29 Long form only: \glsxtrlong{radar}, \glsxtrlong{xml}, \glsxtrlong{tne}.
30 \printglossaries
31 \end{document}