I am writing in IEEEtran two-column environment and has a display formula like this \sqrt{\frac{1^{2}}{0.111222}(0.111222\times1.111163+0.066987^{2}\times0.111222)-1}=\sqrt{0.111222}=0.111222
. Before the first equal sign is a long square root. This square root is just a little bit wider than the column. Is there a way I can squeeze the square root within the column as a first line and put the rest beginning with the "=" as a second line?
[Tex/LaTex] How to squeeze a long equation
equationsmath-mode
Best Answer
The answer is yes. Here's an illustration (followed by an explanation).
I've done the following:
I've used the
split
environment fromamsmath
to split up the equation in three lines. You can reduce this to two lines by removing the second\\&
.To place the anchor (
&
) at the right spot, I've inserted a horizontal space in front of it and a negative horizontal space of equal magnitude after it with\kern 4em & \kern-4em
.The amount of whitespace inserted at several places in an equation is governed by the following paramters:
\thickmuskip
(\;
and space around e.g.=
),\medmuskip
(\:
and space around e.g.+
),\thinmuskip
(\,
and space around e.g.\sum
and\sin
),\nulldelimiterspace
(space around e.g. fractions) and\scriptspace
(space after sub-/superscripts). I've halved each of these lengths using\squeezespaces{0.5}
(which is defined in the preamble).Doing this affects an entire equation and it can't be done inside
split
, so I've put the square root inside an\mbox{$<…>$}
and used\squeezespaces{0.5}
in the inner math environment. You can replace0.5
by another number between0
and1
if you want.A side-effect of putting the
\sqrt
in a box is that it is set in\textstyle
, which also saves space because it makes e.g. fractions smaller. You could also have accomplished this by using\tfrac
instead of\frac
or by inserting\textstyle
right before\sqrt
(or at the beginning of its first argument).If you don't want text style fractions you should use
\mbox{$\displaystyle<…>$}
.