Morphism symbols in LaTeX

Symbol Command
$\to$ \to
$\rightarrow$ \rightarrow
$\mapsto$ \mapsto
$\hookrightarrow$ \hookrightarrow
$\twoheadrightarrow$ \twoheadrightarrow
f:A \to B \\~\\
f:A \rightarrow B \\~\\
f:A \mapsto B \\~\\
f:A \hookrightarrow B \\~\\
f:A \twoheadrightarrow B

\[ f:A \to B \\~\\ f:A \rightarrow B \\~\\ f:A \mapsto B \\~\\ f:A \hookrightarrow B \\~\\ f:A \twoheadrightarrow B \]

LaTeX algebra

LaTeX