Spacing around negative sign in MS Office's Equation Editor

3

If I want to indicate a negative number in the Equation Editor (Office 2007 and onward), I do this:

-5

Equation Editor renders it nicely, with the hyphen (minus sign?) right close to the number:

negative five

But if I've got something more complicated, like a vector in polar notation:

25\angle-5\degree

I get this:

enter image description here

Which looks more like "twenty five angle minus five degrees" rather than "negative five degrees".

Is there any way to fix this?

Greg Bell

Posted 2015-02-04T00:21:14.990

Reputation: 373

Answers

3

The closest solution to this problem that I found is to use "Normal text" mode. Either select the minus sign and press "Normal text" in equation constructor, or put it as "-"5 instead of simply -5

The result will look like this:

enter image description here

You can probably bind it to some macro too, but I have no experience with VBA to recommend anything.

Artalus

Posted 2015-02-04T00:21:14.990

Reputation: 291

Wow, excellent. I've searched for a long time for this solution! Confirmed, both approaches work in Word and PowerPoint 2010. – Greg Bell – 2016-10-18T10:07:08.837

2

You can force the issue by wrapping invisible “parentheses” around the number:

25\angle\left -5° \right

or by using an abstract box that enforces spacing for an unary operator:

25\angle\box(4&-)5°

The argument to \box is documented here.

Results:

Joey

Posted 2015-02-04T00:21:14.990

Reputation: 36 381

Totally odd! Thanks for that. How did you figure that out? – Greg Bell – 2017-10-05T23:00:30.290

@GregBell: A bit of understanding how such things are determined. The spacing was rather obviously binary operator spacing, so the ∠ apparently has "operand" semantics here. Putting everything in \left and \right was the first idea, since that had to change the operator to unary. The other option was by looking through the specification for "unary". The \box pretty much allows you to override all parameters that are usually inferred from context, just the argument (4) is a bit unwieldy and hard to remember. Also, the other answer made the minus the wrong character, which annoyed me. – Joey – 2017-10-06T06:13:51.950