diff options
Diffstat (limited to 'Master/texmf-dist/doc/latex/glossaries/samples/sample-dual.tex')
-rw-r--r-- | Master/texmf-dist/doc/latex/glossaries/samples/sample-dual.tex | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/glossaries/samples/sample-dual.tex b/Master/texmf-dist/doc/latex/glossaries/samples/sample-dual.tex new file mode 100644 index 00000000000..0da681150ed --- /dev/null +++ b/Master/texmf-dist/doc/latex/glossaries/samples/sample-dual.tex @@ -0,0 +1,29 @@ + % This file is public domain +\documentclass{article} + +\usepackage[acronym]{glossaries} + + % \newdualentry[main options]{label}{short}{long}{description} + +\newcommand*{\newdualentry}[5][]{% + \newglossaryentry{main-#2}{name={#4},% + text={#3\protect\glsadd{#2}},% + description={#5},% + #1 + }% + \newacronym{#2}{#3\protect\glsadd{main-#2}}{#4} +} + +\newdualentry{svm}% label + {SVM}% abbreviation + {support vector machine}% long form + {Statistical pattern recognition technique}% description + +\makeglossaries + +\begin{document} + +\gls{svm}. + +\printglossaries +\end{document} |