Questions tagged [xymatrix]
Part of the XY-pic bundle providing macros for drawing commutative diagrams.
99
questions
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?
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 ...
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[...
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 ...
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?
...
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 ...
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
...
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)\...
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?
\...
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_{...
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{....
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$'.
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{...
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 ...
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]|...
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}
\...
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 ...
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}
\[\...
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@&...
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 ...
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.
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\...
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 ...
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 ...
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: \...
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,...
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{(}.
\...
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.
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{...
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@{...
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}
\...
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 ...
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] ...
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 ...
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}
\...
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 ...
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:
'% \...
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 @/^/ "...
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)]@...
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] & &...
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^{}\...
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 ...
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 ...
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]{...
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 ...
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{\...
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@...
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{...
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{...
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