summaryrefslogtreecommitdiff
path: root/support/bib2gls/examples/sample-hierarchical.tex
blob: 7d00843f90d754cfab12c76a72b49911c7704db0 (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
30
31
% This file is public domain. See the "Examples" chapter
% in the bib2gls user manual for a more detailed description
% of this file.

\documentclass[12pt,a4paper]{article}

\usepackage[T1]{fontenc}
\usepackage[colorlinks]{hyperref}

\usepackage[record,% use bib2gls
 nostyles,% don't load default styles
 postdot,% add a full stop after the description
% load glossary-tree.sty and patch styles:
 stylemods={tree},
 style=treegroup]{glossaries-extra}

\GlsXtrLoadResources[
  src={terms,animals,minerals,vegetables},% data these .bib files
  field-aliases={identifier=parent}
]

\begin{document}
Some sample terms: \gls{duck}, \gls{sealion}, \gls{armadillo},
\gls{seal}, \gls{aardvark}, \gls{amethyst}, \gls{aquamarine},
\gls{diamond}, \gls{dolomite}, \gls{chalcedony}, \gls{citrine},
\gls{quetzalcoatlite}, \gls{cabbage}, \gls{cauliflower},
\gls{artichoke}, \gls{courgette}.

\GlsXtrSetDefaultNumberFormat{glsignore}% ignore records in the glossary
\printunsrtglossary
\end{document}