请帮我换行这个gather
环境。您可以清楚地看到我想换行哪一行,因为我split
在代码中放置了环境。一行太长了。
我还想给它加标签(即右侧的 $(20)$ 或 $(21)$ 或其他任何内容)。我之所以使用是gather
因为我希望所有方程式都按 LHS 边距对齐。
我使用 LaTeX。
\documentclass{article}
\usepackage[fleqn]{amsmath}
\begin{document}
\begin{gather}
Q(CSAD_t(\tau)|\mathbf{Z}) = \alpha(\tau) + \beta(\tau)|R_{M,t}| + \gamma(\tau)R_{M,t}^2 + \epsilon_t \\
\begin{split}
Q(CSAD_t(\tau)|\mathbf{Z}) &= \alpha(\tau) + \beta(\tau)_0|R_{M,t}| + \gamma(\tau)_0R_{M,t}^2 + \beta(\tau)_1D_{ALL,t}|R_{M,t}| \\
&+ \gamma(\tau)_1D_{ALL,t}R_{M,t}^2 + \epsilon_t \\
\end{split} \newline
Q(CSAD_t(\tau)|\mathbf{Z}) = \alpha(\tau) + \mathbf{\beta(\tau)}\mathbf{D}'|R_{M,t}| + \mathbf{\gamma(\tau)}\mathbf{D}'R_{M,t}^2 + \epsilon_t \\
\mathbf{\beta(\tau)} = [\beta(\tau)_0, \beta(\tau)_1,...,\beta(\tau)_6];\textrm{ }\mathbf{\gamma(\tau)} = [\gamma(\tau)_0,\gamma(\tau)_1,...,\gamma(\tau)_6];\textrm{ }\mathbf{D} = [1, D_{1,t},...,D_{6,t}] \notag \\
\tau = 0.05,0.1,0.5,0.9,0.95 \notag
\end{gather}
\end{document}
答案1
equation
您可以通过将计数器设置为来获取数字少一个比您想要的第一个数字大,在本例中为 19。您在后面遇到了故障,{split}
因为您使用了\newline
,它是文本而不是数学命令。不要混淆这两个!我改用\\
,和\notag
来隐藏那里的数字(按照您的示例)。最后,我用子环境替换了最后几行中的显式间距{aligned}
,这使我能够将最终的方程式排列起来并自动展开。
\documentclass{article}
\usepackage[fleqn]{amsmath}
\begin{document}
\setcounter{equation}{19}
\begin{gather}
Q(CSAD_t(\tau)|\mathbf{Z})
= \alpha(\tau) + \beta(\tau)|R_{M,t}| + \gamma(\tau)R_{M,t}^2 + \epsilon_t \\
\begin{aligned}
Q(CSAD_t(\tau)|\mathbf{Z})
&= \alpha(\tau) + \beta(\tau)_0|R_{M,t}| + \gamma(\tau)_0R_{M,t}^2 \\
&+ \beta(\tau)_1D_{ALL,t}|R_{M,t}| + \gamma(\tau)_1D_{ALL,t}R_{M,t}^2 + \epsilon_t
\end{aligned} \notag\\
Q(CSAD_t(\tau)|\mathbf{Z})
= \alpha(\tau) + \mathbf{\beta(\tau)}\mathbf{D}'|R_{M,t}| + \mathbf{\gamma(\tau)}\mathbf{D}'R_{M,t}^2 + \epsilon_t \\
\begin{aligned}
\mathbf{\beta(\tau)} &= [\beta(\tau)_0, \beta(\tau)_1,...,\beta(\tau)_6]; &
\mathbf{\gamma(\tau)} &= [\gamma(\tau)_0,\gamma(\tau)_1,...,\gamma(\tau)_6];\notag\\
\mathbf{D}& = [1, D_{1,t},...,D_{6,t}] &
\tau &= 0.05,0.1,0.5,0.9,0.95 \notag
\end{aligned}
\end{gather}
\end{document}