1

How to do something like this

enter image description here

using xymatrix?

  • 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. – barbara beeton Jan 26 '17 at 14:27
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.

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}
  • 1
    My problem was the vertical arrow in the middle LOL. Thanks anyway =) – Dion Jan 26 '17 at 22:05
  • 1
    I ended up using tikz ^.^ – Dion Jan 26 '17 at 22:05

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.