# tabular inside a newcommand [closed]

I'm trying to define a \newcommand that has a tabular in it, but I get an:

! You can't use macro parameter character #' in restricted horizontal mode.


Here's an example:

\newcommand{\Mytest}{1}{
\begin{tabular}{c}
#1 \\\hline
\end{tabular}
}


Any way around this?

-

## closed as too localized by Martin Scharrer♦Aug 16 '11 at 15:23

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

I'm not able to reproduce your error. Could please provide a full minimal working example (MWE). –  N.N. Aug 16 '11 at 15:14

Arguments of a command should be enclosed in [] and not {}.
\newcommand{\Mytest}[1]{%
`