# How to get Google Docs to auto-substitute an equation?

In Google Docs preferences it lets you set up a table of shortcuts in the form of substitutions. For example if you type (c) it will automatically replace it with the copyright symbol ©.

Google Docs also lets you insert an equation (not really an equation, but a mathematical expression of any sort).

Is there any way to get it to replace certain text with an equation? I tried copying an already-inserted equation into the With field in the substitution table, but simply doing that didn't work—it just stripped my equation down to the letters that were in the expression.

Here is a snippet from inside a document that might better illustrate what I'm looking for.

• What sort of equation are you talking about? Something simple like x + y = z, or something that requires special fonts and commands (e.g., MathJax)? – ale Jan 18 '14 at 13:11
• Maybe you could copy what it is you're trying to substitute here so we have a better idea of what you're after? Or maybe crop a screen shot? – ale Jan 18 '14 at 15:40
• Ah. The answer to your question is "no", then. The text substitution in Google Documents is just a pure character replacement. You'll need to use a third-party tool of some sort. AutoHotKey might do what you want. – ale Jan 18 '14 at 18:22

I just created an auto-substitution that replaces =x with x + y = z and it works just fine.