[Tex/LaTex] Double head and hook arrow

arrows

It is quite easy to generate an arrow with a double head and a hooked tail using tikz-cd, but I would quite like a way to do this inline. I can't find a specific LaTeX command (I've read through a lot of those 'list of all symbols' lists). Does anybody have any suggestions?

Best Answer

Set a hook arrow, back up and set a standard arrow:

\documentclass{article}
\usepackage{amsmath}

\newcommand{\hookdoubleheadrightarrow}{%
  \hookrightarrow\mathrel{\mspace{-15mu}}\rightarrow
}

\begin{document}

$A \hookdoubleheadrightarrow B_{A \hookdoubleheadrightarrow B}$

\end{document}

enter image description here

Extensible version:

\documentclass{article}
\usepackage{amsmath}

\newcommand{\hookdoubleheadrightarrow}{%
  \hookrightarrow\mathrel{\mspace{-15mu}}\rightarrow
}

\makeatletter
\newcommand{\xhookdoubleheadrightarrow}[2][]{%
  \lhook\joinrel
  \ext@arrow 0359\rightarrowfill@ {#1}{#2}%
  \mathrel{\mspace{-15mu}}\rightarrow
}
\makeatother


\begin{document}

$A \hookdoubleheadrightarrow B_{A \hookdoubleheadrightarrow B}$

$A \xhookdoubleheadrightarrow{aaaaaa} B$

\end{document}

enter image description here

Related Question