2

I am trying to align two vector definitions next to each other. Both equations are (and should be) numbered. I found a similar (answered) question on Stack but my equations doesn't seem to align properly. enter image description here

This is my code

\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}
J.O.P.P.
  • 43
  • 4

2 Answers2

3

With the help of two minipages:

enter image description here

\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}
leandriis
  • 62,593
1

Some further web-search gave me the answer.

1 ) Remove \break 2 ) Add \noindent before the first equation

enter image description here Correct code:

\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}
J.O.P.P.
  • 43
  • 4