diff options
Diffstat (limited to 'macros/latex/contrib/glossaries-extra/glossaries-extra-manual-examples/glossaries-extra-manual-example141.tex')
-rw-r--r-- | macros/latex/contrib/glossaries-extra/glossaries-extra-manual-examples/glossaries-extra-manual-example141.tex | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/macros/latex/contrib/glossaries-extra/glossaries-extra-manual-examples/glossaries-extra-manual-example141.tex b/macros/latex/contrib/glossaries-extra/glossaries-extra-manual-examples/glossaries-extra-manual-example141.tex new file mode 100644 index 0000000000..a71ff91a3f --- /dev/null +++ b/macros/latex/contrib/glossaries-extra/glossaries-extra-manual-examples/glossaries-extra-manual-example141.tex @@ -0,0 +1,19 @@ +% This file is embedded in glossaries-extra-manual.pdf +% Example 141 Filtering by category +% arara: pdflatex +% arara: pdfcrop +\documentclass[12pt]{article} +\pagestyle{empty} +\usepackage[style=index]{glossaries-extra} + \newglossaryentry{ant}{name={ant},description={}} + \newglossaryentry{pi}{name={\ensuremath{\pi}},description={}, + category={symbol}} +\newglossaryentry{aardvark}{name={aardvark},description={}} +\begin{document} +\renewcommand{\printunsrtglossaryentryprocesshook}[1]{% + \glsifcategory{#1}{symbol}% + {\printunsrtglossaryskipentry}% + {}% + } +\printunsrtglossary +\end{document} |