Vector Field in LaTeX (\vec{E})

E⃗\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.

F⃗=q(E⃗+v⃗×B⃗)\vec{F} = q(\vec{E} + \vec{v} \times \vec{B})
\documentclass{article}
\begin{document}
Vector Field: $\vec{E}$

\[ \vec{F} = q(\vec{E} + \vec{v} \times \vec{B}) \]
\end{document}

Related symbols

All Fysica →

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.
Math poweredSchrijf LaTeX met AI

Beste AI LaTeX Editor, Overleaf Alternatief

Octree helpt onderzoekers van 15+ universiteiten sneller onderzoeksartikelen schrijven met AI

  • Genereer mooie TikZ-diagrammen met AI
  • Upload afbeelding en converteer naadloos naar LaTeX
  • Krijg directe hulp bij het schrijven en opmaken van onderzoeksartikelen