我正在尝试将两个向量定义对齐。两个方程都已编号(也应该编号)。我找到了一个类似(已回答)的问题在 Stack 上,但我的方程式似乎没有正确对齐。
这是我的代码
\begin{multicols}{2}
\begin{equation}
\label{eq:va}
\begin{aligned}
\textbf{v}_a = \begin{pmatrix}
{\alpha_1} \\ {\alpha_2} \\ {\vdots} \\ {\alpha_{T-1}} \\ {\alpha_T} \end{pmatrix}
\end{aligned}
\end{equation}\break
\begin{equation}
\label{eq:vc}
\begin{aligned}
\textbf{v}_c = \begin{pmatrix}
{\beta_1} \\ {\beta_2} \\ {\vdots} \\ {\beta_{T-1}} \\ {\beta_T} \end{pmatrix}
\end{aligned}
\end{equation}
\end{multicols}
答案1
借助两个小页面:
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\noindent
\begin{minipage}{0.5\textwidth}
\begin{equation}
\label{eq:va}
\begin{aligned}
\textbf{v}_a = \begin{pmatrix}
{\alpha_1} \\ {\alpha_2} \\ {\vdots} \\ {\alpha_{T-1}} \\ {\alpha_T} \end{pmatrix}
\end{aligned}
\end{equation}
\end{minipage}%
\begin{minipage}{0.5\textwidth}
\begin{equation}
\label{eq:vc}
\begin{aligned}
\textbf{v}_c = \begin{pmatrix}
{\beta_1} \\ {\beta_2} \\ {\vdots} \\ {\beta_{T-1}} \\ {\beta_T} \end{pmatrix}
\end{aligned}
\end{equation}
\end{minipage}
\end{document}
答案2
进一步的网络搜索给了我答案。
1 ) 删除\break
2 )\noindent
在第一个等式前添加
\begin{multicols}{2}
\noindent
\begin{equation}
\label{eq:va}
\begin{aligned}
\textbf{v}_a = \begin{pmatrix}
{\alpha_1} \\ {\alpha_2} \\ {\vdots} \\ {\alpha_{T-1}} \\ {\alpha_T} \end{pmatrix}
\end{aligned}
\end{equation}
\begin{equation}
\label{eq:vc}
\begin{aligned}
\textbf{v}_c = \begin{pmatrix}
{\beta_1} \\ {\beta_2} \\ {\vdots} \\ {\beta_{T-1}} \\ {\beta_T} \end{pmatrix}
\end{aligned}
\end{equation}
\end{multicols}