Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I would like to know what is the best way to do an inclusion arrow, using xy or tikz. I know that there is a command for an arrow, like \to, for inclusions, but this is not expansible.

What do you use?

share|improve this question
add comment

1 Answer

up vote 9 down vote accepted

The mathtools package gives you extansible hook-arrows which some authors use for inclusions:

\documentclass{article}
\usepackage{mathtools}

\begin{document}

\[
A\xhookrightarrow{} B\qquad A\xhookrightarrow{f\circ g} B\qquad
A \xhookrightarrow[(f\circ g)\circ h]{} B
\]

\end{document}

enter image description here

You can also use \xrightarrow from amsmath if you want an extensible "standard" arrow with super/subscripts:

\documentclass{article}
\usepackage{amsmath}

\begin{document}

\[
A\rightarrow{} B\qquad A\xrightarrow{f\circ g} B\qquad
A \xrightarrow[(f\circ g)\circ h]{} B
\]

\end{document}

enter image description here

share|improve this answer
    
Thanks so much. –  Sigur Aug 8 '12 at 1:53
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.