Convert "newcommand" shorthands in a tex file to standard expressions