{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
2answers
115 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
223 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
425 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
78 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
665 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
174 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
829 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
61 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
107 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
183 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
221 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
586 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
76 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
175 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
174 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
217 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
469 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
680 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
539 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
755 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
3answers
2k views

Subset arrows in xymatrix

Is it possible to make an arrow in xymatrix that is a subset symbol?
4
votes
2answers
74 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
220 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
508 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
52 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
62 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
163 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
111 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
399 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
251 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
651 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
164 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
220 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
147 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
449 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
46 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
2answers
283 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
551 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
374 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
574 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
275 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
341 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: ...
4
votes
1answer
411 views

Can you have curving, empty, broken arrows in xymatrix?

In \xymatrix, the command \ar@{}[dr] |{\text{lab}} typesets an empty arrow, broken by some text. Similarly, the command \ar@/^10pt/ @{->}[ur] |{\text{lab}} typesets a curving arrow, broken by some ...
4
votes
1answer
95 views

Custom commands for `xymatrix` paths

I would like to define a custom command to replace \ar@{->}`r[d]`[l]`[llld]_-{\delta}`[d][lld] in this bit of code: \[\xymatrix{ \cdots\ar@{->}[r] & H_n(X)\ar@{->}[r] & ...
4
votes
1answer
274 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 ...
4
votes
0answers
59 views

arrow crossings of curves in xy-pic

I want a diagram like What I can do is \[ \xy (-10,0)*+{ml}="ml"; (10,0)*+{mr}="mr"; (-5,13)*+{t}="t"; (10,-10)*+{b}="b"; ...
3
votes
2answers
352 views

xypic: How to typeset the dashed line in this diagram?

I use xypics for diagrams, but I don't know how to put the dashed line in the diagram below. Search didn't find much. Can anybody here help?
3
votes
2answers
100 views

Why is \txt element of \xymatrix moved downwards?

I wonder why is the textual "A" in \xymatrix{A \ar[r] & \txt{A}} moved downwards. All I want is to have textual elements in xymatrix with possibility of line breaks inside the element. I thought ...
3
votes
1answer
118 views

Errors when trying to draw a commutative diagram using an xymatrix

Why is the following code not compiling? \[ \xymatrix{ A \ar[rd]^{g \circ f} \ar[r]^f & B \ar[d]^g\\ C} \] I'm trying to get a commutative diagram with 3 objects (A, B and C) ...