Debian Codegraph @

texmf-dist/doc/latex/glossaries-extra/samples/sample-acronym-desc.tex

raw
1 % arara: pdflatex
2 % arara: makeglossaries
3 % arara: pdflatex
4 % arara: makeglossaries
5 % arara: pdflatex
6 \documentclass{report}
7
8 \usepackage[colorlinks]{hyperref}
9 \usepackage[nopostdot=false]{glossaries-extra}
10
11 \makeglossaries
12
13 \renewcommand*{\glsxtrpostdescacronym}{%
14 \space(\textsc{origin:} \glsentrylong{\glscurrententrylabel})%
15 }
16
17 \newacronym[description={a device that emits a narrow intense
18 beam of light}]{laser}{laser}{light amplification by stimulated
19 emission of radiation}
20
21 \newacronym[description={a form of \gls{laser} generating a beam of
22 microwaves}]{maser}{maser}{microwave amplification by stimulated
23 emission of radiation}
24
25 \newacronym[description={a system for detecting the location and
26 speed of ships, aircraft, etc, through the use of radio waves}]{radar}{radar}{radio detection and ranging}
27
28 \newacronym[description={portable breathing apparatus for divers}]{scuba}{scuba}{self-contained underwater breathing
29 apparatus}
30
31 \begin{document}
32 \tableofcontents
33
34 \chapter{Sample}
35
36 An acronym is a word formed from the initial letters of other words.
37 Since it's a word, an acronym is pronounced as a word rather than as
38 a series of letters. Examples of acronyms: \gls{laser}, \gls{maser},
39 \gls{radar} and \gls{scuba}.
40
41 \printglossaries
42
43 \end{document}