I'd like to use in math mode instead the only letter g the \mbox{g} (with another tail). How possible to redefine it globally? I found example to redefine letter z:
\catcode`\z=\active \def z{Yawn, I'm tired}
But it does not work for letter g! The code
\catcode`\g=\active \def g{\mbox{g}}
returns errors.
Yawn, I'm tireddoesn't containz, whereas\mbox{g}contains ag. – egreg Mar 30 '16 at 21:45