I am trying to compile this and I get the 'Missing delimiter (. inserted)' error even though overleaf manages to display what I want
\documentclass{article}
\usepackage{graphicx}
\usepackage{amsmath}
\newcommand{\vect}[3]{
\left
\begin{pmatrix}
#1\\[0.3 em]
#2\\[0.3 em]
#3
\end{pmatrix}
\right.
}
\begin{document}
\[
\vect{1}{2}{3}
\]
\end{document}
could you help me? (sorry if my question is stupid, I am a beginner)
\leftbefore thepmatrix.\leftrequires an explicit "fence". Sincepmatrixautomatially provides the fences,\leftand\roightaren't needed. – barbara beeton Apr 15 '19 at 16:48\left(,\left[,\left\{, etc. but not\left. However, as Barbara Beeton said,\left...and\right.here are not necessary – Apr 15 '19 at 16:54pmatrixthan from\left(\begin{matrix}– David Carlisle Apr 15 '19 at 18:38