2

Is there a way to resize the rightarrow so that it can adjust to the width of the text over it?

\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}

The code above only generates result like this, which is non-adjusted. enter image description here

0

1 Answer 1

2

You can use \xRightarrow from 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}

enter image description here

It has the syntax: \xRightarrow[below]{above}

Not the answer you're looking for? Browse other questions tagged .