summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/glossaries-extra/sample-abbrv.tex
blob: 9d598f408f0cb86d3a90a916a77893abca701d1f (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
% arara: pdflatex
% arara: makeglossaries
% arara: pdflatex
% arara: pdflatex
\documentclass{report}

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

\makeglossaries

\newabbreviation{html}{HTML}{hypertext markup language}
\newabbreviation{xml}{XML}{extensible markup language}
\newabbreviation{svg}{SVG}{scalable vector graphics}

\begin{document}
\tableofcontents

\chapter{Sample}

First use: \gls{html}, \gls{xml} and \gls{svg}.

Next use: \gls{html}, \gls{xml} and \gls{svg}.

Resetting.
\glsresetall

Provide specific text (no first use trigger): \glslink{html}{SHTML}.
(Has been used? \ifglsused{html}{Yes}{No}.)

Provide specific text (first use trigger): \glsdisp{html}{SHTML}.
(Has been used? \ifglsused{html}{Yes}{No}.)

\printglossaries

\end{document}