Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

Questions tagged [tikz-cd]

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

Filter by
Sorted by
Tagged with
0 votes
0 answers
3 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 ...
user avatar
  • 301
0 votes
1 answer
12 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 ...
user avatar
0 votes
2 answers
62 views

Drawing Hasse diagram on Latex

I am currently trying to draw the following hasse diagram on Latex. From my understanding, I think I should be using the tikzcd package but having trouble getting understanding how it works. I would ...
user avatar
  • 1
2 votes
1 answer
85 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,...
user avatar
  • 301
1 vote
1 answer
37 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: ...
user avatar
  • 6,382
2 votes
1 answer
23 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 ...
user avatar
  • 338
4 votes
2 answers
110 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=\...
user avatar
  • 1,486
0 votes
1 answer
30 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 ...
user avatar
  • 75
5 votes
1 answer
240 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 ...
user avatar
  • 301
-1 votes
0 answers
39 views

Need help animating these figures with Tikz in Beamer

Can someone help me to animate these figures with Tikz in Beamer?
user avatar
  • 1
1 vote
2 answers
58 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 ...
user avatar
  • 301
0 votes
2 answers
46 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 ...
user avatar
4 votes
3 answers
600 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 ...
user avatar
  • 301
1 vote
1 answer
52 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} \...
user avatar
  • 301
0 votes
0 answers
27 views

Reducing space in graph of tikz

I have the following graph on Tikz. \begin{tikzcd} & & & ...
user avatar
0 votes
2 answers
51 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, ...
user avatar
  • 103
2 votes
0 answers
81 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 ...
user avatar
1 vote
2 answers
41 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'} & {...
user avatar
  • 5,269
2 votes
1 answer
53 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{...
user avatar
  • 5,269
0 votes
1 answer
45 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 ...
user avatar
  • 163
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} ...
user avatar
  • 4,485
2 votes
3 answers
82 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/....
user avatar
0 votes
1 answer
51 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....
user avatar
0 votes
1 answer
61 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 ...
user avatar
0 votes
3 answers
68 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 ...
user avatar
  • 297
1 vote
2 answers
38 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&...
user avatar
  • 297
2 votes
2 answers
107 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, ...
user avatar
  • 297
