\@ifnextchar\space
and \@ifnextchar\@sptoken
to check if the next character was a space, but it didn't work.\@ifnextchar\space
and \@ifnextchar\@sptoken
to check if the next character was a space, but it didn't work.NEW: TikZ book now 40% off at Amazon.com for a short time.
\@ifnextchar
deliberately skips spaces, so this will not work! As suggested, the use case might be handy here so we can suggest a good solution.\new@ifnextchar
that can be used instead of \@ifnextchar
if following spaces shouldn't be ignored, so maybe that might work.NEW: TikZ book now 40% off at Amazon.com for a short time.