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 poweredاكتب LaTeX باستخدام الذكاء الاصطناعي

أفضل محرر LaTeX بالذكاء الاصطناعي، بديل Overleaf

يساعد Octree الباحثين من أكثر من 15 جامعة على كتابة أوراق البحث بشكل أسرع باستخدام الذكاء الاصطناعي

  • أنشئ رسوم TikZ جميلة باستخدام الذكاء الاصطناعي
  • ارفع صورة وحولها إلى LaTeX بسلاسة
  • احصل على مساعدة فورية في كتابة وتنسيق أوراق البحث