% This file is embedded in glossaries-extra-manual.pdf
% Example 111 Cross-references (bib2gls and selection=recorded and deps and see)
% Label: "ex:recordedanddepsandsee"
% arara: pdflatex
% arara: bib2gls: { group: on }
% arara: pdflatex
% arara: pdfcrop
\documentclass[12pt]{article}
\pagestyle{empty}
\begin{filecontents*}{\jobname.bib}
% Encoding: UTF-8
@index{pumpkin, name = {pumpkin}}
@index{cucumber, name = {cucumber}}
@index{melon, name = {melon}}
@index{gourd, see = {pumpkin,cucumber,melon}, name = {gourd}}
@index{cucurbit, see = {gourd}, name = {cucurbit}}
@index{courgette, name = {courgette}}
@index{marrow, name = {marrow}, seealso = {courgette}}
@index{zucchini, name = {zucchini}, alias = {courgette}}
@index{broccoli, name = {broccoli}}
@index{cauliflower, name = {cauliflower}, seealso = {broccoli} }
\end{filecontents*}
\usepackage[colorlinks]{hyperref}
\usepackage[record,nostyles,stylemods=bookindex,style=bookindex]{glossaries-extra}
\GlsXtrLoadResources[src=\jobname,selection={recorded and deps and see}] 
\begin{document}
 This document is only discussing \glspl{courgette} (baby \glspl{marrow}, also called a \gls{zucchini}), \glspl{pumpkin} and \glspl{melon}.
\printunsrtglossaries 
\end{document}
