1

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)

  • 1
    Does https://tex.stackexchange.com/a/279200/107497 clarify what's going wrong? – Teepeemm Apr 15 '19 at 16:47
  • 1
    Welcome to tex.sx. The reason for the error message is the presence of the \left before the pmatrix. \left requires an explicit "fence". Since pmatrix automatially provides the fences, \left and \roight aren't needed. – barbara beeton Apr 15 '19 at 16:48
  • You need \left(, \left[, \left\{, etc. but not \left. However, as Barbara Beeton said, \left... and \right. here are not necessary –  Apr 15 '19 at 16:54
  • It works by writting \left( and \right). and replacing pmatrix by matrix but not by just removing \left and \right. is that normal? – Noeudpap Apr 15 '19 at 17:04
  • 1
    You will get better spacing from pmatrix than from \left(\begin{matrix} – David Carlisle Apr 15 '19 at 18:38

0 Answers0