8

Does anyone know where to find the syntax specification for entering equations into the 2007/2010 equation editors using only the keyboard? Searching just gives many links to people talking about how great the editor is, not instructions on how to use it. I have seen this shown in multiple demos of the product, but there are no documentation for it anywhere, even in the MS help.

Elliot
  • 5,211
  • 10
  • 42
  • 70
  • According to our [on-topic](https://stackoverflow.com/help/on-topic) guidance, "**Some questions are still off-topic, even if they fit into one of the categories listed above:**...Questions asking us to *recommend or find a book, tool, software library, tutorial or other off-site resource* are off-topic..." – Robert Columbia Feb 08 '18 at 15:38

3 Answers3

17

Formula input is very natural. Here are a few general rules:

  • "a^b" is automatically transformed to ab. If your exponential contains several terms, write "a^(b + c)" which will be transformed to ab + c. If you really do want a(b + c), write "a^((b + c))".

  • The same things apply to subscript: \epsilon_0, e.g.

  • The same things apply to fractions, e.g. 1/(a+b) will be transformed to what you expect.

  • To insert "a sin x", make sure to insert the space between "a" and "sin". Otherwise the "sin" function will not be recognized, and thus it will be in italic (which is incorrect).

  • Special characters are inserted using the \chr syntax. Try e.g. \alpha, \Delta, \cdot, \oplus, etc.

  • In addition, you can try differently styled characters: \scriptD, \scriptO, \doubleR, \frakturR, etc.

  • To modify a character, try v\bar, f\hat, x\dot, x\ddot, etc.

  • To write a n-ary sum, simply write "\sum_(k=1)^\infty" followed be a space to automatically get the sum symbol with "k=1" below and the infinity sign above. This also works with \prod, \int, \oint, \bigotimes, etc.

  • To write a square root, write \sqrt followed by a space, or a paranthesized expression.

  • Brackets of different kinds are automatically regocnized. For instance, you can write "[a, b]" and get a true bracket. You can also try \bra \phi_1 | \phi_2 \ket etc.

  • You can also write 'strange' brackets like [0, 1[ (which is how Swedes write [0, 1)), with only little more effort: [0, 1\right[ and a space.

  • To toggle bold/italic on/off, use Ctrl+B/Ctrl+I (this is Microsoft Word, remember? :) ) But you might want to check the formatting of your most recently added formulae every time you open a document, because sometimes the formatting (bold/italic) you changed during your last 'session' is lost or changed when you open the document again. Reapplying the formatting usually makes it 'stick'. However, it seems impossible to format formulae correctly in headings and figure captions; the default style of these objects (usually bold) cannot be 'overruled' manually on a character-by-character basis inside a formula.

  • To insert a 3×3 matrix, write \matrix(@@&&) followed by a space. To get the parantheses, write (\matrix(@@&&)) and a space. You can also enter the elements directly (guess how!), but it is often easier to do that after the matrix has been created.

  • You might find Shift+Return useful in some cases where you want to align formulae. Also, you have probably already realised that (x+4)^2 >= 0, \forall x\in\doubleR looks very good on its own row if you put two spaces after the comma!

  • To enter plain text in a formula, write the text inside double quotation marks: For instance, a =\above("by the lemma") 0. Hint: You can create very nice double arrows (implication or equivalence) by adding a lot of spaces above them. This I recommend a lot. But be cautious: using literal spaces inside formulae often results in seemingly random loss of characters next to the spaces due to a bug (at least in Word 2007 and 2010).

Finally, do not forget the context (right-click) menu. This is highly context sensitive, and has a lot of convenient commands (remove accent, add lower/upper limit, remove exponent, add argument, remove brackets, etc.). If you have a menu key on your keyboard, this will come in very handy (you should also learn the letter that activates each menu item).

For more details, see my article on Microsoft Word (the sections about mathematics), or -- if you are really hardcore -- the specification of the 'linear format' used to enter formulae in Word.

Andreas Rejbrand
  • 105,602
  • 8
  • 282
  • 384
  • 4
    It's almost like Latex, but of course MS had to make it just slightly different so you can't copy one to the other or make direct processing scripts. – Elliot May 23 '11 at 19:09
2

There is something like a specification for the linear format of the word equation editor. See e.g. the following blog entry from Murrays:

http://blogs.msdn.com/b/murrays/archive/2010/03/13/linear-format-version-3.aspx

There, he refers to the specification-like document: http://www.unicode.org/notes/tn28/UTN28-PlainTextMath-v3.pdf

You find many utf8-sequences as well as the LaTeX inspired shortcuts there.

Tobias
  • 5,038
  • 1
  • 18
  • 39
0

I took this link given somewhere else: https://support.office.com/en-us/article/Math-AutoCorrect-symbols-b8b463d9-f47d-45c4-a00f-9245c2b38843?ui=en-US&rs=en-US&ad=US

... and came up with this: http://jsfiddle.net/9cvp1gf2/embedded/result/

// The code is too long to display here
user1537366
  • 1,100
  • 1
  • 9
  • 15