夠寬的右箭頭上的文字

夠寬的右箭頭上的文字

有沒有辦法調整右箭頭的大小,以便它可以調整到其上方文字的寬度?

\documentclass[12pt, a4paper, english]{article}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}
\usepackage{amsmath}
\usepackage{babel}

\begin{document}
\begin{equation}
  \overset{\text{l'Hopital's rule}}{\Longrightarrow}
\end{equation}
\end{document}

上面的程式碼只產生這樣的結果,這是未經調整的。 在此輸入影像描述

答案1

您可以\xRightarrow使用mathtools

\documentclass[12pt, a4paper, english]{article}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}
\usepackage{mathtools}
\usepackage{babel}

\begin{document}
\begin{equation}
   \xRightarrow{\text{l'Hopital's rule}}
\end{equation}
\end{document}

在此輸入影像描述

它的語法如下:\xRightarrow[below]{above}

相關內容