This is probably a noob error. I get a "Missing $ inserted" error when compiling the following code:
\item $%
\begin{array}{c}
w_{M}>w_{F} \\
\text{or }w_{F}>w_{M}%
\end{array}%
:\left\{
\resizebox{6.3cm}{!}{%
\begin{array}{l}
\text{the one earning more will continue working, } \\
\text{whilst the one earning less will} \\
\text{go on if }w>\eta \text{, otherwise he/she }\\
\text{will drop out and provide homecare}%
\end{array}%
}
\right. $
I tried to solve it by adding $
signs anywhere I though it would be correct, but I was not able to get rid of the error. I also tried removing all $
. Nevertheless, if I skip this error while compiling, the result is precisely the one I wanted.
EDIT: Thank you. It turns out I was using resizebox in the wrong way. The right code is
\item $
\begin{array}{c}
w_{M}>w_{F} \\
\text{or }w_{F}>w_{M}%
\end{array}%
:\left\{
\resizebox{6.3cm}{!}{%
$
\begin{array}{l}
\text{the one earning more will continue working, } \\
\text{whilst the one earning less will} \\
\text{go on if }w>\eta \text{, otherwise he/she }\\
\text{will drop out and provide homecare}%
\end{array}%
$
}
\right. $
Best Answer
It looks like
\resizebox
can't be used in maths mode. Try this: