Debian Codegraph @

texmf-dist/doc/latex/glossaries/samples/mwe-acr-desc.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{short-long-desc}
16
17 \newacronym[description={a device that emits a narrow beam of
18 light}]{laser}{laser}{light amplification by stimulated
19 emission of radiation}
20
21 \begin{document}
22
23 First use: \gls{laser}.
24
25 Next use: \gls{laser} or \glspl{laser}.
26
27 \printglossaries
28
29 \end{document}