Questions tagged [xy-pic]

{xy-pic} is a package for typesetting graphs and {commutative-diagrams} using the principle of "logical composition of visual components."

Filter by
Sorted by
Tagged with
2
votes
1answer
23 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....
0
votes
2answers
31 views

curved, dotted arrow in xypic

Why is the following code for a curved, dotted arrow in XYpic not working? \ar@{.>}/_1pc/[ddrr]_(.4){\widehat{p_0}} I've already tried all possible orders of {.>}, /_1pc/ and [ddrr]_(.4){\...
1
vote
1answer
37 views

How to draw a double down arrow in xypic?

I want to have a pair of arrows going downward in a similar way to this picture(it's from AWWAPP so forgive me for the quality):
1
vote
1answer
53 views

Color qubit lines using QCircuit

I'd like to color some qubit lines in quantum circuit diagrams drawn using QCircuit as exemplified in the following image: Can this be done with Qcircuit? As a follow-up, is it possible to do some ...
4
votes
2answers
66 views

Adjusting in-line xy-pic diagrams to the baseline

I want to put a triangular-shaped diagram in a line between the text, like: Consider the diagram $\xymatrix{ & \bullet \ar[dr] & \\ \bullet \ar[rr] \ar[ur] & & \bullet }$ blah blah ...
4
votes
1answer
88 views

Pushout commutative diagram

Can someone explain to me this command right above the document command step by step: \documentclass{article} \usepackage{amssymb,amsmath} \usepackage{xypic} \usepackage[czech]{babel} \newcommand{\...
3
votes
2answers
69 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, ...
2
votes
1answer
80 views

A suggestion as to set xy-pic as GUI into WinEdt

With this question I don't know the procedure how to install into WinEdt editor the GUI interface for the Xy-Pic diagrams. Thanks to everyone for a help. I have read the instructions here http://...
1
vote
1answer
67 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@{<->} ...
1
vote
1answer
59 views

Globular 3-cells and higher diagrams in xy-pic

Is there a nice/standardized way to format globular 3-cells in xy-pic the same way we can with 2-cells? For 2-cells the command \rtwocell generates the required arrows, and a modification that ...
0
votes
0answers
25 views

How can I get a symmetric bracket with xy-pic?

% Compiled by XeLaTeX \documentclass{article} \usepackage[all,pdf]{xy} \begin{document} \begin{xy} ,(0,0)="A" ,(10,0)="B";"A" **\frm{^\}} \end{xy} \end{document} generates an asymmetric bracket, how ...
3
votes
1answer
51 views

Joining bullets and nodes xy pics

I'm reasonably new to using xy-pics, and I'm trying to figure out how to connect bullets together. The lines I draw are only 'half connected'. This is my code: \documentclass{article} \usepackage[all]...
2
votes
1answer
57 views

isomorphism in xymatrix

Consider the tex: \xymatrix{ M \ar[r]^{f}\ar[d]_{h} & N \ar@{-->}[dl]^{g} \\ P} If f is isomorphism, not identity. How to change the tex? If I replace \ar[r]^{f} by \ar@{\cong }[r]^...
2
votes
1answer
44 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
53 views

Diagrams and xy-pic package

I want to reproduce the shape of the following diagram : And the closest thing I could manage with the xy package was : $$ \xymatrix{ &B \ar[r] & H \ar[r] & B \ar[rd] \\ E'...
5
votes
2answers
96 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
2answers
105 views

How to draw commutative diagram? [duplicate]

I'm a Latex beginner, could you please help me to draw these diagrams? Thank you very much!
3
votes
1answer
47 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} \...
0
votes
1answer
132 views

How to draw simple graphs, paths, arrows [closed]

I´m trying to learn how to draw with LaTeX, but I have found too much info about that: 1. XY-Pic 2. pgfplot 3. tikz 4. LaTeXDraw 5. PSTricks So I need to focus in one package/tool each time to ...
1
vote
1answer
221 views

scale xymatrix diagram

I have a commutative diagram similar to the one below that is way too big to fit on the page. Is there a way to scale the diagram down so that it fits? I read that this could be done using the tikz ...
3
votes
3answers
159 views

Latex Code for two parallel arrows and alignment in commutative diagram

&& P\times_{\mathcal{H}_0}Q\ar[rdd]\ar[ldd]\\ \mathcal{G}_1\ar[dd] &&\mathcal{H}_1\ar[dd]&&\mathcal{K}_1\ar[dd]\\ &P\ar[dl]\ar[dr]&&Q\ar[dl]\ar[dr]\\ \mathcal{G}_0&...
3
votes
1answer
94 views

Ugly overlines on arXiv (and elsewhere)

I have observed that various horizontal and vertical lines look ugly on arXiv (and elsewhere). This includes \overline, \hrule, fraction line, end-of-proof square, lines drawn by xy-pic but not those ...
2
votes
1answer
51 views

Drawing curves without arrows using xy-pic

Could you tell me how to remove the arrows of the curves using xy-pic? I didn't find the solution in xy-guide. Thanks advance for your help.
4
votes
3answers
138 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{...
3
votes
1answer
68 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} ...
1
vote
2answers
52 views

How do I get a bidirectional arrow in XY with the barr option

\documentclass{article} \usepackage[cmtip,all,barr]{xy} \begin{document} This is a simplified diagram of data flow for LISTSERV. Note that for IBM-MAIN the gateway to news is one way; replies to the ...
0
votes
1answer
83 views

all option breaks xy package

I've been trying to load xy with the all option, but I get the error ! LaTeX Error: Two \documentclass or \documentstyle commands. See the LaTeX manual or LaTeX Companion for explanation. Type H &...
3
votes
2answers
108 views

standalone class, vcenter and xymatrix

Using pdflatex Version 3.14159265-2.6-1.40.18 (TeX Live 2017/Debian) and standalone 2015/07/15 v1.2 The following fails with "! Missing $ inserted.". Replacing standalone with article works as ...
2
votes
2answers
64 views

Moving labels in xypics

I have made a significantly complicated diagram of a system of chemical reactions in xy pics, but for all the reaction rates to be visable i have to change their placement on the arrows, either making ...
1
vote
1answer
46 views

Colouring parallel arrows in xypics

I'd like to use xy to draw a diagram with coloured parallel lines. A previous question dealt with making xy create coloured lines, but the first xymatrix produces a mess rather than a coloured version ...
1
vote
2answers
87 views

xy-pic: moving start and end of bent arrow

I would like to improve the following Xy-pic drawing by putting the beginning of the arrow centered under the $x$ and its end centered under $f_u(x) u$: \xymatrix@R=6pt{ E \ar[r]^-{f_u} & \K \...
1
vote
1answer
102 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}} \\ \\ \\ \...
0
votes
1answer
66 views