0 votes
1 answer
32 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=...
user avatar
0 votes
2 answers
52 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{...
user avatar
-1 votes
1 answer
34 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.
user avatar
0 votes
1 answer
38 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{...
user avatar
-2 votes
1 answer
70 views

Partition interval in latex

I want to draw this partitioned interval. I've used Tikz but I don't know how to add the underbrace for the nodes. Thanks.
user avatar
  • 11
0 votes
1 answer
65 views

Elegant way to align two tikz diagrams in a line

I wish to put two tikz diagrams in a same line so that they are aligned, centered on the quarters as below: The only way I know for now is to put the tikz diagrams in a common equation and then add ...
user avatar
  • 177
0 votes
1 answer
34 views

Tags for rows in a commutative diagram using tikz-cd

Consider a commutative diagram such as \documentclass{scrartcl} \usepackage{mathtools, tikz-cd} \begin{document} \begin{equation} \begin{tikzcd} 0 \rar & A \dar \rar & ...
user avatar
  • 1,486
2 votes
2 answers
45 views

Comma in arrow of tikzcd [duplicate]

\documentclass[a4paper, 12pt]{article} \usepackage{tikz-cd} \begin{document} \begin{tikzcd} X \ar[r, "(1,0)"] & A \end{tikzcd} \end{document} Does not compile. However removing the ...
user avatar
1 vote
1 answer
37 views

Why to TikzCD arrows behave differently when made thicker compared to Tikz arrows?

Piggybacking off my previous question TikzCD arrow "to path" tracing a path over nodes with sharper corners (i.e. how to change looseness) The following code: \documentclass{article} \...
user avatar
  • 525
2 votes
1 answer
62 views

TikzCD arrow "to path" tracing a path over nodes with sharper corners (i.e. how to change looseness)

I have the following code \begin{center} \begin{tikzcd} L \arrow[dd, color = red, shift right = 1pt] \arrow[dd, color = red, start anchor = -5, to path={..controls +(1.5,0).. (\tikztotarget)}] \arrow[...
user avatar
  • 525
0 votes
2 answers
31 views

Tikzcd error - narrowed down to one particular cell

I tried to run below but I keep getting below error. Let me know if you can spot anything. The arrows coming out of U \times F seem to be the issue, since without any of those arrows, the diagram runs ...
user avatar
3 votes
2 answers
61 views

How to change the size of labels in a commutative diagram with tikz-cd

I have made a commutative diagram using the tikz-cd package and cannot figure out how to increase the size of the labels for the arrows. I used [sep=2cm] to space out the rows and columns more, but ...
user avatar
0 votes
0 answers
39 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 ...
user avatar
  • 1
2 votes
1 answer
27 views

Help needed with formating tikz-cd diagram

I need help with formating tikz-cd. It should look like this picture: however i wrote this code: \documentclass[11pt]{standalone} \usepackage{tikz-cd} \begin{document} \begin{tikzcd} m^3 ...
user avatar
3 votes
1 answer
74 views

tikzcd inside parbox

\documentclass{article} \usepackage{tikz-cd} \begin{document} \parbox{\textwidth}{\[ \begin{tikzcd} a \arrow{r}{} & b \end{tikzcd} \]} \end{document} The MWE above throws a ...
user avatar
  • 1,944
2 votes
1 answer
68 views

Too much empty space before a TikZ CD with a bent arrow with looseness [duplicate]

As you can see in the following example, there is too much empty space between the text and the diagram when I use an arrow with bend left=100, looseness=2. How can I avoid it? \documentclass{article} ...
user avatar
  • 53.9k
1 vote
1 answer
32 views

Custom style for tikzcd

I would like to define something called fieldtower (a style?) which stands for arrows=no head, column sep=small. This thing should be usable at will between tikzcd environments. So something like this ...
user avatar
  • 145
1 vote
1 answer
58 views

tikz-cd "undefined control sequence"

I cut-and-paste a basic example from the tikzcd manual and keep getting error messages. Here is a minimal example: \documentclass{beamer} \usepackage{tikz-cd} \usepackage[english]{babel} \usepackage[...
user avatar
  • 335
2 votes
3 answers
350 views

How to draw an equilateral triangle with a solid line inside it?

I know how to draw a triangle like so: \begin{tikzpicture} %Triangle 2 \node at (2,-1) {triangle 2}; \draw (0,0)--(2,0) node[sloped,pos=0.5]{}; \draw (2,0)--(2,2) node[sloped,pos=0.5]{\arrowR}; \draw (...
user avatar
  • 153
1 vote
1 answer
32 views

Drawing a vertical rectangle instead of horizontal one and making its dimensions smaller, 3cm by 2cm

\documentclass{book} \usepackage[margin=1in]{geometry} \usepackage{tikz} \usetikzlibrary{shapes.geometric, patterns, patterns.meta} \usetikzlibrary{arrows.meta} \usetikzlibrary{decorations....
user avatar
0 votes
1 answer
37 views

A square with a dotted line in it with arrows reversed or in the same direction

I want to draw the one of the squares of following figure: And I want to know how to reverse this bold arrow please. Thanks in advance!
user avatar
-1 votes
2 answers
93 views

Drawing a part of a cylinder

Here is the drawing I want to draw: I want to draw this part of the cylinder and a square with internal shading (I do not want the dotted line inside the square, it was a typo) Can someone help me in ...
user avatar
  • 353
1 vote
1 answer
53 views

Cartesian coordinates with rectangles on axes and lines bounded elements

I need help in the pictures below. I can not draw the rounded rectangle upon the two axes, the line like U in the pictures on the left, and the line bounded the elements in the picture on the right. ...
user avatar
  • 173

1
2 3 4 5
16