下標等於符號

下標等於符號

有沒有一種非瘋狂的方法可以實現一個簡單的 = 符號,並在其下面寫上條件/範圍?特別是(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}

在此輸入影像描述

相關內容