LaTeX 数学中的箭头
在数学模式中,\rightarrow(或 \to)得到 →,\Rightarrow 得到 ⇒,\leftrightarrow 得到 ↔;加上 long 前缀会让箭头变长,\xrightarrow{text} 则画出一个随标注伸长的箭头。
使用箭头
箭头的名称由几部分组成:方向(left、right、leftright、up、down),首字母大写表示双线箭头,long 表示更长的箭头。所以 \Longrightarrow 是一个向右的长双线箭头。箭头的间距与关系符相同。
用于极限、映射和蕴含的箭头
As $n \to \infty$, $a_n \rightarrow 0$. The map $f\colon A \to B$ sends
$x \mapsto x^2$, and $p \Rightarrow q$ holds, but not $q \Rightarrow p$.\implies(⟹)和 \iff(⟺)是两侧带额外空白的长双线箭头,用于行间公式中的逻辑命题。
用于逻辑的长箭头
x^2 = 44 \implies x = \pm\sqrt{44} \qquad A \subseteq B \iff A \cup B = B带标注的箭头
\x... 箭头会伸长以容纳上方的标注,方括号中还可以给出下方的可选标注。它们来自 amsmath 和 mathtools。
可伸缩箭头
A \xrightarrow{f} B \xrightarrow[\text{onto}]{g \circ h} C \qquad
X \xleftarrow{\;\sim\;} Y \qquad P \xRightarrow{\text{44 steps}} Q全部箭头
点击复制按钮即可复制命令。
\leftarrow\rightarrow\leftrightarrow\Leftarrow\Rightarrow\Leftrightarrow\lArr\Larr\longleftarrow\longrightarrow\longleftrightarrow\Longleftarrow\Longrightarrow\Longleftrightarrow\to\gets\mapsto\multimap\longmapsto\nRightarrow\hookrightarrow\looparrowright\nrightarrow\rightsquigarrow\rightarrowtail\Rrightarrow\twoheadrightarrow\nLeftarrow\hookleftarrow\looparrowleft\nleftarrow\leftarrowtail\Lleftarrow\twoheadleftarrow\uparrow\Uparrow\downarrow\Downarrow\iff\nLeftrightarrow\nleftrightarrow\leftrightsquigarrow\updownarrow\Updownarrow\nearrow\searrow\nwarrow\swarrow\circlearrowleft\curvearrowleft\circlearrowright\curvearrowright\rightrightarrows\leftleftarrows\upuparrows\downdownarrows\leftrightarrows\rightleftarrows\rightharpoonup\rightharpoondown\leftharpoonup\leftharpoondown\upharpoonleft\upharpoonright\downharpoonleft\downharpoonright\leftrightharpoons\rightleftharpoons\Darr\dArr\darr\dashleftarrow\dashrightarrow\leadsto\Lsh\restriction\Rsh\Uarr\uArr\uarr\xleftarrow\xrightarrow\xLeftarrow\xRightarrow\xleftrightarrow\xLeftrightarrow\xhookleftarrow\xhookrightarrow\xtwoheadleftarrow\xtwoheadrightarrow\xleftharpoonup\xrightharpoonup\xleftharpoondown\xrightharpoondown\xleftrightharpoons\xrightleftharpoons\xtofrom\xmapsto\xlongequal
\implies、\impliedby、\iff 以及 \rArr、\lrArr 等简写名称列在其他符号页面上。
虚线箭头
\dashrightarrow 和 \dashleftarrow 可以使用;在早期版本中,它们会让整个文档停止排版。字符 ⇢ 和 ⇠ 也可以使用。
虚线箭头
A \dashrightarrow B \qquad C \dashleftarrow D相关页面
- 关系符和运算符。
- 标准 LaTeX 之外的箭头来自 amssymb;其符号列表见 CTAN (amsfonts)。
常见问题
\to 和 \rightarrow 有什么区别?
没有区别:两者都得到 →。\to 更适合极限和函数,\rightarrow 适合其他场合。
如何在 LaTeX 中把文字放在箭头上方?
用 \xrightarrow{text},还可以加上可选的 [below] 下方标注:\xrightarrow[\text{below}]{\text{above}}。箭头会随标注变长。
如何在 LaTeX 中输入“推出”?
\implies 得到带逻辑间距的 ⟹,\Rightarrow 得到较短的 ⇒。“当且仅当”用 \iff 或 \Leftrightarrow。
本页的每个示例都在构建网站时由 Scissor LaTeX 排版。 最后更新:2026-11-07