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 물리학 →

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 poweredAI로 LaTeX 작성

최고의 AI LaTeX 편집기, Overleaf 대안

Octree는 15개 이상의 대학의 연구자들이 AI를 사용하여 논문을 더 빠르게 작성하도록 도움

  • AI로 아름다운 TikZ 다이어그램 생성
  • 이미지를 업로드하고 LaTeX로 원활하게 변환
  • 논문 작성 및 서식에 대한 즉각적인 지원 받기