使用包align
提供的环境amsmath
,我运行以下代码,旨在为这三个方程式生成一个标签:
\documentclass[12pt]{report}
\usepackage{amsmath}
\begin{document}
\begin{align}
\frac{\partial}{\partial \beta_0} \sum_{i=1}^{n} (y_i - \beta_0 - \beta_1 x_{i1} - \beta_2 x_{i2} - ... - \beta_k x_{ik})^2 = 0 \\
\frac{\partial}{\partial \beta_1} \sum_{i=1}^{n} (y_i - \beta_0 - \beta_1 x_{i1} - \beta_2 x_{i2} - ... - \beta_k x_{ik})^2 = 0 \\
\frac{\partial}{\partial \beta_2} \sum_{i=1}^{n} (y_i - \beta_0 - \beta_1 x_{i1} - \beta_2 x_{i2} - ... - \beta_k x_{ik})^2 = 0
\end{align}
\end{document}
由于某种原因,输出如下所示:
什么代码会输出分组在单个(3.3)标签下的相同方程式?