I want to change the command \textsubscript to \tsub by writing the following line in the preamble:
\renewcommand{\textsubscript}{\tsub}
but, unfortunately, it doesn't work !
Try the following instead of \renewcommand:
\let\tsub\textsubscript
\renewcommand{\textsubscript}{\tsub} does the following: Take whatever \textsubscript does and throw it away. Let then \tsub be executed when \textsubscript is called. But \tsub might not be defined, so LaTeX don't know what to do and stop.
– MrD
Apr 01 '13 at 14:54
\let? You wrote\renewcommaninstead of\renewcommand. – Marco Daniel Apr 01 '13 at 14:20\tsubpreviously defined? – Sigur Apr 01 '13 at 14:21\newcommand{\tsub}{\textsubscript}– egreg Apr 01 '13 at 14:21