Vector Field in LaTeX (\vec{E})
- LaTeX command
\vec{E}- Package
- No package needed: built into LaTeX
- Mode
- Math mode only
Where it is used
Arrow accent over a letter marking it as a vector, here the electric field E.
Introductory physics writes vectors with arrows, \vec{E}, \vec{F} = q\vec{E}, while most journals and advanced texts prefer bold, \mathbf{E}, or for Greek letters \boldsymbol{\omega}. \vec is a short fixed-width accent sized for a single character; for multi-letter vectors such as a segment AB, \overrightarrow{AB} stretches across the whole label. Pick one vector style for the entire document. Unit vectors are typically hatted, \hat{x}, and for dotless i and j inside accents use \imath and \jmath.
Minimal compilable example
Paste this into an empty .tex file and compile it with pdfLaTeX, XeLaTeX or LuaLaTeX.
\documentclass{article}
\begin{document}
Vector Field: $\vec{E}$
\[ \vec{F} = q(\vec{E} + \vec{v} \times \vec{B}) \]
\end{document}Related symbols
- Multiplication
\times - Partial Time
\frac{\partial}{\partial t} - Divergence
\nabla \cdot - Christoffel Symbol
\Gamma^{\lambda}_{\mu\nu} - Curl
\nabla \times - Tensor
T^{\mu\nu}
Frequently asked questions
- How do I write Vector Field in LaTeX?
- Type \vec{E} in math mode, for example $\vec{F} = q(\vec{E} + \vec{v} \times \vec{B})$. It works in plain LaTeX without loading any package.
- Which package do I need for \vec{E}?
- None. \vec{E} is part of standard LaTeX, so it compiles with nothing in the preamble but the document class.
- Can I use \vec{E} in text mode, or only in math mode?
- Only in math mode. Outside $...$ LaTeX stops with "Missing $ inserted", so write $\vec{E}$ in running text.
Pinakamahusay na AI LaTeX Editor, Alternatibo sa Overleaf
Tinutulungan ng Octree ang mga researcher mula sa 15+ na unibersidad na sumulat ng research papers nang mas mabilis gamit ang AI
- Gumawa ng magagandang TikZ diagrams gamit ang AI
- Mag-upload ng larawan at i-convert ito sa LaTeX nang walang problema
- Makakuha ng instant na tulong sa pagsulat at pag-format ng research papers