The \xpatchcmd provided by regexpatch fails in patching command which begins with space. The same \xpatchcmd provided by xpatch works alright.

Some version info:

XeTeX      3.14159265-2.6-0.99999 
expl3      2018/06/14  
xparse     2018/05/12  
regexpatch 2018/05/02 v0.2d




% only this one fails
\def\test{ source}

\def\test{source source}


Note: This question ought to have tag "regexpatch", but currently I don't have enough reputation to create a new tag.

  • Also commands that end with spaces. Not sure whether I'll fix this. – egreg Jul 9 '18 at 5:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.