{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)

3
votes
1answer
141 views

“Dimension too large” error with XY-pic

What's wrong with the following? \documentclass{amsart} \usepackage[all]{xy} \begin{document} \xymatrix{ \text{Long string of text that causes an error during the compilation of this ...
3
votes
1answer
521 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 ...
3
votes
1answer
169 views

\xymatrix undefined

I am trying to use xy package to draw some diagrams. So I use the command \usepackage{xy} and I type a sample as follows: \xymatrix{ A &*+[F]{\sum_{i=n}^m {i^2}} \\ & {\bullet} & D ...
3
votes
1answer
646 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 ...
3
votes
1answer
508 views

Adjust spacing between specific rows with \xymatrix

I have the following diagram: \[ \xymatrix @!=1pc { & Z \ar@{.>}[d]^{\exists!h} \ar@/_1.2pc/[ddl]_{p'} \ar@/^1.2pc/[ddr]^{q'} & \\ & X \times_S Y \ar[dl]_p\ar[dr]^q & \\ X ...
3
votes
1answer
1k views

Beamer overlays and XYpic

Let's suppose we have some really really trivial XY-pic drawing: \xymatrix { A & B \\ C & D } What I want to achieve would be something like: Only B and D are visible on slide 1 On ...
3
votes
2answers
451 views

XYPic Frame with braces does not typeset correctly

I have a picture I am trying to typeset with xypic using pdflatex. As a minimal example there are basically a few boxes with a curly brace under them. I try to do this with the following code: ...
3
votes
1answer
297 views

How do I get the spacing in the redefined label box right?

I use the following code to make xy-pic arrow labels multiline capable: \let\oldlabelbox=\labelbox \def\newlabelbox#1{% \oldlabelbox{\vcenter{\normalbaselines% ...
3
votes
2answers
70 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}, ...
3
votes
1answer
72 views

An unwanted overlapping of arrows with xymatrix

I try to make a commutative diagram like this: with the code $\xymatrix{ Y \ar@{->>}[rd] \ar@{->>}[r] &{Y_1} \ar@{.>}[d]^<<<{\cong}_<<<{\exists} ...
3
votes
1answer
201 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 ...
3
votes
1answer
104 views

Reference for a commutative diagram

How to give a number (for later reference) to the following diagram? \begin{displaymath} \xymatrix@!C{ \{ \prod_{g \in A} \OO_g \} \ar@{->>}[r] & { \{\prod_{g \in A^{\prime}} \OO_g \} }\\ ...
3
votes
1answer
161 views

labeling diagrams with matrices

I it possible to label an arrow with a matrix in Xy-pic? In the following diagram I want to label the arrows with 2x2 matrices to represent linear maps between vector spaces, in the place of a,b and ...
3
votes
1answer
148 views

Change the font style inside *modifier{text} in xypic

I'm trying to create a tree structure using "xypic" package. Everything is ok except that when I write something inside *modifier{text} the default font used for labeling in xypic is not used. ...
3
votes
1answer
56 views

XyPic does not accept targets

I am trying to typeset an arrow between the middle points of two other arrows. I thought the more canonical choice would have been to give a target to the labels of the two arrows and then draw an ...
3
votes
1answer
1k views

Xypic problem: can't find file

I'm trying run pdflatex, but I get this one very unusual error. I've downloaded xypic from CTAN, and it still seems that pdflatex is unable to find some documents that are supposedly related to that ...
3
votes
0answers
35 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
0answers
36 views

How to transpose or mirror xymatrix?

I know that it is possible to rotate \xymatrix (using e.g. \xymatrix@d) but how to transpose or mirror it?
3
votes
0answers
72 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] & ...
3
votes
0answers
64 views

How to increase perpendicular distance of labels from arrow in XYPic? [duplicate]

How do I move a label further away from an arrow in XYPic? Example \xymatrix{ g_0 + \beta_1)(n + n') \ar[r]_-{(g_0 + \beta_1)^+(n,n')} & (g_0 + \beta_1)(n) + (g_0 + \beta_1)(n') } I want to ...
2
votes
3answers
1k views

Adding arrows to each term of an equation

\documentclass{beamer} \usepackage[all]{xy} \begin{document} \section{Introduction} \xymatrix{ &*+{\sum_{i=n}^m {i^2}} &*+{+}&*+{p} \\ & {\bullet} & D \ar[ul] && f \ar[ul] ...
2
votes
1answer
199 views

Need to produce “real” double quotes in LaTeX and XY-pic in Emacs

I am using Emacs as a text editor on Xubuntu. I am using the XY-pic package to make some commutative diagrams, and I need the following command (which is inside figure, center, and xy begin tags): ...
2
votes
2answers
297 views

Is there a good xypic editor?

I'm using LyX for my LaTeX editing, and I use LyX's matrix editing capabilities to edit xypic matrices. While this is much more comfortable than editing raw xypic LaTeX code, it can get quite messy ...
2
votes
1answer
168 views

Writing down an equation involving some xymatrices in xy-pic

I'm trying to do something that TikZ is probably more than capable of doing, but I am lazy so I'm trying to do it in xy-pic instead. What I am trying to do is write down an equation involving ...
2
votes
1answer
128 views

How do I discover the shorthands defined by babel in my language?

The reason I want to do it is that I want to set brazilian language in babel and I want to use xy-pic package, but I have to use it inside an environment in which the shorthands are off.
2
votes
1answer
379 views

moving label of arrow

How can I shift the F_{2}(f') label so that it isn't touching the arrow? \usepackage[all]{xy} \SelectTips{xy}{12} \[ \xymatrix{ A \ar@{<->}[rrrr]^{F_{1}(h' \circ g')} ...
2
votes
2answers
331 views

Multiple holes in arrows in xypic

I am trying to make a diagram where two arrows will be crossing one arrow. I have the current code for putting in one hole: \Omega \ar[r]|(.35)\hole^-{d} \ar[d]^-{e_*} which seems to work just ...
2
votes
1answer
42 views

warning on xypic

I get several warning about xypic, I have no idea what to do about them. Can anyone help me? I can provide more info, if you ask me. The warnings I get are as follows:
2
votes
1answer
102 views

Change the orientation of Arrow of xtwocell in the 2cell option for xy

I'm trying to make a diagram similar to this (from wikipedia) Except that I want to the double arrow $\eta$ two be pointing from node $B$ toward the middle of arrow $X$ (it is, after all, a natural ...
2
votes
1answer
97 views

Is it possible to add some vertical space like ~~~?

I sometimes uses ~ to adjust space between symbols. Now I want to add some vertical space which play similar role, how do I do that? (It's not about controlling space between lines, but just add some ...
2
votes
1answer
270 views

too much spacing in xymatrix

I am using xypic package and I wrote the following xymatrix \[ \xymatrix{ x \ar@(ur,dr)[]|{a} \\ | \\ y \ar@(ur,dr)[]|{b}\\ | \\ z ...
2
votes
1answer
262 views

Dashed /^/ in xy package

I am trying to make the following arc between two objects using the /^/ but I need it to be dashed my matrix is as follow: \xymatrix{ &0\ar@{-->}[r]&0'\ar@{-->}[l]\\ ...
2
votes
2answers
109 views

xypic: 2cell diagram label position issue

This code \xymatrix{z & y\ltwocell_{f}^{g}{^{\alpha}} & x\ltwocell_{f'}^{g'}{^{\beta}}} =\xymatrix{z & & y\lltwocell_{f\cdot f'}^{g\cdot g'}{^{\alpha\circ\beta}}} produced this ...
2
votes
1answer
135 views

How to make a commutative diagram smooth?

I have drawn the following diagram: using the following command: \documentclass[11pt,twoside,a4paper]{book} \usepackage[margin=1.5in]{geometry} \usepackage{xypic} \begin{document} \xymatrix{ ...
2
votes
1answer
172 views

xymatrix: How to change the position of a vertex?

I have the following simple diagram: \[ \xymatrix{ A \ar[r]\ar[d] & B\ar[d] \\ C \ar[r] & Dxxx = Exxx = Fxxx} \] which will be typeset so that B will have a down arrow, possibly ...
2
votes
1answer
46 views

xypic: is it possible to change the slope of an arrow?

In this diagram, I want arrows from \Delta X~ in the middle of the 2nd row goes to both N\Delta X and (Delta X)~/D\Delta X, how do I do that? (making columns very narrow and draw very fine lattices ...
2
votes
1answer
263 views

Use special objects of xy-pic with beamer

When I try to use the general format for labels (cf. xyguide, §2.2) together with beamer overlays, the part that should show up later isn't formatted properly. I guess, beamer doesn't convert the * ...
2
votes
1answer
203 views

Distributive arrows in xypic

I am trying to draw "distributive arrows" in xypic, but I can't make it look nice. Here is a MWE: \xymatrix{a\ar @/^1.4pc/[r] \ar @/^1.4pc/[rrr] &( b &+& c)} Does anyone know how to ...
2
votes
1answer
99 views

How can I align entries in the column?

I have drawn the following picture in xypic and I would like to align in the right column the Hom term in the first row as well as direct product guys in the 2nd and 3rd rows exactly together. How ...
2
votes
1answer
383 views

How to decrease 1cm arrow length in commutative diagram on the base?

\documentclass{article} \usepackage{xypic} \begin{document} $\xymatrix{ & Y\ar[ldd]_{\psi_{i}}\ar[rdd]^{\psi_{j}}\ar[d]^{h} & \\ & S \ar[ld]^{\pi_{i}} \ar[rd]_{\pi_{j}} & \\ R_{i} ...
2
votes
1answer
419 views

Circling/Framing part of one entry in xymatrix

I want to circle ONLY part of an entry in xymatrix, I have skimmed through several references for xypic but only able to find how I can frame the whole entry (e.g. the one in first and third row in ...
2
votes
1answer
214 views

How can I make an arrow returning to same entry in xymatrix?

I'm trying to make a diagram with arrows returning to the same entry using xymatrix. The following example works perfectly fine. \[ \xymatrix{ V \ar@(dl,ul)[]^{h'} \ar@<0.5ex>[r]^{i} & W ...
2
votes
1answer
274 views

Utterly stumped by xypic \newdir — just combining examples from xyguide!

I want to use arrows whose heads and/or tails can be almost-triangles: roughly, something like A ———▷ B or A ▷——> B.  For the heads, there’s a good solution in xyguide: ...
2
votes
1answer
47 views

xymatrix using lyx

I'm trying to draw in LyX, using XYmatrix. I'm using it with the Ctrl+shift+M command, and then using the \xymatrix to start "drawing" what i want. I'm having a problem doint a "hookrightarrow" ...
2
votes
0answers
42 views

Arrow joining beginning and end of line with xy-pic

I'm trying to draw a sequence of arrows with xy-pic that extends over two lines, and so I need to draw an arrow joining the end of the first line with the beginning of the second line. Here's the code ...
2
votes
0answers
161 views

xy-pic or tikz : which one should I learn? [closed]

I want to learn how to use tikz more in depth. But I wonder wether I should also learn how to use xy-pic, because it seems, at first glance, that xy-pic can do much of what tikz does when it comes to ...
2
votes
0answers
62 views

Arrow end points problem

I keep getting these circles in my graph and I cannot figure out why. This is the code, is there something wrong with it? Every arrow has a circle at its start and end points and there are also 3 more ...
2
votes
0answers
102 views

xypic: custom arrow shaft(stem)

I've noted that xy-pic have predefined some dir's. The tail and head (tip) are easy to custom (one can learn by xyrefer.pdf), but I find it hard to implement my own shaft types. Because the dash stem ...
2
votes
0answers
148 views

Example of the use of :: in XY-pic [closed]

Could someone please provide an example of the use of ::, using sample code and coordinates and showing step-by step the changed content of p, c, origin, xbase, ybase, and any other pertinent ...
2
votes
0answers
332 views

Nested \xygraph in \xymatrix [closed]

I am nesting an \xygraph in an \xymatrix like so: %\documentclass{article} \documentclass{beamer} \usepackage[utf8]{inputenc} \usepackage[ngerman]{babel} \usepackage{MnSymbol} \usepackage{chemarr} ...