numbas / Numbas

A completely browser-based e-assessment/e-learning system, with an emphasis on mathematics
http://www.numbas.org.uk
Apache License 2.0
203 stars 117 forks source link

Does -((a+bi)/c) need brackets around the whole fraction when displayed in TeX? #757

Closed christianp closed 2 years ago

christianp commented 3 years ago

We had an expression -(125+i)/3, which was rendered in TeX as -\frac{ 125 + i }{ 3 }. I think that brackets around the fraction would make it clearer that the negation applies to the whole thing. I'm not sure whether - a/b should always have brackets around the fraction, or just when there's an addition or subtraction on the top, or what.

ugoertz commented 3 years ago

As far as I can tell, $-\frac{ 125 + i }{ 3 }$ is fine and is the usual thing to write. I would definitively prefer not to have parentheses in this case. First example in a printed text I found (from the Princeton Companion to Mathematics): IMG_20201102_125751

christianp commented 3 years ago

Thanks, @ugoertz

christianp commented 2 years ago

OK, no extra parentheses.