Questions tagged [xymatrix]

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

Filter by
Sorted by
Tagged with
0 votes
0 answers
16 views

Draw arrows between arrows in xypic [duplicate]

I would like to draw natural transformations like this: Is there a way to do this in xymatrix?
Zhuo's user avatar
  • 111
2 votes
2 answers
34 views

xymatrix arrow labels for long formulas

I'm trying to label an arrow in an xymatrix but because one of the formulas is quite long the label for the arrow is appearing over the second formula rather than over the arrow. What is the best way ...
user297024's user avatar
0 votes
2 answers
63 views

Align texts with the formula

I'm using the package xymatrix to create the following diagram: The diagram is bigger than the text, but the texts don't automatically go to the center of the line. Here is the code: \documentclass[...
Zhuo's user avatar
  • 111
3 votes
1 answer
55 views

Suppress space around inline xymatrix

An inline xymatrix is, by default, surrounded by a non-0 amount of space: \documentclass{amsart} \usepackage[all]{xy} \begin{document} [\(\xymatrix{A}\)] vs.\ [\(A\)] \end{document} produces How do ...
LSpice's user avatar
  • 1,394
5 votes
2 answers
173 views

Labels too close and overlapping with the internal symbols in xy package

I have given an answer on a question with this MWE, and I am not see an evident hole created when I insert a symbol into an arrow. The labels also overlapped to the symbols. How to solve the problem? ...
Sebastiano's user avatar
  • 52.6k
2 votes
1 answer
43 views

How to write a xymatrix-like LaTeX environment?

I like to draw commutative diagrams using the xymatrix command. What I do not like is the fact that xymatrix is a command and not an environment. The structure of the xymatrix minilanguage is similar ...
Gejza Jenča's user avatar
3 votes
0 answers
40 views

about xypic : how to draw a turn with double line?

Here is my original code : \documentclass[10pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{ amsmath,amssymb, } \usepackage{graphicx} \usepackage[% xypic ...
Chen_zy's user avatar
  • 31
0 votes
1 answer
65 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)\...
Emilie's user avatar
  • 19
2 votes
1 answer
57 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? \...
Sebastiano's user avatar
  • 52.6k
0 votes
0 answers
28 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_{...
Josemari's user avatar
3 votes
2 answers
85 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{....
gibarian's user avatar
1 vote
2 answers
414 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$'.
Semi-confused math major's user avatar
3 votes
1 answer
427 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{...
wonderich's user avatar
  • 2,367
0 votes
1 answer
73 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 ...
Puck's user avatar
  • 1,119
1 vote
0 answers
96 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]|...
Sebastiano's user avatar
  • 52.6k
1 vote
1 answer
73 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} \...
Sebastiano's user avatar
  • 52.6k
1 vote
3 answers
174 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 ...
yannis's user avatar
  • 1,952
2 votes
1 answer
160 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} \[\...
Sebastiano's user avatar
  • 52.6k
3 votes
1 answer
153 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@&...
Sebastiano's user avatar
  • 52.6k
1 vote
2 answers
68 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 ...
Agyla's user avatar
  • 11
2 votes
3 answers
530 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.
alex jagboro's user avatar
1 vote
1 answer
67 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\...
SAR's user avatar
  • 11
1 vote
2 answers
83 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 ...
Reza's user avatar
  • 61
1 vote
0 answers
64 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 ...
Sebastiano's user avatar
  • 52.6k
0 votes
1 answer
62 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: \...
user232427's user avatar
3 votes
0 answers
50 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,...
Sebastiano's user avatar
  • 52.6k
0 votes
0 answers
73 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{(}. \...
FR09's user avatar
  • 147
0 votes
1 answer
61 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.
math's user avatar
  • 177
0 votes
0 answers
60 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{...
Sebastiano's user avatar
  • 52.6k
2 votes
1 answer
88 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@{...
Sebastiano's user avatar
  • 52.6k
2 votes
2 answers
136 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} \...
Sifiso Masuku's user avatar
1 vote
1 answer
99 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 ...
Sebastiano's user avatar
  • 52.6k
2 votes
2 answers
135 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] ...
Van's user avatar
  • 23
4 votes
2 answers
208 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 ...
Furdzik Zbignew's user avatar
2 votes
2 answers
73 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} \...
Sebastiano's user avatar
  • 52.6k
2 votes
1 answer
225 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 ...
Fintan's user avatar
  • 388
2 votes
1 answer
156 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: '% \...
Quintis's user avatar
  • 155
2 votes
1 answer
53 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 @/^/ "...
Noix07's user avatar
  • 451
2 votes
1 answer
52 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)]@...
New to latex's user avatar
2 votes
2 answers
82 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 1's user avatar
  • 337
0 votes
0 answers
57 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^{}\...
Yai0Phah's user avatar
  • 679
2 votes
1 answer
95 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 ...
Mystery_Jay's user avatar
0 votes
1 answer
994 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 ...
Charles Carmichael's user avatar
3 votes
1 answer
486 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]{...
Sebastiano's user avatar
  • 52.6k
2 votes
2 answers
321 views

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

I have a code for a tree \[ \[email protected]{ *={\bullet} & &*={\bullet} & \frm{}\\ &*={\bullet}\ar@{-}[lu] \ar@{-}[ru]& & } \] which will produce this as ...
Mee Seong Im's user avatar
1 vote
1 answer
473 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{\...
Diego Havez's user avatar
3 votes
1 answer
598 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@...
Sebastiano's user avatar
  • 52.6k
2 votes
2 answers
200 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{...
papinou's user avatar
  • 23
3 votes
2 answers
259 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{...
Sebastiano's user avatar
  • 52.6k
2 votes
3 answers
402 views

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

How do I make a diagram like this? Thanks in advance
Novelli's user avatar
  • 35