Could you help to comment how to typeset matrix
inside aligned
environment ?
The following code gives a lot of "Missing $ inserted" when pdflatex... Many thanks !
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\title{} % Enter your title between curly braces
\author{} % Enter your name between curly braces
\date{} % Enter your date or \today between curly braces
\maketitle
$$ \begin{aligned}
a = \left(\begin{matrix}
a_{1} \\
a_{2} \\
a_{3}
\end{matrix}\right) \text{in the basis } \{\vec{e}_i\} \\
a = \left(\begin{matrix}
a'_{1} \\
a'_{2} \\
a'_{3}
\end{matrix}\right) \text{in the basis } \{\vec{\varepsilon}_i\}
\end{aligned}
$$
\end{document}