Debian Codegraph @

texmf-dist/doc/latex/glossaries-extra/samples/sample-altmodifier.tex

raw
1 % arara: pdflatex
2 % arara: makeglossaries
3 % arara: pdflatex
4 % arara: pdflatex
5 \documentclass{article}
6
7 \usepackage[colorlinks]{hyperref}
8 \usepackage{glossaries-extra}
9
10 \makeglossaries
11
12 % Don't use with indexonlyfirst setting!
13
14 \GlsXtrSetDefaultGlsOpts{noindex}
15 \GlsXtrSetAltModifier{>}{noindex=false}
16
17 \newglossaryentry{sample}{name={sample},description={an example}}
18
19 \begin{document}
20 This is a sample document.
21 The \gls{sample} entry is used on this page but isn't indexed.
22
23 \newpage
24 The \gls>{sample} entry is used on this page and is indexed.
25
26 \newpage
27 The \gls{sample} entry is used on this page but isn't indexed.
28
29 \newpage
30 \printglossaries
31
32 \end{document}