| 1 |
% arara: pdflatex |
| 2 |
% arara: makeglossaries |
| 3 |
% arara: pdflatex |
| 4 |
% arara: pdflatex |
| 5 |
\documentclass{report} |
| 6 |
|
| 7 |
\usepackage[colorlinks]{hyperref} |
| 8 |
\usepackage{glossaries-extra} |
| 9 |
|
| 10 |
\makeglossaries |
| 11 |
|
| 12 |
\newabbreviation{html}{HTML}{hypertext markup language} |
| 13 |
\newabbreviation{xml}{XML}{extensible markup language} |
| 14 |
\newabbreviation{svg}{SVG}{scalable vector graphics} |
| 15 |
|
| 16 |
\begin{document} |
| 17 |
\tableofcontents |
| 18 |
|
| 19 |
\chapter{Sample} |
| 20 |
|
| 21 |
First use: \gls{html}, \gls{xml} and \gls{svg}. |
| 22 |
|
| 23 |
Next use: \gls{html}, \gls{xml} and \gls{svg}. |
| 24 |
|
| 25 |
Resetting. |
| 26 |
\glsresetall |
| 27 |
|
| 28 |
Provide specific text (no first use trigger): \glslink{html}{SHTML}. |
| 29 |
(Has been used? \ifglsused{html}{Yes}{No}.) |
| 30 |
|
| 31 |
Provide specific text (first use trigger): \glsdisp{html}{SHTML}. |
| 32 |
(Has been used? \ifglsused{html}{Yes}{No}.) |
| 33 |
|
| 34 |
\printglossaries |
| 35 |
|
| 36 |
\end{document} |