Text FormattingStack Symbol on Arrow

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
Rupert
Posts: 1
Joined: Thu Mar 01, 2012 11:17 am

Stack Symbol on Arrow

Post by Rupert »

I'm typing up a translation of a French mathematical book and there's this bit where I have to do a \sim on top of a \longrightarrow. I was wondering if anyone could tell me how this is done.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Stack Symbol on Arrow

Post by localghost »

Include the amsmath package into the preamble of your document and use the \xrightarrow command.

Code: Select all

\documentclass[11pt]{article}
\usepackage[T1]{fontenc}
\usepackage{mathtools}   % loads »amsmath«

\begin{document}
  $\xrightarrow{\sim}$
\end{document}
For details refer to the package manual.


Best regards and welcome to the board
Thorsten
Post Reply