summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/glossaries-extra/sample-nested.tex
blob: a7c32a6908191036f7506577dd954b5c5431ab5b (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
39
40
41
42
43
44
45
46
% arara: pdflatex
% arara: makeglossaries
% arara: pdflatex
\documentclass{article}

\usepackage[T1]{fontenc}
\usepackage[colorlinks]{hyperref}
\usepackage{glossaries-extra}

\makeglossaries

\setabbreviationstyle{long-short-sc}

\newabbreviation{ssi}{ssi}{server side includes}
\newabbreviation{html}{html}{hypertext markup language}

%DON'T use this with upper casing commands!
\newabbreviation{shtml}{shtml}{\gls{ssi} enabled \gls{html}}

% Alternatively
%\newabbreviation{shtml}{shtml}{\glsxtrshort{ssi} enabled \glsxtrshort{html}}

% Or
%\newabbreviation{shtml}{shtml}{\glsps{ssi} enabled \glsps{html}}
% (optional) enable indexing when \glsps occurs in glossary:
%\renewcommand{\glossxtrsetpopts}{\glsxtrsetpopts{noindex=false}}

\begin{document}

This is a sample document testing nested link text.
The \texttt{glossaries-extra} package temporarily modifies
commands like \verb|\gls| or \verb|\glsxtrshort| that occur
in fields, when any of those field is accessed through linking
commands.

First use: \gls{shtml}.

\newpage

Next use: \gls{shtml}.

\newpage

\printglossaries

\end{document}