I want to define a macro (I've simplifyed for posting a clean code) in a macro which name's depend on the name of an argument of the first macro. Here I use the packages amsthm, hyperref and aliascnt, but I suppose it does not matter for answering.
I want it executes the code : \providecommand*{\MyFirstautorefname}{MySecond}
when I call \mymacro{Myfist}{MySecond} in the preamble.
I know it may be the easiest thing for Kings in LaTeX, but I didn't find how to do it ... I tried this code :
\newcommand{\mymacro}[2]{
\providecommand*{\#1autorefname}{#2}
}
and the same with \csname#1\endcsname but there is "autorefname" to concatene.
\expandafterto jump over the*? – Sean Allred May 26 '15 at 23:04