I'm trying to define "#1" as \text{#1} in math mode.
This worked:
\catcode`` = 13
\def``#1``{\text{#1}}
But if replace `` with ", it fails. I don't understand why. Is it possible to define " in this way ? And it possible to let this only work this way in math mode ?

thanks @egreg
– Kasper Nov 07 '13 at 04:00