[Tex/LaTex] Special Mathematics Arrow for 1-1 and onto Functions

math-mode

I would really like to have an arrow which is a combination of $\hookrightarrow$ and $\twoheadrightarrow$. That is, and arrow with two heads and a hook. If anyone could help me out, it would be appreciated.

Best Answer

One way to do this is to use a \hookrightarrow followed by \to to get another head, and then decrease the space between them:

\newcommand{\bij}{\mathrel{\hookrightarrow\hspace{-1.8ex}\to}}

Thus, $A \bij B looks like this, and you can play with the spacing if you want.

enter image description here