这可能是一个新手错误。我在编译以下代码时收到“缺少 $ 插入”错误:
\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. $
我尝试通过在我认为正确的任何地方添加符号来解决这个问题$
,但我无法消除错误。我也尝试删除所有$
。然而,如果我在编译时跳过这个错误,结果正是我想要的。
编辑:谢谢。原来我使用 resizebox 的方式不对。正确的代码是
\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. $
答案1
它似乎\resizebox
无法在数学模式下使用。试试这个:
\item $%
\begin{array}{c}
w_{M}>w_{F} \\
\text{or }w_{F}>w_{M}%
\end{array}$
\resizebox{6.3cm}{!}{
$:\left\{
\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. $
}