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

Is there a way to put a relation symbol (appropriately oriented) as the arrow in an xymatrix diagram? For example, a lattice of sets with the subset relation symbol pointing from the subset to the superset.

share|improve this question
It is always best to compose a fully compilable MWE that illustrates the problem including the \documentclass and the appropriate packages so that those trying to help don't have to recreate it. – Peter Grill Mar 13 '12 at 16:48
up vote 2 down vote accepted

Here is my solution — I can't do anything better without a MWE.

  A \ar@{}[r]|{\subset} & B\\
  A \ar@{-*{\subset}}[r] & B\\
  A \ar@{-d}[r] & B\\
  A \ar@{-d}[r]-<10pt,0pt> & B

The \newdir command allows to define shorthand.

And the result : enter image description here

Note that you can find some help in the xyguide pages 5 and 6.

share|improve this answer
Very helpful, thankyou! Is there a way to get the orientation of the \subset to match the direction of the arrow? e.g. if the arrow is pointing up rather than right, as in your examples. – Alex Mar 14 '12 at 11:49
@Alex I had a look to xy.tex to see how the original tips are defined, but the code is not really readable. Maybe you can ask your question on the xy mailing list. – Matsaya Mar 14 '12 at 12:55
@Alex A solution is to rotate manually the symbol, put it's not a good solution. I tried to create a new tips from the existing ones as this solution has the orientation done automatically. Unfortunately, I didn't succeed to create a tips that looks like the subset symbol. – Matsaya Mar 14 '12 at 20:26

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.