1

How to do something like this

enter image description here

using xymatrix?

1
  • 2
    what have you tried, please? there's a very similar example on p.43 of the manual xyrefer.pdf (texdoc xyrefer). that might help. Jan 26, 2017 at 14:27

2 Answers 2

2

with tikz-cd (its syntax is to my opinion less cryptic as at xymatrix):

\documentclass[margin=3mm]{standalone}
\usepackage{tikz-cd}

\begin{document}
\begin{tikzcd}
A \ar[r, bend  left=60, ""{name=U}]
  \ar[r, bend right=60, ""{name=D,below}]
        & B \ar[Rightarrow, from=U, to=D, "\varphi" description]
\end{tikzcd}
\end{document}

enter image description here

for details see tikz-cd documentation, page 8 and 11.

0
1

I adding, now, my proposal with xymatrix package.

enter image description here

\documentclass[a4paper,12pt]{standalone}
\usepackage{amsmath,amssymb}
\usepackage[all]{xy}
\begin{document}
\xymatrix@C=1pc@R=1.5pc{ 
X 
\ar@/^1.5pc/[rr]_{\quad}^{f}="1" 
\ar@/_1.5pc/[rr]_{g}="2" 
&& Y 
\ar@{}"1";"2"|(0.135){\,}="7" 
\ar@{}"1";"2"|(0.875){\,}="8" 
\ar@{=>}|-{\varphi}"7" ;"8"}
\end{document}
2
  • 1
    My problem was the vertical arrow in the middle LOL. Thanks anyway =)
    – Dion
    Jan 26, 2017 at 22:05
  • 1
    I ended up using tikz ^.^
    – Dion
    Jan 26, 2017 at 22:05

You must log in to answer this question.

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