I want to create a shortcut for
\textsubscriptARGS
With ARGS being any number.
I want to type something like 123\a33332 and have the same output as 123\textsubscript{33332}
I tried with \def and \newcommand unsuccessfully
Thanks!
I tryed \def\aa #1#2#3{\textsubscript{#1#2#3}} and it works but only if there are 3 args, do you know how to set the args as optional or to include all the characters before a space as one arg?


123\a33332.? – Werner Apr 20 '17 at 01:55123\a{33332}work is easy as pie (although it might be better to pick a different name to\a) But what you are trying to do flies so roundly in the face of how LaTeX works that there are better things to do with your time, like finding an editor that can help you with subscripts – Au101 Apr 20 '17 at 01:56\a3will be read as one command won't it? – Au101 Apr 20 '17 at 01:57\csname...\endcsname). – Werner Apr 20 '17 at 01:58\aa123would be fine, but\aa1234would not work as expected. The same goes for\aa12. – Werner Apr 20 '17 at 02:04