| 1 |
% This file is embedded in glossaries-user.pdf |
| 2 |
% Example 6 Simple document that uses bib2gls to sort entries |
| 3 |
% Label: "ex:b2g" |
| 4 |
% arara: pdflatex |
| 5 |
% arara: bib2gls |
| 6 |
% arara: pdflatex |
| 7 |
% arara: pdfcrop |
| 8 |
\documentclass[12pt]{article} |
| 9 |
\pagestyle{empty} |
| 10 |
\begin{filecontents*}{sample-entries.bib} |
| 11 |
@entry{parrot, |
| 12 |
name={parrot}, |
| 13 |
description={a brightly coloured tropical bird} |
| 14 |
} |
| 15 |
@entry{duck, |
| 16 |
name={duck}, |
| 17 |
description={a waterbird} |
| 18 |
} |
| 19 |
@entry{puffin, |
| 20 |
name={puffin}, |
| 21 |
description={a seabird with a brightly coloured bill} |
| 22 |
} |
| 23 |
@entry{penguin, |
| 24 |
name={penguin}, |
| 25 |
description={a flightless black and white seabird} |
| 26 |
} |
| 27 |
@symbol{alpha, |
| 28 |
name={\ensuremath{\alpha}}, |
| 29 |
description={a variable} |
| 30 |
} |
| 31 |
@abbreviation{arpanet, |
| 32 |
short={ARPANET}, |
| 33 |
long={Advanced Research Projects Agency Network} |
| 34 |
} |
| 35 |
\end{filecontents*} |
| 36 |
\usepackage[record,style=indexgroup]{glossaries-extra} |
| 37 |
\setabbreviationstyle{short-long} |
| 38 |
\GlsXtrLoadResources[src={sample-entries}]% data in sample-entries.bib |
| 39 |
|
| 40 |
\begin{document} |
| 41 |
\Gls{puffin}, \gls{duck} and \gls{parrot}. |
| 42 |
\gls{arpanet} and \gls{alpha}. |
| 43 |
Next use: \gls{arpanet}. |
| 44 |
\printunsrtglossary |
| 45 |
\end{document} |