{xy-pic} is a package for typesetting graphs and diagrams using the principle of "logical composition of visual components."

learn more… | top users | synonyms (1)

5
votes
1answer
92 views

xy + overrightarrow = error

M(non-)WE: \documentclass{article} \usepackage[all]{xy} \begin{document} \[ \xymatrix{ \overrightarrow{C} } \] \end{document} produces "ERROR: Illegal parameter number in definition of ...
5
votes
2answers
246 views

How to center xymatrix with respect to logical center?

I have an \xymatrix with 4 rows and 2 columns. I want to center it horizontally. I used \centerline{} but it (of course) just centers the whole box created by \xymatrix. Since my matrix entries are ...
5
votes
1answer
240 views

tikz-cd equivalent to the xy-pic command \ar@{-}

How do I make the diagram X - Y -> Z with tikz-cd? With xy-pic, I would enter \xymatrix{ X \ar@{-}[r] & Y \ar[r] & Z } I tried \begin{tikzcd} X \ar[no head]{r} & Y \ar{r} ...
5
votes
2answers
1k views

stack in xy-pic

I want to draw this: and my xy-pic code is \[ \xy @={(0,0),(10,0),(10,10),(0,10)}, {\ar@{-}^{f_1}|{\dir{>}} s0;s1}, {\ar@{-}^{f_2}|{\dir{>}} s1;s2}, {\ar@{-}^{f_3}|{\dir{>}} s2;s3}, ...
5
votes
1answer
97 views

Bad interaction between babel and xypic?

I'm writing an elaborate in Italian, and I'm using XY-pic to draw some diagrams. Unfortunately it seems that babel is interacting with XY-pic, making it impossible to group elements. Here is a MWE: ...
5
votes
1answer
827 views

Using xypic to draw a Hasse diagram

I'd like to use xypic to draw a Hasse diagram similar to this one: which was generated with the following code: \documentclass{article} \usepackage[all]{xy} \begin{document} \[ \xymatrix{ s_{2,0} ...
5
votes
1answer
197 views

XyPic xymatrix not showing arrow labels with TeX Live-2012

Recently I have upgraded my TeX installation to TeX Live-2012 from TeX Live-2009. Now \xymatrix is misbehaving. The behavior affects both Mac OS X and Ubuntu Linux 12.04 installations. For example, ...
5
votes
3answers
959 views

Is there a way to uncover arrows in an xymatrix?

Is there a way to uncover arrows in an xymatrix? Usually when I have problems with \uncover I use multiple frames, but I would like to be able to do this on a single frame. Here is a sample: I would ...
5
votes
2answers
92 views

Arrow cuts symbol when using the xymatrix command

I would like to know the following: Using xy-pic, how can I avoid that in the diagram below the one arrow's tail cuts the letter I? Is there a command in xy-pic to shorten arrows? Thanks for the ...
5
votes
1answer
118 views

Changing arrow tips in XYpic to Lucida Bright ones

I am producing a document with Lucida Bright fonts and using xypic to produce diagrams. The thing is the Lucida arrow tips are very different (much prettier!) from the ones in xypic, which amounts to ...
5
votes
1answer
210 views

Rotated xymatrix takes up too much space

When I do this... \documentclass{minimal} \usepackage[all]{xy} \begin{document} This text should come directly before the diagram. \[ \xymatrix@ru{ \bullet \ar[rd] \ar[d] \\ \bullet \ar[r] \ar[rd] ...
5
votes
1answer
267 views

a couple of questions on xy-pic

I used xy-pic to typeset the following (long exact sequence) \[ \xymatrix@1{ \cdots \ \ar[r] & \widetilde{H}_n(A) \ar[r]^{i_*} & \widetilde{H}_n(X) \ar[r]^{j_*} & \widetilde{H}_n(X/A) ...
5
votes
2answers
705 views

ways to indicate commutativity and non-commutativity of a diagram when using xymatrix

I used the following code, but \circlearrowleft looks no good in this diagram. I would like to know if there is a better way to indicate the commutativity. Also, is there any way to indicate ...
5
votes
1answer
83 views

Make a \hole larger?

In order to make the arrow go behind 'B' I use \hole. \xymatrix{ A \ar[ddrr]|\hole \\ & B \\ & & C } But what if I have something big instead of 'B', such as \xymatrix{ A ...
5
votes
1answer
225 views

Qcircuit: How to insert a vertical dashed line in a circuit?

I want to insert vertical dashed lines between parts of the following circuit to make some comments: \documentclass{amsart} \usepackage[matrix,frame,arrow]{xy} \input{Qcircuit} \vfuzz2pt % Don't ...
5
votes
1answer
213 views

Heavy arrow tips for xy-pic

Arrows in xy-pic have narrow heads, but I need heavy tips for my graphs. I tried the following arrow definition, but the tip of the arrow enters into the circle of graph node. \documentclass{report} ...
5
votes
1answer
246 views

How to center twocell arrows

I'm using 2cell (as in this previous question of mine: Natural transformation arrow ). I'd like to know how to center not just the twocell double arrow, but arrow with its name too. A picture is ...
5
votes
1answer
318 views

relation symbols as arrows in xymatrix

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 ...
5
votes
1answer
499 views

Problems rotating arrow labels

Xypic offers many placement and formatting options for labels, including rotation. However, I can't get this last feature to work correctly. I have two problems with this: with some inclinations ...
4
votes
2answers
743 views

Better arrowheads in commutative diagrams

The Fourier package gives a different look for the arrowheads, which looks nice to me. I also want to use this arrowhead in the commutative diagrams. I have tried Taylor's diagrams package, xy-matrix, ...
4
votes
2answers
1k views

xy diagram problem: too wide, some arrows too short

I'm trying to write the diagrams of the isomorphism theorems, and I'm having problems. Some objects are too wide, and some arrows too short. Currently I have $$\xymatrix{A\ar[r]^\pi\ar[d]_\rho & ...
4
votes
3answers
578 views

Label an angle in xypic

I am frequently (i.e. about once per quarter, right before the end) set upon by the need to draw a diagram in which various lines are drawn and the angles between them labeled. I've been using xy-pic ...
4
votes
2answers
79 views

xypic: 2-Cell Triangle Identities

I would like to typeset, using xypic, the triangle identities from the definition of adjoint functors in category theory. My problem is with creating the double arrow connecting the hypotenuse and the ...
4
votes
2answers
860 views

Is there a way to make superscripts larger?

Is there a way to make superscripts larger? Here is a minimal working example. \documentclass[12pt]{amsart} \usepackage{amssymb} \usepackage[all]{xy} \begin{document} \xymatrix{A \\ ...
4
votes
2answers
89 views

How can I get a curved arrow to break?

I have the following diagram in xypic: \documentclass{article} \usepackage{amsmath,amsthm} \usepackage[all,cmtip,2cell]{xy} \begin{document} \[\xymatrix{ & K\Omega M \ar[rr] ...
4
votes
2answers
227 views

Accessing dvips features of xypic via pdflatex

I read from the xypic reference manual that extra graphics features are accessible using dvips to compile, even though it still works in most cases with pdflatex. On the PSTricks website are listed ...
4
votes
1answer
541 views

Fatter arrowheads in xy-pic

I am formatting some diagrams using arrows in xy-pic. The "standard" arrow head that xy-pic produces with the command \ar is quite different (much smaller, thinner) than that produced by using the ...
4
votes
1answer
73 views

How can an arrow cross under an entry in xymatrix?

I know how can an arrow cross under another arrow in xymatrix (i.e. using |\hole). But how can it cross under an entry (e.g. wide textual entry). One solution would be to fill the box under the entry ...
4
votes
1answer
102 views

text on arrow for xypic

In the following example, I find that the u and w are vertically too far from the arrow: is there any way so that \documentclass[10pt]{article} \usepackage[all]{xy} \begin{document} \xymatrix{E ...
4
votes
1answer
192 views

Overlapping columns in xymatrix

I have the following diagram: \documentclass{article} \usepackage{xypic,amsmath} \DeclareMathOperator{\coker}{coker} \DeclareMathOperator{\im}{im} \newcommand{\subU}[1]{\left.#1\right|_U} ...
4
votes
2answers
134 views

How to use 2cell in Lyx?

I'd like to write natural transformation arrows in LyX (2.0.5.1) using 2cell (see this answer). The problem is, LyX seems to include the xy package by default and it's only using the [all] option. I ...
4
votes
1answer
460 views

xypic, xymatrix, aligning entries in a column

I am working with the following code: \documentclass[12pt,letterpaper]{article} \usepackage[all]{xy} \begin{document} \[ \xymatrix { & A \ar[dd]_{\pi_A} ...
4
votes
1answer
293 views

Automatically scale an XY-Matrix in the Index of a math symbol

Consider the following code: \documentclass[a4paper,12pt]{article} \usepackage[all,2cell]{xy} \UseAllTwocells \newcommand{\partinto}[3][]{% \xymatrix@C=.85em@1{% *+{#2\,} ...
4
votes
1answer
102 views

How to draw this diagram

Please help me to draw the following diagram: \begin{displaymath} \xymatrix{ H\ar[r]&H .1={}_HI_Q\supset 1.Q&Q\ar[l]_\epsilon^{\cong} \\ &R\ar[u]\ar[r]&R\ar[u] } \end{displaymath} ...
4
votes
1answer
35 views

Unequal spacing of columns in xymatrix

Hello I have the following diagram in \xymatrix \xymatrix@R=2pt{A \ar[r] & B \ar[r] & C & D\\ E \ar[ur] & F \ar[r] & & D} Is there a way to reduce the gap between the ...
4
votes
1answer
879 views

Shorten or extend xypic arrows

In an xypic or xymatrix diagram, is it possible to specify that an arrow should only cover part of the distance it normally would? In other words, for an arrow \xymatrix{ A \ar[r] & B }, or ...
4
votes
1answer
185 views

Nested xy-pic diagrams

Is it possible to include a xy-pic diagram as an entry of another xy-pic diagram? I have a map to a group of homomorphisms and I would like to print the homomorphism image. Is there some way to do ...
4
votes
1answer
243 views

xymatrix: Arrows badly placed when used with large nodes

I find that using xymatrix with large nodes results in awkwardly placed arrows: MWE: \documentclass{book} \usepackage{xypic} \begin{document} \xymatrix{ \textbf{Natural Numbers} \ar@/_/[r] ...
4
votes
1answer
153 views

How can I move the arrow inside the commutative diagram into the centre?

I have the following diagram: \documentclass{article} \usepackage[all]{xy} \begin{document} \xymatrix@R.8pc@C.8pc{ F(Y) \ar[rr]^{E_{Y}} \ar[dd]_{F(f)} && F(Y) \ar[dd]^{F(f)} \\ & ...
4
votes
1answer
518 views

Oversized parentheses around xymatrix

This must have been asked somewhere here before, but I cannot seem to find it. I am using \left( and \right) around an xymatrix, but the parenthesis are far too big; with the following code; ...
4
votes
1answer
120 views

Issue with arXiv LaTeX - xypic diagrams rendering badly

I’m having an odd issue with the arXiv’s LaTeX processing: xypic diagrams that look fine when processed on my own system are rendering badly when processed by the arXiv. My question is: Is this ...
4
votes
1answer
59 views

Using overbrace in xymatrix

My TeX code is not compiling correctly (the overbrace is causing the error). How I can fix my file? Here's what I have: \usepackage{amssymb} \usepackage{mathrsfs} \usepackage{amsmath} ...
4
votes
1answer
328 views

How can I draw this commutative diagram for function composition?

I am working on a project, and need to add a diagram that displays a commutative diagram illustrating basic function composition similar to what is on page 17 in the image attached. I would like to ...
4
votes
1answer
1k views

Label positioning in XY-matrix

As denoted in XY-pic's user guide, "Each label is placed perpendicular to the arrow at the point halfway between the centers of the base and target objects." In order to center the label at the middle ...
4
votes
2answers
354 views

How to shift arrow in diagram

I need to shift this diagonal arrow (in bottom box) down. \xymatrix@R.8pc@C.8pc{ \bullet \ar[rrr]^{i'^{!}} \ar[ddd]_{Th(\Omega_{f'})} &&& \bullet \ar[ddd]^{Th(\Omega_{f})} \\ ...
4
votes
1answer
605 views

xypic produces error when I try to use any arrow style

I have a very annoying issue with xypic. I'm trying to typeset an exact sequence, one of which morphisms is the inclusion, so I'd like to use the inclusion arrow ↪. The problem is that when I use ANY ...
4
votes
1answer
394 views

TikZ arrowheads to match xy-pic?

I’d like to make arrow tips in TikZ that match with xy-pic’s standard arrowheads. The methods from this similar question look appropriate, but I thought I’d check first: has anyone else already ...
4
votes
1answer
663 views

Equation Labeling and xypic

Suppose I have the following TeX code for a diagram using xymatrix: \begin{align}\label{diagram} \xymatrix{ C\ar[r] & D &\\ B\ar[u] & & \\ A\ar[u] & &} \end{align} This ...
4
votes
1answer
334 views

Problem using twocell in xypic

I tried using the \rtwocell command to produce twocells in a commutative diagram and my LaTeX installation (TeX Live on a Mac) does not recognize it. It seems to recognize everything else I have ...
4
votes
1answer
381 views

xypic: curved invisible arrows

I want to create two invisible arrows so I can link between them, the problem is that when I try the make these arrows curved they become no longer invisible? Here is a sample document: ...