Can i make a macro in a class file that take a string like argument and call a local macro? I want to make the following:
\newcommand{\somename}{\def\@somename{#1}} \newcommand{\warning}[1] { \ifthenelse {\isundefined{\@#1}} {You have to define #1. Use this macro: \textbackslash#1} {} } \AtBeginDocument {\warning{somename}} Then, if in the document file i didnt define \@somename i will have a warning saying that to me.
Any ideas?

\csname @#1\endcsname\@datethen be used, for example?\makeatletter\newcommand{\warning}[1]{\@ifundefined{@#1}{Booo!!!}{Yay!!!}}\makeatother? That's what\@ifundefinedis made for...\@somenameas the warning and do the redefinition with\somenameto have the real string instead of the former warning.