I want to pass more than one argument to a pic defined with \tikzset.
I tried this and it works:
\tikzset{
Piece/.pic={
\draw (0:1) -- (120:1) -- (240:1) -- cycle;
\draw (0,0) node {$\Gamma_#1$};
}
};
\pic {Piece={k}};
I get the following image:
But what I really need is to have two subscripts, as in this one:
However, no matter what I write in the \pic command, it is treated as a string and associated to the #1 argument. I would like something like:
\tikzset{
Piece/.pic={
\draw (0:1) -- (120:1) -- (240:1) -- cycle;
\draw (0,0) node {$\Gamma_{#1,#2}$};
}
};
\pic {Piece={k,r}};
But this does not work.
How can I specify two different and independent arguments?
Thank you in advance.