2012年9月24日星期一

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}%


Read more!