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 embedded in glossaries-extra-manual.pdf
% Example 140 Displaying sorted glossaries with groups using bib2gls
% arara: pdflatex
% arara: bib2gls: { group: on }
% arara: pdflatex
% arara: pdfcrop
\documentclass[12pt]{article}
\pagestyle{empty}
\begin{filecontents*}{animalfamilies.bib}
@index{waterfowl,user1={Anseriformes}}
@index{ant,user1={Formicidae}}
@index{adder,user1={Vipera berus}}
@index{duck,parent={waterfowl},user1={Anatidae}}
@index{zebra,user1={Hippotigris}}
@index{aardvark,user1={Orycteropus afer}}
@index{gazelle,user1={Gazella}}
@index{mallard,parent={duck},user1={Anas platyrhynchos}}
\end{filecontents*}
\usepackage[record,stylemods=bookindex,style=bookindex]{glossaries-extra}
\newglossary*{another}{Another Glossary}
\GlsXtrLoadResources[selection=all,% select all entries
src={animalfamilies},% identify bib file(s)
sort=en-GB,% sort method
secondary={la:user1:another}% sort again and copy to `another'
]
\glsdefpostname{index}{
(\emph{\glsentryuseri{\glscurrententrylabel}})}
\begin{document}
\printunsrtglossary
\printunsrtglossary[type=another]
\end{document}
|