I have read the question and answers about:
- Defining a newcommand, with variable name, inside another newcommand
- How to define a macro to create a new macro with a name passed as its argument?
- What exactly do \csname and \endcsname do?
What I want to do is similar, but one step further. I would like to define a new command with a variable name, but the new command should have parameters (exactly one in my case).
I tried to use the hash symbol
# twice, like this:
But this does not seem to work and I am too confused or ignorant to produce a mwe with nesting of macro definitions with parameters. For an answer, pointing me to the relevant place of the documentation would be enough. It looks like nesting of macro definitions is not a commonly used nor explained feature.
PD: I was almost right, it is like this: