tags:

views:

55

answers:

1

I have an equation that is only a tiny bit too wide for one line. I'd really like to avoid having the equation number on the next line. How do you achieve this? Currently I'm using \small, but this is overkill.

Please note. I have tried scalebox and fittowidth but get errors about missing \endgroup. I have also used \! to its full extent. I am hoping for a solution that will allow me to scale the proper one-line equation to the width of the page.

Here is an example (not my actual equation):

alt text

+1  A: 
\begin{equation}
\resizebox{.9\hsize}{!}{$A+B+C+D+E+F+G+H+I+J+K+L+M+N+O+P+Q+R+S+T+U+V+W+X+Y+Z$}
\end{equation}

or

\begin{equation}
\resizebox{.8\hsize}{!}{$A+B+C+D+E+F+G+H+I+J+K+L+M+N+O+P+Q+R+S+T+U+V+W+X+Y+Z$}
\end{equation}
Alexey Malistov
+1 So, I was really close with `scalebox`. Why does it have to be inside the equation environment? Also, why am I then forced to use in-line math mode instead of display style? Thanks for this good answer.
Geoff
`Why does it have to be inside the equation environment?` It is not necessary. As you wish. For example. `Also, why am I then forced to use in-line math mode instead of display style?` Because `\resizebox` deals with box and you have to form such box. Any math inside horizontal box is text mode math.
Alexey Malistov