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
1
vote
1answer
27 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
1answer
42 views

Drawing a frame around a part of a syntactic tree using the `xytree` package

I am trying to make a box around a part of a syntactic tree, using the xytree package. I am aware that we can do it, using the qtree package which has the \qframesubtree command. But, I would like to ...
0
votes
0answers
11 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
122 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
12 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
22 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.
2
votes
1answer
34 views

Rotating whole xypic by 90 degrees

I have a diagram drawn with xypic, for example this one: \begin{displaymath} \xymatrix@R=36pt@C=6pt{ \quad & C_7 \rtimes C_3 \\ C_7 \ar[ur] & C_3 \ar[u] \\ \end{displaymath} and I ...
3
votes
1answer
46 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@...
3
votes
2answers
39 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{...
0
votes
1answer
26 views

LuaLaTeX: problem with Xy-pic

Just running LuaLaTeX on \documentclass{article} \usepackage{xy} \begin{document} \end{document} produces an error, This is LuaTeX, Version 1.10.0 (MiKTeX 2.9.7050 64-bit) (format=lualatex 2019....
2
votes
1answer
29 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
43 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
46 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
86 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
71 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
111 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
76 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
85 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
89 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
65 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
30 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
59 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
79 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
58 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
58 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
98 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
119 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
49 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
152 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
252 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
172 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
95 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
58 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
168 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
73 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
56 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
100 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
119 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
72 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
52 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
91 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
122 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
68 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
49 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
425 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
614 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
84 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
193 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
71 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'...