Debian Codegraph @

texmf-dist/doc/latex/glossaries-extra/glossaries-extra-manual-examples/glossaries-extra-manual-example113.tex

raw
1 % This file is embedded in glossaries-extra-manual.pdf
2 % Example 113 Cross-references (bib2gls and selection=recorded and deps and see, prune-xr)
3 % Label: "ex:recordedanddepsandseeprune"
4 % arara: pdflatex
5 % arara: bib2gls: { group: on }
6 % arara: pdflatex
7 % arara: pdfcrop
8 \documentclass[12pt]{article}
9 \pagestyle{empty}
10 \begin{filecontents*}{\jobname.bib}
11 % Encoding: UTF-8
12 @index{pumpkin, name = {pumpkin}}
13 @index{cucumber, name = {cucumber}}
14 @index{melon, name = {melon}}
15 @index{gourd, see = {pumpkin,cucumber,melon}, name = {gourd}}
16 @index{cucurbit, see = {gourd}, name = {cucurbit}}
17 @index{courgette, name = {courgette}}
18 @index{marrow, name = {marrow}, seealso = {courgette}}
19 @index{zucchini, name = {zucchini}, alias = {courgette}}
20 @index{broccoli, name = {broccoli}}
21 @index{cauliflower, name = {cauliflower}, seealso = {broccoli} }
22 \end{filecontents*}
23 \usepackage[colorlinks]{hyperref}
24 \usepackage[record,nostyles,stylemods=bookindex,style=bookindex]{glossaries-extra}
25 \GlsXtrLoadResources[src=\jobname,selection={recorded and deps and see},prune-xr]
26 \begin{document}
27 This document is only discussing \glspl{courgette} (baby \glspl{marrow}, also called a \gls{zucchini}), \glspl{pumpkin} and \glspl{melon}.
28 \printunsrtglossaries
29 \end{document}