Questions tagged [xymatrix]

Part of the XY-pic bundle providing macros for drawing commutative diagrams.

Filter by
Sorted by
Tagged with
3
votes
1answer
37 views

Shift to the right or left bend arrow in xymatrix package

We suppose that we have a code build with xy package. For example this or another MWE: \documentclass[a4paper,12pt]{article} \usepackage[all]{xy} \begin{document} \xymatrix{ \Omega \ar@{->}[r] \ar@...
2
votes
2answers
53 views

Changing starting place for arrow in XY picture

This script \documentclass{article} \usepackage[all]{xy} \begin{document} \begin{equation} \xymatrix @R=0.3pc @C=0.3pc{ & N_0\oplus G_1 & N_1\oplus G_2 \ar@/_1.5pc/[l]_u } \end{...
3
votes
2answers
36 views

Labels closer to the arrows with xy package

Few hours ago I have added my answer for this question How to make a math diagram on LaTex? \documentclass[12pt]{standalone} \usepackage[all,cmtip]{xy} \usepackage[bb = boondox]{mathalfa} \begin{...
2
votes
3answers
168 views

How do I make a commutative diagram with LaTeX? [duplicate]

How do I make a diagram like this? Thanks in advance
2
votes
1answer
52 views

Two line entry in xymatrix

I would like to create a two-lined entry in my xymatrix. In the attached picture, I want to split the direct sum into two lines. I tried array but this didn't work. Thanks !
2
votes
1answer
26 views

TeX4ht: Strange behavior when I include `\xymatrix` in a macro

See the following code: \documentclass{amsart} \usepackage[matrix,arrow,curve,cmtip]{xy} \begin{document} \newcommand\test{ \xymatrix{{a} \ar^-{b}[r] & {c} \ar@<0.7ex>^-{d}[r]\ar@<-0....
3
votes
2answers
73 views

In XY-pic, two parallel arrows passing under a shape are not parallel when they are separated by distance

I want to draw a commutative diagram with xy-pic package similar to the figure shown below. The two arrows from C to D and vice versa should pass under the rectangle ABEF, be separated by a distance, ...
4
votes
2answers
48 views

xypic bounding box

I am using xymatrix for a markov chain diagram. It looks awesome, but the bounding box is not correctly computed, and therefore, it overlaps with other text. This is special bad as I am also using it ...
1
vote
1answer
78 views

crossed arrows in \xymatrix

I would like to strike out arrows in \xymatrix. Here is what I've done so far: \documentclass{article} \usepackage[all,cmtip]{xy} \usepackage{amsmath} \begin{document} \xymatrix{ ABCDE\ar@{<->} ...
2
votes
1answer
42 views

Circling a collection of objects in a tree using xymatrix

This code \documentclass{amsart} \usepackage[all]{xy} \begin{document} \[ \xymatrix@-0.75pc{ \overset{1}{\bullet}& & \overset{2}{\bullet}& & \overset{3}{\bullet}& &\...
3
votes
1answer
36 views

Error in right diagonal dots in xymatrix

Compiling the following tex lines \documentclass{amsart} \usepackage[all]{xy} \def\rddots#1{\cdot^{\cdot^{\cdot^{#1}}}} \begin{document} \[ \xymatrix@-1.75pc{ \overset{}{\bullet} & & \...
2
votes
1answer
44 views

Default spacing rows/columns in xymatrix

I'm writing up some category theory notes and I prefer (generally) to have 20mm spaces between the entries of my diagrams, so every time I initiate a new matrix I end up typing \xymatrixrowsep{20mm}\...
1
vote
1answer
51 views

rescaling xymatrix diagram is not sufficient to resize

Hi I have the begining of the following diagram but it doesn't work \documentclass{article} \usepackage{amsmath} \usepackage{xcolor} \usepackage[all,cmtip,color]{xy} \begin{document} \[ \resizebox{\...
3
votes
2answers
140 views

Natural transformation commutative square

How can I create this diagram with xymatrix? The result of my try is \[ \raise 23pt \vbox{ \xymatrixcolsep{2.5pc} \xymatrixrowsep{2.4pc} \xymatrix{ A'\ar[d]_{u'}\ar[r]^{v} \ar@{-->}[dr]_{\...
2
votes
1answer
71 views

Diagonal arrows consisting of smaller arrows in xymatrix package

I sometimes have to write diagrams where I write a map as composition of finitely many others. I then want to typeset things like A_1->A_2->...->A_n. Right now, I use the following code to do that \...
1
vote
2answers
52 views

resizing width of a commutative diagram

I have too large diagram and I want to resize the box width, but I keep on having a compilation error missing } inserted } \documentclass{article} \usepackage{amsmath} \usepackage{xcolor} \usepackage[...
4
votes
1answer
158 views

Reshaping a commutative diagram

I have this diagram: \documentclass{article} \usepackage{amsmath} \usepackage{xcolor} \usepackage[all,cmtip,color]{xy} \begin{document} $$ &&\xymatrix{ &&&&&X\times Y\...
0
votes
0answers
34 views

Lyx: xygraph and xymatrix in the same document

I need to write an article concerning knots, so I want to use the knot package in xy Adding \usepackage[knot]{xy} to the preamble works fine, until I also draw diagrams (not knot diagrams) using ...
3
votes
1answer
66 views

reshape a diagram with xymatrix

I am using xymatrix for the following diagram \eq &&\xymatrix{ &X\times Y\times X\times Y&& \\ &X\times X\times Y \ar@{^{(}->}[u]_-{j}\ar[ld]_{q}\ar[rd]&&\\ ...
5
votes
2answers
96 views

Minipage compatible with xy matrix? What may be an alternative fix?

I have a minimal working environment below. It fails to be compiled. Is the minipage compatible with xy matrix? What may be an alternative fix? Thanks for the help! \documentclass[14pt]{article} ...
1
vote
1answer
77 views

`\xymatrix` line without arrowhead and curved

I would like to plot an arrow without head AND curved. I can achieve both goals separately but not on the same arrow: \documentclass{minimal} \usepackage{amsmath} \usepackage[all]{xy} \begin{...
3
votes
1answer
48 views

arrows in xymatrix are not terminating and originated from center

I am trying to make a Cayley graph of $D_{5}$ with the help of xymatrix package. However the arrows are not align to center of objects. Is there a way to do so? $$ \xymatrixrowsep{0.01in} \...
3
votes
2answers
93 views

direction of bent arrow in xy

This MWE \documentclass[margin=3mm]{standalone} \def\Lan{\text{Lan}} \usepackage[all]{xy} \def\sX{\mathbb{X}} \def\sY{\mathbb{Y}} \begin{document} \xymatrix@C=2cm{ & \sX\ar[r]^A\ar[d]_J & \...
4
votes
3answers
150 views

multiline cells and arrow placement in xymatrix

Is there a way to use a multiline environment in a cell of an \xymatrix? I am trying to produce something that looks like this: \[ \left\{ \begin{gathered}\text{text 1}\\ \text{text 2}\\ A=B \end{...
0
votes
2answers
115 views

\vdots between two parallel arrows in \xymatrix

I have the following code \xymatrix{a􏵥􏵍􏵆􏵤􏵂􏵒􏵀􏴿􏴿\rtwocell^f_g{\omit}&b} and the result is two arrows from a to b, I want to put \vdots between the two arrows, exactly in the middle (to ...
1
vote
0answers
70 views

Why XeTeX ignore the colors of \xymatrix?

I use XeTex because I can put there Hebrew at the math mode. Here what I put at xymatrix: \[ \xymatrix{*+[F*:red]++[F*:blue]++[o][F][green]{abcde}\ar[r] & *{a}} \] Here is the result with ...
3
votes
1answer
68 views

xymatrix syntax problem

\begin{displaymath} \xymatrix{ C_1 \ar[d]^b \ar[l]^{1-t} &C_1 \ar[d]^{-b'} \ar[l]^N &C_1 \ar[d]^{b} \\ C_0 \ar[l]^{1-t} &C_0 \ar[l]^{N} &C_0} \end{displaymath} ...
2
votes
2answers
247 views

How can I type a symbol at the center of a square diagram in xymatrix?

In order to speak about a particular square sitting inside a bigger diagram, I'm trying to add a symbol at its center, so that I can refer to it by using the symbol. The problem is that I don't know ...
9
votes
2answers
979 views

Create diagram using xymatrix

I'm trying to reproduce the diagram below using xymatrix package: This is what I've done so far: \documentclass{article} \usepackage[all]{xy} \begin{document} \xymatrix@C=1cm{ % First row ...
2
votes
1answer
220 views

How can I write 3-dimensional diagrams in XYmatrix with parallel arrows?

I'm trying to fix the following diagram that I wrote in XYmatrix. I want to make it a cube or at least a parallelogram, but I don't know how to deal with the different lenghts of the names of the ...
5
votes
3answers
268 views

Vertical space around \vdots in xymatrix

I'm trying to create a diagram using \xymatrix but cannot find a way to get rid of the excess vertical space above \vdots - does anyone have any suggestions? \documentclass[10pt,a4paper,twoside]{...
1
vote
1answer
135 views

Coloring xymatrix arrows in LyX

I'm using LyX and I want to color my \xymatrix arrows (\ar@[blue][dr]). With every LaTeX editor it looks preety easy, but with LyX I'm unable to add packages like that. I'v already tried to add color ...
1
vote
1answer
110 views

Left-aligning multiline \txt nodes in xymatrix

I can write something like this: \documentclass{article} \usepackage{amsmath} \usepackage[all,cmtip]{xy} \begin{document} \[ \xymatrix{ 2 \times 2 \ar@/_2pc/[ddd]_{\txt{generalize}} \\ \\ \\ \...
4
votes
2answers
131 views

xymatrix (or else) : create an arrow which points to the content of a cell, ie which follows the content

I have a regular xymatrix in which an arrow goes from cell 1-1 to cell 2-1. Now if I decide to move the content of cell 2-1 to cell 2-2, I'd like the arrow to "follow the content", that is go from 1-...
1
vote
1answer
37 views

Setting row dimension half default column dimension in xymatrix environment

Consider the following MWE: \documentclass{article} \usepackage[all]{xy} \begin{document} \begin{equation} \xymatrix{ \bullet \ar[r]\ar[d] & \bullet\\ \bullet } \end{equation} \end{...
2
votes
2answers
413 views

How to make a complicated arrow diagram?

I am trying to create a diagram with LaTeX as in the picture. The arrows are [Rightarrow] and [Leftarrow]. \begin{displaymath} \xymatrix{ & & SCoS \ar[dll] \ar[d] \ar[drr] & & \...
1
vote
1answer
132 views

xymatrix and commutative diagram

Using xymatrix to get a commutative diagram $X=X$, I want to make the morphism identify as =, not \xymatrix {X\ar[r]^{id}X}. How can I get this?
3
votes
1answer
55 views

Bad interaction between neighbor packages - xy, polyglossia, biblatex, mtpro2

I have a small file: \documentclass{report} \usepackage[subscriptcorrection]{mtpro2} \RequirePackage{polyglossia} \setmainlanguage{english} \usepackage{biblatex} \usepackage[all,2cell]{xy} \...
2
votes
0answers
45 views

Changing the style of an 1-cell inside a 2-cell diagram, in xy [closed]

Is it possible to modify the style of the arrows in a 2-cell in xy? \documentclass{standalone} \usepackage{amsmath,amssymb,amsfonts} \usepackage[all,2cell]{xy} \UseAllTwocells \begin{document} \...
1
vote
1answer
70 views

Put symbols at a centered position before xymatrix (like for pmatrix)

Sometimes it is necessary to do algebra with "diagrams/trees" ect. For my purposes the xymatrix environment is enough to write these diagrams. However the following expressen just looks wrong \...
8
votes
2answers
474 views

How can I get something close under a Commutative Diagram?

I am trying to make a nice commutative diagram. I wrote it with xymatrix but it also works with tikZ. I want the distance between the diagram and the last line to be smaller. I have no idea how to do ...
1
vote
2answers
119 views

How to improve the following codes to get the following diagram in Latex?

I want to get the above diagram in Latex, but I don't know how to edit it. Any help will be appreciated. I post my effort in the following way. \documentclass{article} \usepackage[all]{xy} \begin{...
1
vote
3answers
991 views

Triangle commutative diagram with xymatrix

I'm using the xymatrix package (which I think is more friendly than tikz package), and I've been trying to do a simple triangle diagram with a circle arrow in the middle. I mean, I've done this one: \...
0
votes
1answer
500 views

How to write in math environment in \xy matrix

I want to write $\alpha$ in place of a in Z[a] and Z as set of integer symbol. But when I'm trying it in math environment using $ symbol it is giving error. Please Help. \begin{displaymath} \...
1
vote
1answer
53 views

Add to commutative diagram

I have made the following diagram \documentclass[24pt]{beamer} \usepackage[matrix,arrow]{xy} \usepackage{amssymb,amscd,amsthm,amsmath} \begin{document} \begin{frame} \xymatrix{ & & ...
0
votes
1answer
112 views

Problem with Drawing graph with xymatrix

I have a problem that i can't manage. Multiple errors with a same line. What to do with that? Below is also a graph that it is supposed to draw, but don't really know why it doesn't compile. Please ...
2
votes
1answer
86 views

Problem with diagram “shift” in beamer

I am having an issue when writing a commutative diagram in Beamer using the \xymatrix command. The diagram is meant to be built piece-by-piece during the presentation. However, as I move through the ...
0
votes
1answer
439 views

Commutative diagram Beamer pauses using \xymatrix [duplicate]

I want to make a commutative diagram that has pauses ingrained in them using the \xymatrix command. I want to build up a diagram in my presentation piece-by-peace, but I'm not very sure how to make ...
4
votes
2answers
133 views

Add padding to the box of object grouping in xymatrix

I have a cluster with which the objects are simply bullets. I would like to group some of the bullets such as the following. Somehow the edges of the box are exactly on the bullets. Here is my code ...
2
votes
1answer
130 views

Insert qcircuit inside xymatrix environment

I need to combine some quantum circuit as a node between arrows. Does everybody know how to put a quantum circuit as a point inside xymatrix? Here is an example of the code \[\xymatrix@C+=3cm{ A ...