Left Right Arrow in LaTeX (\leftrightarrow)

↔\leftrightarrow
LaTeX command
\leftrightarrow
Package
No package needed: built into LaTeX
Mode
Math mode only
Copy the Unicode character
↔U+2194

Where it is used

Draws a short two-headed arrow, for correspondences, the biconditional, and resonance structures.

Logic uses p \leftrightarrow q for the biconditional connective inside formulas, while \Leftrightarrow and \iff are more common between whole statements. In combinatorics it describes a bijective correspondence between objects, and chemistry uses it between resonance structures, not for equilibrium, which uses \rightleftharpoons. Graph theory may use it for undirected or bidirectional edges. It is a relation and gets thick spacing. For a longer version use \longleftrightarrow. In truth-table discussions it is equivalent to XNOR, true exactly when both sides agree.

Also listed under: 함수 및 사상

Minimal compilable example

Paste this into an empty .tex file and compile it with pdfLaTeX, XeLaTeX or LuaLaTeX.

p↔q≡(p→q)∧(q→p)p \leftrightarrow q \equiv (p \rightarrow q) \land (q \rightarrow p)
\documentclass{article}
\begin{document}
Left Right Arrow: $\leftrightarrow$

\[ p \leftrightarrow q \equiv (p \rightarrow q) \land (q \rightarrow p) \]
\end{document}

Related symbols

All 화살표 기호 →

Frequently asked questions

How do I write Left Right Arrow in LaTeX?
Type \leftrightarrow in math mode, for example $p \leftrightarrow q \equiv (p \rightarrow q) \land (q \rightarrow p)$. It works in plain LaTeX without loading any package.
Which package do I need for \leftrightarrow?
None. \leftrightarrow is part of standard LaTeX, so it compiles with nothing in the preamble but the document class.
Can I use \leftrightarrow in text mode, or only in math mode?
Only in math mode. Outside $...$ LaTeX stops with "Missing $ inserted", so write $\leftrightarrow$ in running text. If you only need the glyph in text, paste the Unicode character ↔ instead (with XeLaTeX or LuaLaTeX and a font that has it).
Math poweredAI로 LaTeX 작성

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

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

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