Questions tagged [xymatrix]

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

Filter by
Sorted by
Tagged with
1
vote
1answer
26 views

How to color actually labels and arrows using xy/xymatrix package

I'm reading actually the xyrefer.pdf guide to give a color to the arrow and to the label. Starting from this MWE, there is not any color for the arrow (for example). \documentclass[a4paper,12pt]{...
0
votes
0answers
11 views

Redefinition errors when using xy-pic within a 'combine' document

I am currently in the process of writing my thesis (by articles, as opposed to a monograph thesis). To this end, I am using the combine package, which allows for an easy inclusion of my articles. This ...
2
votes
2answers
122 views

Adding a symbol to the top of a vertex in a connected tree

I have a code for a tree \[ \xymatrix@-1.25pc{ *={\bullet} & &*={\bullet} & \frm{}\\ &*={\bullet}\ar@{-}[lu] \ar@{-}[ru]& & } \] which will produce this as ...
0
votes
0answers
12 views

a problem of xymatrix in overleaf

I have a problem with this code. In overleaf, I compile it but I do not see anything on the pdf document. $$\xymatrixcolsep{32pt}\xymatrix{ P_{c_1}\oplus \cdots \oplus P_{c_s} \ar[r]^-{\left(P[\bar{\...
0
votes
0answers
22 views

Placing frame on top of frames, using XY matrix

I'd like to add a diagram to a writeup, emphasizing something is in common to two (distinct) things. How could a diagram as follow be typeset using xy-pic? Alternatives also welcomed.
3
votes
1answer
46 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
67 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
39 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
173 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
55 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
29 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
76 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
52 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
88 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
49 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
41 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
58 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
58 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
150 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
78 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
53 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
179 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
36 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
80 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
98 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
90 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
49 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
97 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
168 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
123 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
71 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
73 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
292 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
1k 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
243 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
298 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
143 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
122 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
132 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
425 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
137 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
56 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
48 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
120 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
1k 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
530 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
54 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{ & & ...