Debian Codegraph @

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

raw
1 % This file is embedded in glossaries-extra-manual.pdf
2 % Example 65 The long-hyphen-noshort-noreg abbreviation style
3 % Label: "ex:abbrvstylelong-hyphen-noshort-noreg"
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{long-hyphen-noshort-noreg}
14 \newabbreviation{ex}{SHRT FM}{long form}
15 \begin{document}
16 First: \gls{ex}[-insert]. Next: \gls{ex}[-insert].
17 Full: \glsxtrfull{ex}[-insert]. First plural: \glspl[prereset]{ex}[-insert].
18 First no insert: \gls[prereset]{ex}.
19 \printunsrtglossaries
20 \end{document}