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 '14 at 0:29
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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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