1

How would I add labels to the following xypic?

\xymatrix{
  1 \ar@<-.5ex>[r] \ar@<.5ex>[r] & 2.
}

I would like to add a \alpha_1 above the top arrow and a \alpha_2 below the bottom arrow.

1
  • 3
    \ar@<-.5ex>[r]_{\alpha_2} \ar@<.5ex>[r]^{\alpha_1}
    – Sigur
    Jun 7, 2014 at 0:29

1 Answer 1

1
% arara: pdflatex 

\documentclass{article}
\usepackage[%
    ,all
    %,cmtip
    ]{xypic}
\usepackage{tikz-cd}

\begin{document}
\[
\xymatrix{%
\ar@<-.5ex>[r]_{\alpha_2} \ar@<.5ex>[r]^{\alpha_1} & 2
}
\]
\[
\begin{tikzcd}
\arrow[shift left=.7ex]{r}{\alpha_1} \arrow[shift right=.7ex]{r}[below]{\alpha_2}& 2
\end{tikzcd}
\]
\end{document}

enter image description here

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .