diff options
Diffstat (limited to 'Master/texmf-dist/doc/latex/glossaries-extra/sample-crossref2.tex')
-rw-r--r-- | Master/texmf-dist/doc/latex/glossaries-extra/sample-crossref2.tex | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/glossaries-extra/sample-crossref2.tex b/Master/texmf-dist/doc/latex/glossaries-extra/sample-crossref2.tex new file mode 100644 index 00000000000..9a400c897be --- /dev/null +++ b/Master/texmf-dist/doc/latex/glossaries-extra/sample-crossref2.tex @@ -0,0 +1,29 @@ +% arara: pdflatex +% arara: makeglossaries +% arara: pdflatex +\documentclass{article} + +\usepackage[nonumberlist]{glossaries-extra} + +\makeglossaries + +\renewcommand*{\glsxtrpostdescgeneral}{% + \ifglshasfield{see}{\glscurrententrylabel} + {, \glsxtrusesee{\glscurrententrylabel}}% + {}% +} + +\newglossaryentry{sample1}{name={sample 1},description={an example}} +\newglossaryentry{sample2}{name={sample 2},description={an +example},see={sample1}} +\newglossaryentry{sample3}{name={sample 3},description={an +example},see={sample2}} +\newglossaryentry{sample4}{name={sample 4},description={an +example},see=[see also]{sample2,sample3}} + +\begin{document} +\gls{sample4}. + +\printglossaries + +\end{document} |