summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/glossaries-extra/glossaries-extra-manual-examples/glossaries-extra-manual-example112.tex
blob: a5f9df240fab60920d012017c94cc431ba42fb2b (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
% This file is embedded in glossaries-extra-manual.pdf
% Example 112 Cross-references (bib2gls and selection=recorded and deps and see, prune-xr)
% Label: "ex:recordedanddepsandseeprune"
% 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},prune-xr] 
\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}