[Tex/LaTex] Resizebox within equation environment

boxesequationsgraphics

How does the resize command work with the equation environment? The following code results in an error.

\begin{equation}\label{model3_coef}
  \resizebox{0.91\hsize}{!}{y_{t}^{3} = -145.071 - 0.003*x_{t-1}^{7} + 0.459*x_{t}^{6} +
  0.001*x_{t-1}^{8} -5.071*x_{t-1}^{9} + 7.322*x_{t-1}^{5} - 0.235*x_{t-1}^{1}  }
\end{equation}

Best Answer

The parameter for \resizebox is in text mode. Thus you need to explicitly go into math mode:

enter image description here

Code:

\documentclass[12pt]{article}
\usepackage{graphicx}

\begin{document}
\begin{equation}\label{model3_coef}
    \resizebox{0.91\hsize}{!}{%
        $y_{t}^{3} = -145.071 - 0.003 x_{t-1}^{7} + 0.459 x_{t}^{6} + 0.001 x_{t-1}^{8} 
                     -5.071 x_{t-1}^{9} + 7.322 x_{t-1}^{5} - 0.235 x_{t-1}^{1}$%      
        }
\end{equation}
\end{document}