blob: c26ad44ecb445e5357d81ba563e234df82b751ea (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
% This file is embedded in glossaries-extra-manual.pdf
% Example 129 Multi-entries: skipping elements
% arara: pdflatex
% arara: makeglossaries
% arara: pdflatex
% arara: pdfcrop
\documentclass[12pt]{article}
\pagestyle{empty}
\usepackage[colorlinks]{hyperref} \usepackage[stylemods,style=long]{glossaries-extra}
\makeglossaries
\setabbreviationstyle{long-short-sc} \newabbreviation{ssi}{ssi}{server-side includes} \newabbreviation{html}{html}{hypertext markup language}
\setabbreviationstyle[combinedabbrv]{long-only-short-sc-only} \newabbreviation [category={combinedabbrv}, description={\glsxtrshort{ssi} enabled \glsxtrshort{html}}] {shtml-frag}{shtml}{enabled}
\glssetcategoryattribute{combinedabbrv}{multioptions}
{usedskipothers,firstsuffix={\glsxtrshort{\mglslastmainlabel}}}
\multiglossaryentry [category=combinedabbrv] {shtml}[shtml-frag]{ssi,shtml-frag,html}
\begin{document}
Individual elements first use: \gls{ssi} and \gls{html}.
Individual elements next use: \gls{ssi} and \gls{html}.
Multi-entry first use: \mgls{shtml}.
Multi-entry next use: \mgls{shtml}.
Resetting all\glsresetall\mglsreset{shtml}:
Multi-entry first use: \mgls{shtml}.
Multi-entry next use: \mgls{shtml}.
Individual elements: \gls{ssi} and \gls{html}. \printglossaries
\end{document}
|