![下標等於符號](https://rvso.com/image/305903/%E4%B8%8B%E6%A8%99%E7%AD%89%E6%96%BC%E7%AC%A6%E8%99%9F.png)
有沒有一種非瘋狂的方法可以實現一個簡單的 = 符號,並在其下面寫上條件/範圍?特別是(expr1) = (x->a) (expr2)
,等號下的 哪裡(x->a)
寫得像極限一樣?
答案1
像這樣?
\documentclass{article}
\newcommand\underrel[2]{\mathrel{\mathop{#2}\limits_{#1}}}
\begin{document}
$x \underrel{x\to a}{=} a$
\end{document}
您還可以新增一個可選參數,使您能夠讓底邊內容向左和向右出血。
\documentclass{article}
\usepackage{mathtools}
\newcommand\underrel[3][]{\mathrel{\mathop{#3}\limits_{%
\ifx c#1\relax\mathclap{#2}\else#2\fi}}}
\begin{document}
$
x \underrel{x\to a}{=} a
\quad
x \underrel[c]{x\to a}{=} a
$
\end{document}