Debian Codegraph @

texmf-dist/doc/latex/glossaries/samples/mwe-acr.tex

raw
1 % This file is public domain
2 % If you want to use arara, you need the following directives:
3 % arara: pdflatex
4 % arara: makeglossaries
5 % arara: pdflatex
6 %
7 %See also
8 %http://mirrors.ctan.org/macros/latex/contrib/glossaries/glossaries-user.html#minimalgls
9 \documentclass{article}
10
11 \usepackage{glossaries}
12
13 \makeglossaries
14
15 \setacronymstyle{long-short}
16
17 \newacronym{laser}{laser}{light amplification by stimulated
18 emission of radiation}
19
20 \begin{document}
21
22 First use: \gls{laser}.
23
24 Next use: \gls{laser} or \glspl{laser}.
25
26 \printglossaries
27
28 \end{document}