How can I define a new command with xparse, something like this:
\NewDocumentCommand\tensorkor{ m >{\SplitList{,}}o >{\SplitList{,}}o }
{
?????
}
that i can execute
$ \tensorkor{T}{^a,_b,_c,^r,^f} $
which should result in a code like this
$ {{{{{T^a}_b}_c}^r}^f} $
This is tricky? I dont get it with ProcessList{#1}


\mathit{T}\vphantom{\mathsf{T}}^a_b_c^r^f, why does it make brackets arround? ahhh i got it, vphantom is the phantom vertical space between each sub/superscript – Gabriel Apr 30 '13 at 16:12{}. – egreg Mar 14 '14 at 12:03\vphantomdoes NOT change the super/subscripts position. You would get the same result, if you just used {}. Consequently, if you replaceTwith something higher, the superscript will be too low (unlike the use of vphantom in your solution would suggest). For the reason and a solution have a look at http://tex.stackexchange.com/questions/165499/vphantom-and-superscripts – user4514 Mar 14 '14 at 17:37\phantom, not\sumor\int. – egreg Mar 14 '14 at 17:45