WeBWorK Main Forum

Why negative space in LaTeX

Re: Why negative space in LaTeX

by Davide Cervone -
Number of replies: 0

> If you have something like: > > \ln\mathopen{}\left(\frac{x}{2}\right)\mathclose{}^2 > > then the exponent positioning at the end is bad.

You are correct, that is a bad side-effect. I think the solution is to do

\ln\mathopen{}\mathclose{\left(\frac{x}{2}\right)}^2

so that the CLOSE applies to the whole parenthetic group (instead of the OPEN, as in my example). That will allow the position of the square to be correct, and will get the correct spacing before it.