| 1 |
% This file is embedded in glossaries-extra-manual.pdf |
| 2 |
% Example 4 Referencing an abbreviation (with hyperref) |
| 3 |
% Label: "ex:abbrhyper" |
| 4 |
% arara: pdflatex |
| 5 |
% arara: makeglossaries |
| 6 |
% arara: pdflatex |
| 7 |
% arara: pdfcrop |
| 8 |
\documentclass[12pt]{article} |
| 9 |
\pagestyle{empty} |
| 10 |
\usepackage[colorlinks]{hyperref} |
| 11 |
\usepackage{glossaries-extra} |
| 12 |
\makeglossaries |
| 13 |
\newabbreviation{svm}{SVM}{support vector machine} |
| 14 |
\newabbreviation{html}{HTML}{hypertext markup language} |
| 15 |
|
| 16 |
\begin{document} |
| 17 |
\tableofcontents |
| 18 |
\section{Introducing the \glsfmtlong{svm}} |
| 19 |
First use: \gls{svm}. |
| 20 |
Next use: \gls{svm}. |
| 21 |
|
| 22 |
\section{Introducing \gls{html} (incorrect)} |
| 23 |
First use (not!): \gls{html}. |
| 24 |
Next use: \gls{html}. |
| 25 |
|
| 26 |
\glsreset{html} |
| 27 |
\section{Introducing \glsxtrshort{html} (incorrect)} |
| 28 |
First use: \gls{html}. |
| 29 |
Next use: \gls{html}. |
| 30 |
|
| 31 |
|
| 32 |
\glsreset{html} |
| 33 |
\section{Introducing \glsfmtshort{html}} |
| 34 |
First use: \gls{html}. |
| 35 |
Next use: \gls{html}. |
| 36 |
\printglossaries |
| 37 |
\end{document} |