# Is there any more convenient way to insert Math-mode Accents?

Is there any more convenient (concise) way to insert Math-mode Accents? For example is it possible to use a syntax like following:

a\^ %instead of \hat{a}


or

\^a %instead of \hat{a}

-
If you do not need the text mode accents you can just go \let\^\hat and use \^ . If you do want \^ to work as before in text mode then it's a bit trikier (and quite hard to do in a way that will never affect text mode kerns) –  David Carlisle Aug 9 '12 at 13:11

You can do this by redefining the accent macros only for mathmode, using the \everymath and \everydisplay token lists. You can do this as follows:

% Create a token list for your custom math accent macros
\newtoks\mymathaccents
\mymathaccents={%
\let\^\hat
\let\-\bar
\let\~\tilde
% etc.
}