Sometimes, I want to have arrow tips on a path. The full syntax for that would be:
postaction=decorate,decoration={markings,mark={between positions <1> and <2> step <3> with {\arrow{latex}}}}
where by <1> <2> <3> I denote the parameters of this decoration, which must be two numbers between 0 and 1 and a length. For now, I have:
\tikzset{repmidarrow/.style={postaction=decorate,decoration={markings,mark={between positions 0.05 and 1 step #1 with {\arrow{latex}}}}}}
Unfortunately, this does not allow me to specify anything but <3>, which is the reason for the specified <1> and <2>, which were a specific case in a picture I just drew. In the future, should I want different positions, I would have to either design another key or place the full syntax in the picture code, which makes the code far messier. Unfortunately, TikZ keys can, AFAIK, only have one parameter. I was thinking of using auxiliary keys to give the extra parameters, and would like to get to something that, with:
\draw[repmidarrow={from=<1>,to=<2>,step=<3>}] <path>;
gives:
\draw[postaction=decorate,decoration={markings,mark={between positions <1> and <2> step <3> with {\arrow{latex}}}} <path>;
Is there a way to achieve this? PS I hope my braces above are well-matched.
The picture I referred to above is:
\begin{tikzpicture}
\draw[repmidarrow=25pt] (-2,0) -- (2,0) -- (0,2) -- cycle;
\clip (-2,0) -- (2,0) -- (0,2) -- cycle;
\draw[repmidarrow=25pt] (-.02,0) -- (-1.02,.98);
\draw[repmidarrow=25pt] (.98,.98) -- (.02,0);
\draw[repmidarrow=25pt] (-.98,1.02) -- (1.02,1.02);
\draw[repmidarrow=25pt,red] (0,0) -- (1,1) -- (-1,1) -- cycle;
\end{tikzpicture}
compiled with the above \tikzset and the TikZ package of course. Result:


style n argsandstyle argshandlers for more than one arguments. – percusse Mar 06 '15 at 15:27