I am new to writing packages and am coming across an error that I can't unravel, I would appreciate any help that you can provide. I am writing a few macros which are meant to be used within a tabular environment:
\newcommand{\topics}{\@ifstar{\topicsStar}{\topicsNoStar}}
\newcommand{\topicsNoStar}[1]{\multicolumn{2}{|p{2in}|}{test}}
\newcommand{\topicsStar}{&&}
When I call
\topicsNoStar{stuff}
the output is correct.
When I call
\topics{stuff}
I get the error message: !Misplaced \omit. \multispan ->\omit \@multispan
What is confusing me is the difference between the two calls - in my mind, they should be doing the same thing, but the output is not the same.
Now, I do plan to include @'s in the commands above in the final version, but, to debug, I wanted to be able to call them outside the style file. Also, the argument to NoStar is not used, it will be placed into the multicolumn once this is working correctly.

