TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How I can draw the following diagram with XY-Pic :

enter image description here

Thank you in advance.

share|improve this question
Do you explicitly need to do it with XY-Pic or may be the package tikz-cd may fit your needs? By the way, could you show what is your real problem? What is your actual code? What did you try so far? – Manuel Apr 29 '14 at 17:29
@Manuel, I want to do with Pic-xy, because I'm not familiar with tikz-cd. – Med Apr 29 '14 at 17:37
As you see in Gonzalo's answer, it's quite easy to learn ;) – Manuel Apr 29 '14 at 17:43
up vote 4 down vote accepted

If the powerful and more modern tikz-cd package is an option (the syntax is similar to that of xy):



Z\ar[dashed]{rr}\ar{drrr}\ar{dr} & & X\times_{S} Y\ar{dl}\ar{dr} \\
& X\ar{dr} & & Y\ar{dl} \\
& & S


enter image description here

share|improve this answer
Thank you so much. – Med Apr 29 '14 at 17:49

This is simple



    Z\ar[rd]\ar[rrrd]\ar@{-->}[rr] &   & X\times_S Y\ar[ld]\ar[rd] & \\
      & X\ar[rd] &             & Y\ar[ld]\\
      &   &     S       &

share|improve this answer
Thank you so much. – Med Apr 29 '14 at 17:58

Your Answer


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.