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}
1
  • Never mind, I found the problem. I'll add the answer. – J.O.P.P. May 20 '20 at 13:05
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}
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}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.