[Tex/LaTex] Components of Vectors

amsmath

How do I represent the ordered pair representing a vector, without the usual open/close parentheses? My calculus textbook uses these:

component of vector

Best Answer

\documentclass{article}
\usepackage{physics}
\usepackage{mathtools}
\DeclarePairedDelimiter{\opair}{\langle}{\rangle}
\begin{document}
  Using \verb|mathtools| and its \verb|DeclarePairedDelimiter| macro

  $\vb{a}=\opair{a,b}$

  Using \verb|physics| and its \verb|expval| macro

  $\vb{a}=\expval{a,b}$  or $\vb{a}=\ev{a,b}$
\end{document}

enter image description here