I have been trying to use \SplitArgument
onto a command with also contains an s-type argument. I have tried everything, but the star is not taken into account, and on top of that, I get a parasitic space. Any idea what I'm doing wrong ?
In the MWE, the star variant should remove the automatic initial space.
The AUX command works flawlessly, but I can't split my argument.
\documentclass{article}\usepackage[citestyle=ext-authoryear-comp]{biblatex}\DeclareNameWrapperFormat{labelname:poss}{#1's}\DeclareFieldFormat{shorthand:poss}{% \ifnameundef{labelname}{#1's}{#1}}\DeclareFieldFormat{citetitle:poss}{\mkbibemph{#1}'s}\DeclareFieldFormat{label:poss}{#1's}\newrobustcmd*{\posscitealias}{% \AtNextCite{% \DeclareNameWrapperAlias{labelname}{labelname:poss}% \DeclareFieldAlias{shorthand}{shorthand:poss}% \DeclareFieldAlias{citetitle}{citetitle:poss}% \DeclareFieldAlias{label}{label:poss}}}\newrobustcmd*{\tcitepos}{% \posscitealias% \textcite}\NewDocumentCommand{\tcitecomAUX}{smm}{% \IfBooleanF{#1}{\space}% \textcite{#2}\space and\space\tcitepos{#3}}\NewDocumentCommand{\tcitecom}{s>{\SplitArgument{1}{,}}m}{\tcitecomAUX#2{#1}}\begin{filecontents}{\jobname.bib} @book{smi96, author = {Smith, Adam}, year = {1996}, title = {Economy}, publisher = {My company} } @book{joh84, author = {Jones, Indiana}, year = {1984}, title = {The Graal}, publisher = {My company} }\end{filecontents}\addbibresource{\jobname.bib}\begin{document} As in\tcitecomAUX{smi96}{joh84} common theory... As in\tcitecomAUX*{smi96}{joh84} common theory... % Works nicely. \vspace{2ex} As in\tcitecom{smi96,joh84} common theory... % Extra space. As in\tcitecom*{smi96,joh84} common theory... % The star is ignored.\end{document}