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

7
votes
0answers
491 views

TikZ exercises [closed]

I am not sure that this is a right fit for SE, but I will risk it. I was recently acquainting myself with the xy-pic package, and I found the included exercises very helpful in getting up to speed ...
5
votes
1answer
234 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} ...
3
votes
1answer
177 views

I want to create graph with nodes as in the image:

I wrote an example graph with \xymatrix - that's OK. I added circles with &*+[Fo], that's OK too. I added table inside first circle with \begin{tabular} - it is OK. But table needs to be rotated ...
2
votes
1answer
149 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.
4
votes
1answer
176 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 ...
6
votes
2answers
249 views

Help with diagram

I do not have very much experience with the xy-pic package and I always try to figure out things by copying and pasting codes. I am stuck in here: I would like to get an arrow from A to C with an ...
5
votes
1answer
112 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 ...
4
votes
1answer
232 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] ...
5
votes
1answer
196 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} ...
9
votes
1answer
183 views

Using xy-pic, how do you label an arrow with a curly brace that spans the length of the arrow, and can be offset arbitrary distances?

I'm trying to figure out how to label the arrows with curly braces that span the length of the arrow, and to make it all very pretty. More specifically, I'm trying to make ...
6
votes
2answers
249 views

Wavy arrows in xy-pic

What method should I use, to draw beautiful wavy arrows. So far I tried the following. I use xy-pic package, there I use @{~>} definition for the arrow. The code I've composed is like this: ...
7
votes
1answer
560 views

Bold arrows in xymatrix

How can I produce a bold arrow in the package \xymatrix? I've tried with \ar@{\bf{->}}[r] and similar alternatives without success.
0
votes
1answer
259 views

What files should I prepare to make commutative diagrams in TeX Writer? [duplicate]

I am using an iPad app TeX Writer and would like to draw a commutative diagram. I can use amscd in the app but it is not sufficient for the diagrams I want to draw. To include new package, I need to ...
1
vote
0answers
237 views

Lyx Draw a curve from point A to B using xy-pic [closed]

How can I draw a curve using an xy-pic picture to draw a curve from point A to B?
6
votes
2answers
326 views

Set Braces in XYPic, XYMatrix

I want to add three braces to a xymatrix in a xypic environment. Here's how I got so far. \documentclass[11pt]{article} % use larger type; default would be 10pt \usepackage[all]{xy} \begin{document} ...
3
votes
1answer
175 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 ...
6
votes
1answer
353 views

How to show the “commutate” symbol inside a diagram in LyX?

I am using this code $$ \xymatrix{ z\in\ar@{|->}[d] & \mathbb{C}\ar[r]^{f}\ar[d] & \overline{\mathbb{C}}\\ {}[z]\in & \mathbb{C}/L\ar[ru]_{\hat{f}} } $$ to generate this ...
0
votes
1answer
197 views

Resizing the vertices inside xymatrix

Does anyone know how to resize the names of entries which appear as vertices inside \xymatrix? I have huge commuative cubes with more then 40 inner or outer vertices and when these names become too ...
2
votes
1answer
441 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 ...
5
votes
1answer
203 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] ...
1
vote
1answer
184 views

Problem with \xymatrix in svjour3 [closed]

I attempt to compile the following \newcommand{\arb}[1]{\ar@<-.15ex>[#1]\ar@<.15ex>[#1]\ar@<-.075ex>[#1]\ar@<.075ex>[#1]\ar[#1]} \[\xymatrix{ & ...
8
votes
5answers
569 views

Convenient way of typesetting boxes with multiple input and output wires?

I want to typeset diagrams describing functions which take multiple inputs and return multiple outputs. These should look like boxes with labels in them like "f" or "g" and with some input wires ...
1
vote
1answer
147 views

Error messages with diagonal arrows [closed]

When I copy and paste the corrected code for example in this question, I get the following error message: xymatrix 2x2 ! Missing number, treated as zero. to be read again \/ ...
11
votes
1answer
205 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
344 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
973 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
434 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
159 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
560 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
317 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
348 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
676 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
296 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
284 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
50 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
247 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
379 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
122 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
249 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
347 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
269 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
315 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
539 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
425 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
235 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
150 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)} \\ & ...