I use several macros to define various constants etc for example
Code: Select all
\newcommand{\xscale}{\tilde{x}}
For example;
Code: Select all
\begin{tabular}{l l l}
Variable&Meaning&\LaTeX Command\\
$\xscale$&Scaled Coorinate&\verb$\xscale$\\
\endPtabular}
What I would like to do is put together a command whereby I can add a new variable to the list by;
Code: Select all
\newvar{\name}{Definition}
Code: Select all
$\name$&Definition&\verb$\name$\\
I've learnt that \verb and verbatim cannot be used in this manner but am unable to find a suitable work-around.