How to group objects in parallelogram?

How to group the blue objects $C_{n+1},C_n,D_{n+1},D_n$ in my codes in a parallelogram just like the following picture using the command '\save' ? \documentclass{article} \usepackage[all]{xy} \begin{...
2
votes
2answers
46 views

tkz-euclide and Xy-pic conflict over Babel shorthands

It is well known that certain Babel shorthands conflict with some Xy-pic commands and this can be solved by disabling those shorthands. I was using Xy-pic and Babel french with shorthands=off in the ...
2
votes
2answers
406 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] & & \...
5
votes
2answers
609 views

Drawing a “spider” web of arrows in tikz-cd [for Halloween]

For Halloween or not, I am trying to make the following-like "spider" web diagram through tikzcd, roughly like this (of course I am just drawing the more ugly version of it, the arrow should be thin) ...
6
votes
4answers
1k views

Putting a matrix over an arrow

I'm wanting to re-use notation used in a paper, but I'm having trouble formatting it in LaTeX. I'm trying to put a small (either a 2x2 or a 2x1 matrix) on top or to the right of an arrow. I want ...
1
vote
2answers
77 views

XY-pic: how to get symmetric curved arrows with entries different in length?

I am using XY-pic to draw a simple graph with a double curved arrow (a simple version of exercise 5 in the xyguide). It appears that when the entries are different in length, the curved arrows get ...
3
votes
1answer
185 views

Best way to draw complicated 2-cell diagrams

I'm drawing some diagramas and I want to write down some 2-cells. I'm not sure of how to write them down in a good way. This is what I have done with xy: \documentclass{article} \usepackage[utf8]{...
1
vote
2answers
65 views

Typesetting triangular 2cells in xypic

I would like to typeset the diagram below in xypic. Unforunately, I have no idea how to do this, and I find it impossible to figure out how to actually use the 2cell extension for xypic. The best I'...
2
votes
1answer
212 views

Qcircuit: color background in gategroup

I'm looking for a way to use color in qcircuit (based on xy-pic). I'd like to be able to add a background color for a gate, and for a gategroup. For exemple, how can I change this code: \...
0
votes
1answer
102 views

Error in rendering xypic diagrams

I have a problem. The following code runs \[\xymatrix{ X \ar[d] \ar[r] & Y \ar[d]\\ T & S\\} \] Even the following runs \[\xymatrix{ X \ar[r] & Y \ar[d]\\ &...
1
vote
1answer
32 views

How to place XY drawings on a page?

I need to use this \usepackage[all]{xy} and i need to know how can i place the drawing i made lets say to the upper-left corner. How do i do that? \begin{displaymath} \xymatrix{A & B \\ ...
2
votes
1answer
162 views

How to position XY-pic package drawings

I have this basic XY-pic package draw \begin{displaymath} \xymatrix{A & B \\ C & D } \end{displaymath} And when i enter the code in Latex, it draws it in the center of the ...
0
votes
2answers
59 views

`xypic` arrowtip for normal subobjects

In xypic, I would like to make an arrow tip which resembles the notation for normal subobjects given by \vartriangleleft. I would like the arrow to look more or less like the one in the picture below. ...
4
votes
2answers
247 views

Unknown error between babel commands and xy-pic

I'm writing an article in Spanish but it seems that I have an incompatibility between babel commands and xy-pic. There is an older topic on the same issue but the solution there is not working for me (...
3
votes
1answer
58 views

How can I increase the spacing between this xy-picture and the text?

Often, when I have Xy-picture with a self-loop at the top, the arrow collides with the text above it: \documentclass{article} \usepackage[all]{xy} \begin{document} Lorem ipsum dolor sit amet, ...
1
vote
2answers
119 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{...
6
votes
1answer
168 views

Conflict between catchfilebetweentags and a kind of arrow from xypic: argument of \next@ has an extra }

I'm using the solution from https://tex.stackexchange.com/a/4952/1403 to input a part of file.tex into another file. But I'm getting this error: at the line \ExecuteMetaData[file.tex]{tag}. Here's ...
1
vote
1answer
93 views

How to control the direction of a hook arrow in diagxy?

I'm converting some diagrams from tikz-cd to diagxy and am having problems with hook arrow for inclusion maps. With tikz-cd the hook gets reversed on a right-to-left arrow, but I can restore it by ...