Debian Codegraph @

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

raw
1 % This file is embedded in glossaries-extra-manual.pdf
2 % Example 131 Multi-entries: skipping elements (unsetting others)
3 % Label: "ex:multientryskipunsetothers"
4 % arara: pdflatex
5 % arara: makeglossaries
6 % arara: pdflatex
7 % arara: pdfcrop
8 \documentclass[12pt]{article}
9 \pagestyle{empty}
10 \usepackage[T1]{fontenc}
11 \usepackage[colorlinks]{hyperref}
12 \usepackage[stylemods,style=long]{glossaries-extra}
13
14 \makeglossaries
15
16
17 \setabbreviationstyle{long-short-sc}
18 \newabbreviation{ssi}{ssi}{server-side includes}
19 \newabbreviation{html}{html}{hypertext markup language}
20
21 \setabbreviationstyle[combinedabbrv]{long-only-short-sc-only}
22 \newabbreviation
23 [category={combinedabbrv},
24 description={\glsxtrshort{ssi} enabled \glsxtrshort{html}}]
25 {shtml-frag}{shtml}{enabled}
26
27 \glssetcategoryattribute{combinedabbrv}{multioptions}
28 {%
29 hyper={notmainfirst},
30 mglsopts={presetlocal,unsetothers,others={local}},
31 usedskipothers,
32 firstsuffix={\glsxtrshort{\mglslastmainlabel}}
33 }
34
35
36 \multiglossaryentry
37 [category=combinedabbrv]
38 {shtml}[shtml-frag]{ssi,shtml-frag,html}
39 \begin{document}
40 Individual elements first use: \gls{ssi} and \gls{html}.
41
42 Individual elements next use: \gls{ssi} and \gls{html}.
43
44 Multi-entry first use: \mgls{shtml}.
45
46 Multi-entry next use: \mgls{shtml}.
47
48 Resetting all\glsresetall\mglsreset{shtml}:
49
50 Multi-entry first use: \mgls{shtml}.
51
52 Multi-entry next use: \mgls{shtml}.
53
54 Individual elements: \gls{ssi} and \gls{html}.
55 \printglossaries
56 \end{document}