Questions tagged [xymatrix]

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

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

Increase distance between a formula and the arrow and to change the tip/arc of the hook arrow

My question is the following: for exercise I was drawing the 2nd figure of this question using xy package and I have found some difficulties that I have marked with the red rectangles: How can I ...
2
votes
2answers
24 views

xymatrix and cartesian product

I am using this to produce a diagram \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[all]{xy} \begin{document} \[ \xymatrix{H_n(X;R) \ar[d]^{f_*}& \times & H^m(X;R) \ar[r] ...
4
votes
2answers
75 views

Choose between xymatrix, forest and pst-tree

I'm embarrassed about the choice of the package used to produce rooted trees like this I have the option of the forest package Example1, The xymatrix package example2, or pst-tree package Example3 ...
2
votes
1answer
29 views

Horizontally misaligned labels in xy package

I have answered to a this question, Long arrows in a commutative diagram with transform canvas with this MWE: \documentclass[a4paper,12pt]{article} \usepackage[cmtip,all]{xy} \labelmargin-{1pt} \...
2
votes
1answer
30 views

Space around mid-arrow xymatrix labels

I'd like the top figure here (the one in the MWE) to look like the bottom figure (which was made by changing the labels into targets etc., but I have a lot of these diagrams to change and would rather ...
2
votes
1answer
39 views

can't execute this latex source code

i've been drawing a quantum circuit using the qiskit package in python. i needed the latex source code and executed circuit.draw(output='latex_source') i got this very long line of latex code: '% \...
2
votes
1answer
26 views

xymatrix bug, the arrow has a wrong source and target!

I am trying to draw an arrow between two labels and even on this example from "XY-pic User's guide" I don't get the normal diagram. \xymatrix{ A \ar[r] ^a="a" & B \ar[r] ^b="b" & C \ar @/^/ "...
2
votes
1answer
33 views

Unknown compilation error with xymatrix [duplicate]

Here is my MWE: \documentclass{article} \usepackage{amsmath} \usepackage{amsfonts} \usepackage[all]{xy} \makeatletter \newcommand{\test}{\xymatrix@M=-.3pt@=10pt} \newcommand{\testt}[2][1]{\ar@[|(1)]@...
2
votes
2answers
49 views

\xymatrix or other format

I want to draw the following: Here is my try: \begin{displaymath} \xymatrix{ &P \ar @{-}[ddl] \ar @{-}[dr]&\\ & &P_1 \ar @{-}[d]\\ P' \ar @{-}[dr] & &...
0
votes
0answers
36 views

tex4ht: possible conflict between \emph and \xymatrix

MWE: \documentclass{amsart} \usepackage[all]{xy} \begin{document} \emph{ Test \[ \xymatrix@C-20pt{ {\mathbf R} f_*\big[{\mathbf L} f^*A\otimes^{\mathbf L} f^\times{\mathcal O}_Y^{}\...
2
votes
1answer
54 views

Drawing a path with n vertices in XY-Pic

I am trying to draw a path graph using XY-Pic, and I would like to show that there's n vertices in a certain point, with a simple dashed / dotted line between two vertices, and an underbrace (or ...
0
votes
1answer
516 views

xymatrix figures cause compilation error

I formatted my computer, and installed LYX (latest version 2.3.3). I have a lyx file which won't compile (it compiled before formating my computer) for some reason. I realized that after deleting all ...
1
vote
1answer
84 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
15 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
169 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
51 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
32 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
133 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
99 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
51 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
224 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
91 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
32 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
93 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
102 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
138 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
71 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
70 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
129 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
84 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
206 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
103 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
72 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
302 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
54 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
169 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
122 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
194 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
57 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
117 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 & \...
5
votes
3answers
273 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
194 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
93 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
116 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
495 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 ...
10
votes
2answers
2k 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
344 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 ...
6
votes
3answers
421 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
241 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
161 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}} \\ \\ \\ \...