Debian Codegraph @

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

raw
1 % This file is embedded in glossaries-extra-manual.pdf
2 % Example 68 The short-hyphen-long-hyphen-desc abbreviation style
3 % Label: "ex:abbrvstyleshort-hyphen-long-hyphen-desc"
4 % arara: pdflatex
5 % arara: pdfcrop
6 \documentclass[11pt]{article}
7 \pagestyle{empty}
8 \usepackage[T1]{fontenc}
9 \usepackage[colorlinks]{hyperref}
10 \usepackage{glossaries-extra}
11 \glssetcategoryattributes{abbreviation}
12 {markwords,markshortwords}{true}
13 \setabbreviationstyle{short-hyphen-long-hyphen-desc}
14 \newabbreviation[description={sample description}]
15 {ex}{SHRT FM}{long form}
16 \begin{document}
17 First: \gls{ex}[-insert]. Next: \gls{ex}[-insert].
18 Full: \glsxtrfull{ex}[-insert]. First plural: \glspl[prereset]{ex}[-insert].
19 First no insert: \gls[prereset]{ex}.
20 \printunsrtglossaries
21 \end{document}