\section*{S}
.I have two failed attempts on this after a couple of hours searching the web. The first uses
\@nameuse
like thisCode: Select all
\makeatletter
\newcommand{\mydiv}[2]{%
\@nameuse{\expandafter\csname #1*\endcsname {#2}}%
%...
}
\makeatother
Missing \endcsname inserted.
.The other tries to define a temporary command and use it:
Code: Select all
\newcommand{\mydiv}[2]{%
\edef\temp{\csname #1*\endcsname}%
\temp{#2}%
%...
}
Thanks in advance for any help.