how to write a vector in latex code example Example 1: latex vector $\overrightarrow{AB} = 0_E$ Example 2: latex vector syntax %For vector A% \Vec{A}