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

11
votes
1answer
210 views

Using etoolbox to automatically generate input for \xymatrix

I'd like to make a command \exactseq such that, for example, \exactseq{A,f,B,g,C} corresponds to \xymatrix{A \ar[r]^{f} & B \ar[r]^{g} & C} and such that this works for inputs of ...
2
votes
1answer
403 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 * ...
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
1answer
478 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} ...
2
votes
0answers
161 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 ...
3
votes
2answers
630 views

Changing length of an arrows from a vertex to itself

I'm working with LyX. I would like to change the length of an arrow from a vertex to itself. I would like to make the arrow stretch longer up before returning down to the encircled vertex. The code I ...
4
votes
2answers
381 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})} \\ ...
1
vote
1answer
1k views

Commutative diagram with curved arrows, colour, and changing the style of arrows

I am using xy matrix and I would to curve an arrow over other arrows in a diagram, at the same time as setting some of these curved arrows to equal and changing their colour. This is what I have so ...
6
votes
1answer
383 views

Matrices as labels in xymatrix

How can I use a matrix as label in the xymatrix environment? I tried to nest matrices (naively) but it seems to be rather complicated. \xymatrix{ A \ar[r]^{\xymatrix{f \\ g}} & B }
1
vote
1answer
1k views

“Preamble” menu item does not appear in LyX

I'm trying to use xy-pic in LyX to create diagrams and using this tutorial. It says on page 3 to go Layout->Document->Preamble to enable the xy-pic package. However, there is no "Layout" menu on my ...
3
votes
1answer
821 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 ...
6
votes
1answer
319 views

How does one typeset a pretty, squiggly arrow in xymatrix

I am LaTeX-ing some diagrams in rewriting theory where the rules are modulo a set of equations. Canonically, a ~-like symbol is used to denote equivalence. I have been using \ar@{~}. Here is an ...
1
vote
2answers
318 views

Is it possible to use the verbatim environment in an XY-pic node?

Is it possible to use the verbatim environment (i.e. \begin{verbatim}...\end{verbatim}) in an XY-pic node? If so, please could you provide a MWE (Minimal Working Example)? Update for those who want ...
0
votes
0answers
51 views

Cannot draw commutative diagram [duplicate]

Possible Duplicate: Cannot draw diagram My code is: \xymatrix{& C \ar@/_/[ld]_f \ar[d]_{(f,g)} \ar@/^/[rd]^g\\ & A\times B \ar[ld]_p \ar[rd]^q\\ A && B} ...
6
votes
1answer
260 views

Cannot draw diagram

I'm trying to draw a diagram but I get the following error message: ! Xy-pic error: in entry "1,1": No [ld] (is "2,0") from here. The code is: \xymatrix{A\times B \ar[ld]_p \ar[rd]_q\\ ...
2
votes
0answers
409 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} ...
3
votes
1answer
129 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) ...
0
votes
0answers
82 views

XY-pic not sufficiently expressive to draw a simple linked list (data structure)? [duplicate]

Possible Duplicate: How should I draw a singly/double linked list? I am using xypic to draw a linked list. It consists essentially a sequence of chained 2-cell boxes. The problem is how to ...
9
votes
2answers
1k views

Can't draw a commutative diagram

I'm trying to draw a commutative diagram using xymatrix: $\xymatrix{ S \ar@[ld]^{\pi_{i}} \ar@[rd]^{\pi_{j}}\\ R_{i} \ar[r]_{\mu_{ji}} & R_{j} }$ without any luck. Any idea? EDIT: I'm trying ...
5
votes
1answer
284 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) ...
1
vote
1answer
390 views

How to make self-refering arrow with xydigram in a box

I'm trying to make a nice state diagram with some arrows I cannot find a way to make the arrows pointing to the same state: in my case, I would like a self-refering arrow to altcache I'm not fixed ...
4
votes
1answer
308 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
347 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 ...
2
votes
1answer
630 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 ...
3
votes
1answer
482 views

Curved arrow in xymatrix going over text

In some notes I took in a lecture, where I was using xymatrix to do the commutative diagrams, I found that a curved arrow beneath the diagram actually crossed over some text. (Ideally, the text should ...
5
votes
1answer
263 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 ...
4
votes
1answer
156 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)} \\ & ...
3
votes
1answer
623 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')} ...
6
votes
1answer
555 views

Short diagonal arrows inside commutative diagram

I need to use the xy maths package (because I need to make it into a PNG file for Wordpress and mathurl.com accepts the xy template) to make a commutative diagram in which there are diagonal 4 shorter ...
0
votes
1answer
104 views

XY-Pic: Make fractions appear as in displayed math

When writing diagrams with XY-Pic, fractions appear as if they were math enclosed in $$. Example: \documentclass{minimal} \usepackage{xy} \begin{document} \begin{xy} (0,0)*{\frac{d_1}{d_2}}; ...
2
votes
1answer
190 views

Larger arrows in xy

I'm trying to make a poster, and have managed to enlarge math symbols in XY for my diagrams, but the arrows are too thin and unless you're right up against the poster, the arrow heads are almost ...
2
votes
1answer
228 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 ...
1
vote
1answer
314 views

xypic: how to create an arrow between two arrows that do not share a common target and/or source

I've created the following diagram by using invisible arrows, I wonder if there is another solution without using them. \documentclass{article} \usepackage[all]{xy} \newdir{:=}{{}} %creates an empty ...
4
votes
1answer
399 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: ...
5
votes
1answer
344 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 ...
3
votes
2answers
364 views

How to join arrows within xymatrix?

I use xymatrix (\usepackage[all]{xy}) in order to create the following picture: \[ \xymatrix{A \ar@{-}[d] & B \\ \ar[r] & C} \] Is there any possibility to join the lines?
3
votes
2answers
498 views

xypic: Text inside square

I have a very basic square: \xymatrix{ A \ar[r] \ar[d] & B \ar[d] \\ C \ar[r] & D } What is the easiest way to place the text "hi" in the center of the square?
2
votes
1answer
152 views

How does one use math operators in xy-pic?

I am trying to format some large commutative diagrams (using the \xymatrix command) that involve colimits, and I would like to have the indexing information for the colimits appear underneath the word ...
1
vote
1answer
474 views

Changing color of \dir in xypic

I'm trying to use \dir to draw custom frames in an XYpic drawing, but have been unable to figure out how to change the color of the line drawn by each command. For instance, to draw a triangle frame, ...
5
votes
2answers
760 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 ...
4
votes
1answer
621 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
402 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 ...
3
votes
2answers
334 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 ...
8
votes
1answer
545 views

Natural transformation arrow

I'm trying to do the following with xymatrix: This is a diagram I drew sometime ago... But now I don't have the source and I can't remember how I did it, nor can I find an easy, simple way to do ...
4
votes
1answer
713 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 ...
5
votes
3answers
1k 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 ...
4
votes
2answers
906 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 \\ ...
5
votes
1answer
513 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 ...
8
votes
1answer
444 views

How to redraw a previous arrow?

I'm trying to write a macro \mappingto which, basically, called after an arrow has been drawn, should add another one below clarifying what elements are mapped to. e.g. in an easy situation, I'd like ...
0
votes
1answer
781 views

Changing the Label Font Size for xypic Commutative Diagrams

I'm using xymatrix in the xypic package to draw commutative diagrams and I would like for the math in the arrow labels to use the same font size as the math in the rest of the document. Is there an ...