Questions tagged [xymatrix]

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

Filter by
Sorted by
Tagged with
0 votes
1 answer
30 views

Make a lozenge diagram

I would like to create a lozenge diagram with the package \xymatrix. Here is the code I wrote : \[\xymatrix{ & M\ar@{-}[ld]^{n}_{G} \ar@{-}[rd]^{m^2}& \\ H\ar@{-}[rd]^{m^2} && Z(M)\...
user avatar
  • 3
2 votes
1 answer
38 views

Inside arrow in xy package: steps

Given the image taken from this question here How do I deal with these scaling and positioning issues in Tikzcd, how is it possible to obtain an arrow inside a segment using only xy package? \...
user avatar
  • 46.1k
0 votes
0 answers
22 views

Problem with xymatrix figure__> error: unknown float option

I have this code (xy and float packages loaded, (do I really need float?)), editor: texmaker: \begin{figure}[h,scale=0.9] \tightdisplaymath \[ \xymatrix{ *+[F]{\text{Adina (x)}} \ar@/^2pc/[r]^{r_{...
user avatar
3 votes
2 answers
53 views

Long arrow into a twocell diagram

Through the code: \documentclass[12pt,a4paper]{memoir} \usepackage[all,cmtip,2cell]{xy} \UseAllTwocells \begin{document} \xymatrix@R+20pc@C+3pc{ \bullet\ruppertwocell^a{\hspace{....
user avatar
1 vote
1 answer
126 views

Typesetting Subgroup Lattices in LaTeX

Trying to figure out the easiest way to create a subgroup lattice in LaTeX. Looking to create something like this one for `$D_4$'.
user avatar
2 votes
1 answer
111 views

xymatrix: make long equal signs "=" to replace the arrow

Do people know how to make long equal signs "=" to replace the arrow in the xymatrix? \begin{equation} \xymatrix{ a \ar@{^{(}->}[r] \ar@{^{(}->}[d] & b\\ c & d }\nn \end{...
user avatar
  • 2,159
0 votes
1 answer
36 views

Xymatrix. ArchArrow

I have a trouble with this code: \xymatrix(\boxed{1.}\ar@2{<->}[r]&\boxed{2.}\ar@2{<->}[r]&\boxed{3.}\ar@2{<->}[r]&\boxed{4.}\ar@2{<->}[r]&\boxed{5.}} I'd like ...
user avatar
  • 793
1 vote
0 answers
83 views

Crossing over method with xy package for one or more arrows

Related on this question, considering the original image, adding my MWE: \documentclass[a4paper,12pt]{article} \usepackage[all]{xy} \begin{document} \xymatrix@R=2pc@C=2.8pc{ & b' \ar@{~>}[ddl]|...
user avatar
  • 46.1k
1 vote
1 answer
29 views

Circle label of xymatrix

Related from my answer where I must put the | to have the label into the arrow considering \ar@{.>}[d]^*+<8pt>[o][F]{\ell}? \documentclass[a4paper,12pt]{article} \usepackage{amssymb} \...
user avatar
  • 46.1k
1 vote
3 answers
82 views

xymatrix arrow changing directions

In an \xymatrix environment, how can I get an arrow going down, then two steps right and then up again, as in the picture? In the good old days there was LAMSTeX to do this kind of things, but not ...
user avatar
  • 1,750
2 votes
1 answer
54 views

A commutative diagram created with xy package for an old question

Starting from this question with this first image, I wanted to reproduce the drawing with xy package as training. \documentclass[a4paper,12pt]{article} \usepackage[all,cmtip]{xy} \begin{document} \[\...
user avatar
  • 46.1k
3 votes
1 answer
72 views

xy-package: two parallel arrows and clarifications

I have this little MWE taken and modificated from the documentation from pag. 6/16 of the guide xyguide: \documentclass[a4paper,12pt]{article} \usepackage[all]{xy} \begin{document} \xymatrix{ A \ar@&...
user avatar
  • 46.1k
1 vote
2 answers
54 views

Shifting curved line downwards in xymatrix

In the following MEW I have two problems Only due to the MWE: stackexchange is having some problem highlighting my code (due to the back upper coma) The real problem: I would like that the snake go ...
user avatar
  • 11
2 votes
3 answers
186 views

How to draw this commutative diagram

Please, I want to draw the below diagram in latex and don't know how to go about it.
user avatar
1 vote
1 answer
63 views

What is the latex code of the braid given below using xy matrix? I have tried but the result does not look symmetric

I have written what I tried, in the second picture. The outcome does not look like above picture. \documentclass{article} \usepackage[all,cmtip]{xy} \begin{document} $$ \xymatrix@C=0.4cm@R = 1cm{ 0\...
user avatar
  • 11
1 vote
2 answers
67 views

Labeling two different parts of one equation with two arrows with different start and end points

I want to write a formula, like the attachment picture, with two different arrows for two parts of the formula. I could write the below code by \xymatrix finally. But the starting point of the second ...
user avatar
  • 61
1 vote
0 answers
35 views

How to have the bold tip using xy package

From this old question Commutative Diagrams and TikZ, I have seen that there is an implies with the bold tip done with TikZ. Is it possible to replicate with xy package to have the same tip or others ...
user avatar
  • 46.1k
0 votes
1 answer
44 views

`xymatrix` arrow labels compiles incorrectly or does not compile

Update: added detail as per @Christoph Frings comments! I am trying to draw a commutative-style diagram using xymatrix and could not find a post detailing the same issue I have. I have used: \...
user avatar
3 votes
0 answers
44 views

Turnstile arrow in.....xy package

Following the previous question Turnstile arrow in tikz-cd, now I am curious how I can increase the left tail with the xy package. In the documentation I haven't found anything. \documentclass[a4paper,...
user avatar
  • 46.1k
0 votes
0 answers
62 views

How to redefine the hook in XY-pic?

I want to add an empty space before the hooked arrow the way it is done in the barr package. \newdir{ (}{{ }*!/-.5em/@^{(}}% But instead of defining a new \dir{ (}, I just want to redefine \dir{(}. \...
user avatar
  • 147
0 votes
1 answer
50 views

Drawing diagrams inside a particular commutative diagram

I have difficulty in drawing the following diagram by XY matrix. It would be nice if anyone from this forum can help me out by giving any suggestions. Many thanks for considering my request.
user avatar
  • 167
0 votes
0 answers
30 views

Rounded corner in xy package and ellipse shape

This question very hard for me. xy package have also the shapes, circle with [o], or other forms using this table: \documentclass[a4paper,12pt]{article} \usepackage[all]{xy} \begin{...
user avatar
  • 46.1k
2 votes
1 answer
70 views

3D perspective mode using xy package

Starting from this code where I have used xy package: \documentclass[a4paper,12pt]{article} \usepackage{amssymb} \usepackage[all,cmtip]{xy} \begin{document} \xymatrix@!0{ & \alpha \ar@{-}[rr]\ar@{...
user avatar
  • 46.1k
2 votes
2 answers
106 views

How can I typeset the included diagram in xymatrix?

\documentclass[10pt]{article} \usepackage{fancyhdr,graphicx,lastpage} \usepackage[all]{xy} \usepackage{listings} \usepackage{latexsym} \usepackage{amsmath} \usepackage{amssymb} \usepackage{makeidx} \...
user avatar
1 vote
1 answer
63 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 ...
user avatar
  • 46.1k
2 votes
2 answers
78 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] ...
user avatar
  • 23
4 votes
2 answers
169 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 ...
user avatar
2 votes
1 answer
38 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} \...
user avatar
  • 46.1k
2 votes
1 answer
123 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 ...
user avatar
  • 388
2 votes
1 answer
86 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: '% \...
user avatar
  • 155
2 votes
1 answer
42 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 @/^/ "...
user avatar
  • 431
2 votes
1 answer
46 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)]@...
user avatar
2 votes
2 answers
53 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] & &...
user avatar
  • 337
0 votes
0 answers
53 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^{}\...
user avatar
  • 669
2 votes
1 answer
70 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 ...
user avatar
0 votes
1 answer
813 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 ...
user avatar
1 vote
1 answer
288 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]{...
user avatar
  • 46.1k
2 votes
2 answers
256 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 ...
user avatar
1 vote
1 answer
271 views

a problem of xymatrix in overleaf [closed]

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{\...
user avatar
3 votes
1 answer
398 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@...
user avatar
  • 46.1k
2 votes
2 answers
128 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{...
user avatar
  • 23
3 votes
2 answers
144 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{...
user avatar
  • 46.1k
2 votes
3 answers
342 views

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

How do I make a diagram like this? Thanks in advance
user avatar
2 votes
1 answer
228 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 !
user avatar
  • 355
2 votes
1 answer
49 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....
user avatar
  • 669
3 votes
2 answers
137 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, ...
user avatar
  • 209
4 votes
2 answers
174 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 ...
user avatar
  • 474
1 vote
1 answer
237 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@{<->} ...
user avatar
  • 113
3 votes
1 answer
124 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}& &\...
user avatar
3 votes
1 answer
156 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} & & \...
user avatar