Questions tagged [tikz-cd]

{tikz-cd} concerns commutative diagrams produced by the tikz-cd package.

Filter by
Sorted by
Tagged with
2 votes
1 answer
71 views

Mistakes on a diagram see in TeX.SE

What is the reason this code not working? \documentclass[a4paper,12pt]{article} \usepackage{tikz} \begin{document} \[ A \arrow[rr, bend left] & C \arrow[rd] & E \\ B \arrow[rr, bend right] \...
3 votes
1 answer
75 views

Draw block diagram using Tikz package

Please how can I draw the figure shown below in Latex? I copied the figure from a journal. I am currently using Tikz package. Thank you for your help. Update: My code is shown below. \begin{...
1 vote
1 answer
68 views

Some Arrows in the package tikzcd

Here is the diagram codes and the output of it. I got the codes from the tikzcd documentation but when I want to add some extra arrow, it gives a mistake. How can I add an UP ARROW from "ij-S-...
4 votes
2 answers
89 views

Centering commutativity arrow (arrow not showing)

I have the following diagram where I am using the \tikzcdmatrixname command to place the commutativity arrow, and using the "at end of picture" trick, but the arrow is not showing up. These ...
0 votes
2 answers
52 views

Commutative diagram with 2 blocks

Using the tikzcd package I would like to make the following diagram.
3 votes
1 answer
35 views

Achieve desired alignment of arrows in tikz-cd diagram

I want to add to add the supersets of the sets U_\tau and V_\tau (respectively for \pi) to the following tikz-cd diagram I managed to achieve the following result Latex code: \documentclass[openany]{...
0 votes
3 answers
63 views

How do I recreate this commuting square in latex?

I'm trying to recreate the following diagram: Thanks in advance!
0 votes
0 answers
19 views

Tikz-cd draw arrow over nodes [duplicate]

how can I draw a bend arrow from A to D? \begin{tikzcd} A \arrow[r] & B \arrow[r] & C \arrow[r] & D \end{tikzcd}
0 votes
0 answers
69 views

Undefined Control Sequence error in tikz [duplicate]

I want to write a commutative diagram with tikz where some arrows are labeled with matrices. How can I improve the diagram to look correct, because the matrices look not correct in the diagram? Here ...
1 vote
1 answer
76 views

Drawing an entangled commutative diagram

Here is the diagram I want to draw: My attempt so far: \documentclass{amsart}[12] \usepackage[a4paper]{geometry} \geometry{top=1.3in, bottom=1.0in, left=1.4in, right=1.4in} %\renewcommand{\...
0 votes
1 answer
111 views

Fractal figures [closed]

I have found this open source figures in a PDF document and I like the presentation and style of these fractals. Now I wanted to create similar fractals, maybe the Koch curve or the Cantor set in a ...
0 votes
0 answers
16 views

Cannot use tikz-cd in align-environment [duplicate]

Why, as in the following MWE, does tikz-cd give me errors inside align-environment? Is there a way that the ampersand for tikz-cd is ignored by align? \documentclass[a4paper,10pt]{article} \...
2 votes
1 answer
38 views

My markings are not working (pgfkeys : key '/tikz/marking' unkown)

So I am trying to draw barred arrow in tikzcd, and following the answer of for example here :https://tex.stackexchange.com/a/493140/236919 . It does not work because of marking. The other (much more ...
-1 votes
1 answer
36 views

2 lines intersecting at the origin

How can I draw these colored pictures in Latex? I am not caring about the thickness of the coloured lines in both pictures, ordinary thickness is fine. Also the letter below the first figure is $\...
2 votes
1 answer
95 views

"Triangular" layout in tikz-cd

With the following snippet: \begin{tikzcd}[row sep=1.5cm, every arrow/.append style = {dash}] & H_5 = S_3 & \\ H_1 \arrow[ur] & H_2 \arrow[u] & H_3 \arrow[ul] & H_4 \arrow[...
0 votes
1 answer
59 views

Row spacing and arrow length in tikz-cd

In the source below, how should I modify the macro Func, which uses tikz-cd, so that it reproduces the output from the macro func, which uses just the array environment? In particular, how should I: ...
4 votes
3 answers
874 views

Filling of diagrams using tikzcd

I have the following diagram: \begin{tikzcd}[ampersand replacement=\&] x \arrow[rr] \arrow[dr] \& \& y \arrow[dl] \\ \& z \& \\ \end{tikzcd} and I would like to use: \...
0 votes
2 answers
91 views

Hasse diagram on Latex [closed]

I think I should be using the tikzcd package but having trouble getting understanding how it works.
1 vote
1 answer
86 views

Using a mathabx style \rightsquigarrow in a tikz-cd commutative diagram

I'm trying to make these two style arrows line up. Below is a minimal working example. \documentclass[12pt]{article} \usepackage{amsmath, mathabx, tikz-cd} \usetikzlibrary{decorations.pathmorphing} \...
2 votes
1 answer
88 views

"node on layer" style in tikz matrix (tikzcd)

I've been trying this answer https://tex.stackexchange.com/a/20426/116348 to put a node on a layer using only its style, like in \node[node on layer=front]{A};. It works great... except in tikz ...
0 votes
1 answer
77 views

Cross section on a surface

I have to make this graph I have only managed to make one part, the rest is very complicated to graph. The graph at the top is supposed to be a surface and I'm taking a small curved plate. Any idea ...
0 votes
2 answers
32 views

Several problems in labeling commutative diagram

I am just trying to put some labels on the right side of some commutative diagrams in order to later reference them. Since I am not labeling all diagrams, as I only need to reference two of them, I ...
1 vote
1 answer
92 views

Classification of index in Phase Portaits

I am trying to make the following graphs horizontally, I used the following answer as a basis: input: \documentclass[border=1mm]{standalone} \usepackage{tikz} \usetikzlibrary{decorations.markings,...
3 votes
2 answers
773 views

Draw an ellipse in Tikz-cd around diagram

I want to draw an ellipse around three pairs of nodes in my diagram: (32), (78) and (56). \begin{tikzcd} 1\arrow[bend right]{r} \arrow{d} &3 \arrow[bend right]{l} \arrow[bend left]{r} &2 \...
4 votes
2 answers
137 views

Style rows/columns of a `tikz-cd` diagram

Apparently, the tikz keys row n/column n don't work in tikz-cd diagrams: \documentclass{scrartcl} \usepackage{tikz-cd, tikz} \begin{document} \[ \begin{tikzcd}[row 1/.style={nodes={font=\...
2 votes
1 answer
27 views

How can I use tikz-cd and \mathsurround simultaneously?

The proper formatting I need to use includes the line \mathsurround=2pt, but this ruins the arrow placement in tikzcd environments. Can I temporarily turn \mathsurround off, either by recovering the ...
0 votes
1 answer
39 views

How to disable rendering of certain package content (draft mode)

I'm using the tikz-cd package for drawing commutative diagrams. Now I want to disable the rendering of the content produced by this package similar to the behaviour when importing the graphics package ...
5 votes
1 answer
254 views

Clockwise and counterclockwise path around the origin

I want to draw the following At first I thought of doing something like a dipole but then I realized that it was not like that, it is just a curve that returns it to the origin of coordinates in a ...
2 votes
0 answers
100 views

Improving Rightarrow in tikz-cd

Update 2 The discussion continues on Github where the latest work in progress (and possible future updates) can be found. As I was able to fix all of the problems in the code below, I consider this ...
1 vote
2 answers
62 views

Graphics Alignment

I have compiled this code but the right part is somewhat messy. I would like the two graphs on the right to be aligned (centered) one below the other, but I have not been able to do so. Any idea to ...
5 votes
3 answers
631 views

Draw the flat torus

I want to graph a curve on the flat torus, but not on the entire R^2 plane, but on the square [0,1]x[0,1]. For this, I have created a "do...while" with only the initial data of the rational ...
0 votes
2 answers
54 views

Interface for diagrams and example [duplicate]

I would like to know if there are interactive graphic-oriented programs to construct diagrams of latex. For example, I know https://q.uiver.app/ There are others that do something similar? I am ...
1 vote
1 answer
57 views

Join graphs tikz + pgfplots

I have two graphics that I would like to join into one but even more I would like to put them inside text, something like this: \documentclass[12pt]{article} \usepackage{tikz} \usepackage{pgfplots} \...
0 votes
0 answers
28 views

Reducing space in graph of tikz

I have the following graph on Tikz. \begin{tikzcd} & & & ...
0 votes
2 answers
56 views

how to "design" and code a 3x3x3 3d diagram in tikz-cd

I need to do a 3x3x3 diagram in tikz-cd and I'm wondering what's the best way to code it to make ti as clear as possible. I've a little experience with 2x2x2 diagrams in tikz-cd using crossing-over, ...
1 vote
2 answers
49 views

tikz-cd: alignment and label placement of snake-like arrows

Consider the following example: \documentclass[tikz, border=1cm]{standalone} \usepackage{tikz-cd} \begin{document} \begin{tikzcd} {C_{n+1}'} & {C_{n+1}} & {C_{n+1}''} \\ {C_n'} & {...
2 votes
1 answer
68 views

tikz-cd: an extra background color not conforming to the page color

Consider the following example, you can see that there is a white background behind the text label, which is not consistent to the page color. Is there any way to fix this behavior? \documentclass{...
0 votes
1 answer
54 views

Tikzcd - Modified String Diagram

I can't seem to find a general tikz-cd outline for creating the above diagram. My use case is for parametric lenses in category theory, but I can't seem to find any code even close to the above ...
4 votes
1 answer
65 views

Why is the arrow shorter than the distance between two nodes?

I have a rather peculiar problem that I'm unable to fix: \documentclass{amsart} \usepackage{mathrsfs} \usepackage{tikz-cd} \usetikzlibrary{calc} \newcommand{\gal}[1]{\mathscr{G}_{#1}} \begin{document} ...
2 votes
3 answers
99 views

Node positions in Tikzpicture for using tikzmark

I wish to create a diagram like this. My attempt is shown below: Output Code \documentclass{article} \usepackage{tikz-cd} \usetikzlibrary{tikzmark,shapes.geometric,shapes.symbols} \tikzset{elnode/....
0 votes
1 answer
53 views

Error using tikzmark with multiple tikzcd's

I wish to create a figure like the one shown below. I am getting the error above with the following code. Can someone tell me where I may be going wrong? \begin{tikzcd}[arrows={-latex, outer sep=-1....
0 votes
1 answer
296 views

Error: "No shape named tikz@f@1-1-2 is known"

I typed: \begin{tikzcd} E \arrow[r] E \end{tikzcd} and I get the error "No shape named tikz@f@1-1-2 is known." I have tried many things and don't know how to fix this.
0 votes
1 answer
69 views

Arbitrary container around a tikzcd diagram

I wish to draw a picture like this with an arbitrary shape around a few points with arrows between them. I am using the circle command in tikzpicture but the result is very different. Could someone ...
0 votes
3 answers
80 views

Using tikzcd in \multirow

Earlier, I has asked to ask how to make &'s work for tikzcd environment nested inside tabular. I got my answer in tikz-cd's manual---I just had to use ampersand replacement=\&. Now, another ...
1 vote
2 answers
74 views

How to have tikzcd inside align?

With the gathered subsidiary environment, the code \newcommand{\id}{\mathrm{id}} \[\begin{gathered} \text{if $g$ is a left-inverse of $f$, then } \begin{tikzcd} A\ar[r, "f&...
2 votes
2 answers
113 views

How to modify the cell dimensions in tikzcd?

Code: \[ \begin{tikzcd}[cells={nodes={draw=gray}}] \text{Math is excellent!} \ar[r, rightarrow] \ar[d, leftarrow] & \text{w} \ar[d, rightarrow]\\ \text{w} \ar[u, rightarrow] \ar[r, ...
0 votes
1 answer
39 views

A tilted product diagram

Here is the diagram I want to draw: I know how to draw ordinary commutative diagram like this and here is my trial: \documentclass{book} \usepackage{tikz-cd} \begin{document} $$\begin{tikzcd}[row sep=...
0 votes
2 answers
79 views

Tilted arrows in latex

Here is the figure I want to draw: Could someone show me how to draw tilted arrows please? I know how to draw a commutative triangle like this: \documentclass{book} \usepackage{tikz-cd} \begin{...
-1 votes
1 answer
41 views

rectangular and triangular commutative diagram with curves

Here is the diagram I want to draw: Could anyone help me in drawing it please? the curved arrows and the diagonal arrows, I do not know how to do this.
0 votes
1 answer
56 views

How to draw two arrows above each other?

Here is the figure I want to draw: My big problem is the two arrows above each other with something written above and below. I tried the following: \documentclass{book} \begin{document} \[\begin{...

1
2 3 4 5
16