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

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

\makeglossaries

%\setabbreviationstyle{footnote}% similar to glossaries.sty acronym style of the same name
\setabbreviationstyle{postfootnote}% put the footnote after following punctuation if present

\newabbreviation{html}{HTML}{hypertext markup language}
\newabbreviation{xml}{XML}{extensible markup language}

\begin{document}
\chapter{Sample}

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

\chapter{Another Sample}

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

Short form: \glsxtrshort{xml}\@. Long form: \glsxtrlong{html}.
Full form: \glsxtrfull{xml}.

\printglossaries
\end{document}