smart way to add glossary in latex

In latex, glossary could be formatted by table. Here is a simple example. It is quite easy to extend with more items.

\renewcommand\arraystretch{1.5}

\newcommand{\myitem}[2] { \textbf{#1} & #2 \\}

\begin{table}[htbp]
\begin{tabular}{ll}
\myitem{SVM}{Support Vector Machine}
\end{tabular}%
\label{tab:Glossary}%
\end{table}%

原文地址:https://www.cnblogs.com/xueliangliu/p/2962160.html