I am writing a report using revtex4-1 with a two column style and I have an equation that is too big and I don't want to "cut" using eqnarray.

I tried using resizebox but it doesn't work for me. Here is a MWE:





\resizebox{0.4\hsize}{!}{$\vec{F_v^i} = \sum_{j=1}^{N_1} k_1 (l_{ij} - l_1^0) \frac{\vec{r_{ij}}}{|\vec{r_{ij}}|} + \sum_{j=1}^{N_2} k_2 (l_{ij} - l_2^0) \frac{\vec{r_{ij}}}{|\vec{r_{ij}}|} + \sum_{j=1}^{N_3} \gamma \frac{\vec{r_{ij}}}{|\vec{r_{ij}}|}$}     


The equation is moved to the center of the page when I use resizebox. What is the right way to use resizebox in this situation?

  • How about multline? Also you need package graphicx for \resizebox. Nov 16 '15 at 13:10
  • Never use \hsize in LaTeX (only exception: some tricks with tabularx that are explained in the manual).
    – egreg
    Nov 16 '15 at 13:22

If you want to make your MWE work, then add \usepackage{graphicx} to the preamble. Otherwise \resizebox will not be defined.

I suggest using multline though. I also adjusted the typography of the vectors, \vec{r_{ij}}\vec{r}_{ij}.


  \vec{F}_v^i = \sum_{j=1}^{N_1} k_1 (l_{ij} - l_1^0) \frac{\vec{r}_{ij}}{|\vec{r}_{ij}|} \\
  + \sum_{j=1}^{N_2} k_2 (l_{ij} - l_2^0) \frac{\vec{r}_{ij}}{|\vec{r}_{ij}|} + \sum_{j=1}^{N_3} \gamma \frac{\vec{r}_{ij}}{|\vec{r}_{ij}|}


enter image description here

  • Thanks, but is there any way of resizing the equation so it fits in one single line?
    – A. A.
    Nov 17 '15 at 11:03
  • As I stated in the first line of the answer, add \usepackage{graphicx} to use \resizebox{\textwidth}{!}{...} (Don't do this! Break the lines properly as devised in my answer.) Nov 17 '15 at 12:18
  • I did, I forgot to add that to the mwe, but it still doesn't show what I want, the text gets into the second column overlapping the lipsum text.
    – A. A.
    Nov 17 '15 at 12:21
  • Try \linewidth instead of \textwidth. (Again, don't do this!) Nov 17 '15 at 13:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.