diff options
Diffstat (limited to 'Master/texmf-dist/doc/latex/glossaries-extra/sample-alias.tex')
-rw-r--r-- | Master/texmf-dist/doc/latex/glossaries-extra/sample-alias.tex | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/glossaries-extra/sample-alias.tex b/Master/texmf-dist/doc/latex/glossaries-extra/sample-alias.tex new file mode 100644 index 00000000000..b6d0f8fa692 --- /dev/null +++ b/Master/texmf-dist/doc/latex/glossaries-extra/sample-alias.tex @@ -0,0 +1,37 @@ +% arara: pdflatex +% arara: makeglossaries +% arara: pdflatex +\documentclass{article} + +\usepackage[colorlinks]{hyperref} +\usepackage{glossaries-extra} + +\makeglossaries + +\newglossaryentry{numberlist}{name={number list}, + description={\nopostdesc}, + alias={locationlist}} + +\newglossaryentry{locationlist}{name={location list}, + description={list of locations} +} + +\renewcommand{\glsxtrsetaliasnoindex}{% + \ifglshasfield{alias}{\glslabel}% + {% + \setkeys{glslink}{noindex}% + \glsxtrindexaliased + }% + {}% +} + +\begin{document} + +\gls{numberlist} or \gls{locationlist}. + +\newpage +\gls{numberlist} + +\newpage +\printglossaries +\end{document} |