[Tex/LaTex] Code for the Notation of Vector Projections


What LaTex code do I use to get the notation on the left of this equation, that is the projection of vector a on vector v?


Best Answer

Here is an option:

enter image description here


% http://tex.stackexchange.com/q/169557/5764


  \vectorproj[v]{a} = \frac{\vect{a} \cdot \vect{v}}{\norm{\vect{v}}^2} \vect{v}


\vectorproj[<onvector>]{<ofvector>} can be supplied with an optional <onvector>.