summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/glossaries/samples/mwe-acr-desc.tex
blob: 19611cf7635cb1f981339841ccebf30ee4380453 (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
% This file is public domain
% If you want to use arara, you need the following directives:
% arara: pdflatex
% arara: makeglossaries
% arara: pdflatex
%
%See also
%http://mirrors.ctan.org/macros/latex/contrib/glossaries/glossaries-user.html#minimalgls
\documentclass{article}

\usepackage{glossaries}

\makeglossaries

\setacronymstyle{short-long-desc}

\newacronym[description={a device that emits a narrow beam of 
light}]{laser}{laser}{light amplification by stimulated
emission of radiation}

\begin{document}

First use: \gls{laser}.

Next use: \gls{laser} or \glspl{laser}.

\printglossaries

\end{document}