![更改 \xrightarrow[]{} 的箭头](https://linux22.com/image/233487/%E6%9B%B4%E6%94%B9%20%5Cxrightarrow%5B%5D%7B%7D%20%E7%9A%84%E7%AE%AD%E5%A4%B4.png)
我\xrightarrow{}
在文档中的很多地方都使用了。我想将提示更改为看起来像由 生成的提示-latex
。
我正在尝试获取有关宏的类似提示\xrightarrow{}
。
答案1
这chemarrow
包提供了具有此类头部的可扩展箭头,例如
\autorightarrow{above}{below}
amsmath 使用\rightarrow
可扩展的右箭头。您可以轻松使用它\chemarrow
,同时更改固定箭头以保持一致性:
\usepackage{chemarrow}
\let\rightarrow\chemarrow
...
$\xrightarrow{n\rightarrow\infty}$
或者仅修补 amsmath 可扩展箭头命令,保留原始命令\rightarrow
:
\makeatletter
\renewcommand*{\rightarrowfill@}{%
\arrowfill@\relbar\relbar\chemarrow}
\makeatother