Questions tagged [tikz-cd]

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

Filter by
Sorted by
Tagged with
31 votes
2 answers
22k views

How to draw commutative diagrams?

Can anyone help me in giving commands for commutative diagrams in LaTeX ? It doesn't seem to appear properly in the LaTeX guides that I have. A command for a simple triangular diagram with arrows ...
user avatar
  • 607
7 votes
2 answers
751 views

Setting the name of matrix in tikz-cd

tikz-cd wraps matrix creation as follows \def\tikzcd@[#1]{% \tikzpicture[/tikz/commutative diagrams/.cd,every diagram,#1]% % ... \matrix[% % ... ]% \bgroup} As such, there seems no ...
user avatar
  • 215
10 votes
2 answers
13k views

Beamer Tikz-cd Problem

I have a problem with tikz-cd. When I try to compile in beamer it doesn't work and I no have idea why. Can someone help-me, please? \documentclass[aspectratio=169]{beamer} \usetheme{Warsaw} \...
user avatar
  • 265
6 votes
2 answers
9k views

How to scale a tikzcd diagram

Question: I want to scale a tikzcd diagram, but it doesn't seem to be working. It always compiles in a small scale. How does one scale a tikzcd diagram to, say, large scale? Attempt: I tried to ...
user avatar
27 votes
4 answers
2k views

Are the TikZ libraries cd and external incompatible with one another?

Is there a way to use the TikZ libraries cd and external together? This does not work: \documentclass{article} \usepackage{tikz} \usetikzlibrary{cd, external} \tikzexternalize \begin{document} \...
user avatar
13 votes
1 answer
994 views

Using tikzcd in newcommand (for inline arrows)

I’m using tikz-cd for diagrams, and have a medium-sized diagram that I want to re-use several times. However, when I try using a definition like: \newcommand{\myarrow}{$\begin{tikzcd} A \ar{r} & ...
user avatar
13 votes
1 answer
2k views

Tikz-cd and snake lemma: "loseness" and centered figures

I have to draw a snake lemma, as here: snake lemma. The code is \documentclass{article} \usepackage{tikz-cd} \usepackage{amsmath} \DeclareMathOperator{\Tor}{Tor} \begin{document} ...
user avatar
19 votes
3 answers
13k views

Scaling a tikz-cd commutative diagram in TikZ?

I'd like to be able to scale some rather complex CDs using the scale key, for example scale=0.5. In the following MWE the scale key seems to have no effect. \documentclass{amsart} \usepackage{tikz} \...
user avatar
  • 7,797
13 votes
1 answer
1k views

tikz-cd: Shade faces of commutative cube

I would like to "shade" the faces of a commutative cube drawn using tikz-cd. \documentclass{article} \usepackage{tikz} \usepackage{tikz-cd} \begin{document} \begin{tikzcd} & P \ar{dl}[swap, ...
user avatar
  • 3,896
6 votes
1 answer
14k views

Creating triangle commutative diagram with tikz-cd [duplicate]

I've just started using TikZ and need to create a simple triangle commutative diagram like this one. The closest I've been able to get is this. How do I get the h arrow to go from A2 to A3? ...
user avatar
  • 163
5 votes
3 answers
2k views

Problems with tikzcd diagrams

I have thought of asking 3 different questions, but then they are all about the same package, and about fiddling with arrows, so they are all related, so I thought I'd go with one. Here we go. My code:...
user avatar
  • 5,186
11 votes
3 answers
65k views

How can I draw commutative diagrams in LaTeX? [duplicate]

I would like to learn to make commutative rectangles using Tikz. How can I do that? I have tried \[\begin{tikzcd} A \arrow{r}{\varphi} \arrow[swap]{dd}{g\circ f} & B \arrow{d}{g} \\ & C \end{...
user avatar
13 votes
2 answers
753 views

\tikzcdset{arrow style=math font} breaks the rendering of arrows

The command \tikzcdset{arrow style=math font} seems to break the rendering of arrows with the package tikz-cd, whatever math font is chosen: \documentclass{article} \usepackage{unicode-math} \...
user avatar
12 votes
2 answers
1k views

How to ensure consecutive diagonal arrows form a straight line?

How can I ensure that consecutive diagonal arrows in a tikz-cd commutative diagram spanning many rows and columns lie on a straight line (as is automatically the case for consecutive horizontal arrows)...
user avatar
  • 745
4 votes
2 answers
1k views

Incompatibility between tikz-cd and language

Sorry for the bad English. I'm trying to use the tikz-cd package to make commutative diagrams. My code \documentclass{article} \usepackage[brazil]{babel} \usepackage{tikz-cd} \begin{document} \begin{...
user avatar
3 votes
2 answers
1k views

Drawing a cube with TikZ-cd

I would like to draw a cube with TikZ-cd. The entries have different sizes, which causes the same problems as in my former question, because I want the arrows to be parallel. \[\begin{tikzcd}[row ...
user avatar
7 votes
1 answer
762 views

Triple arrows in tikz and tikz-cd

I have a macro to draw rather complicated diagrams in tikz which makes use of pgfkeys in order to be as flexible as possible on arrows, labels and their styles. I allow all the commands of the library ...
user avatar
7 votes
1 answer
1k views

tikz-cd: Error: No shape named tikz@f@1-0-1 found

In my use of tikz-cd, the down, right and left arrows (\ar{d},\ar{r}, \ar{l} respectively) work fine, but I seem to have no uparrow (nor any up right arrow or up left arrow). When I have \ar{u}, I get ...
user avatar
  • 123
2 votes
6 answers
991 views

Shorten curved arrow proportionally to length

I am drawing curved arrows in tikz-cd, using the method devised by @AndréC in this answer. There are situations where I want to shorten these arrows, proportional to their arc length. However, the ...
user avatar
  • 413
3 votes
2 answers
226 views

tikzcd doesn’t work in custom environment

I have a document class test.cls, in which I have defined a custom environment myenvironment using the environ package as follows: \NeedsTeXFormat{LaTeX2e} \ProvidesClass{test} \LoadClass{article} \...
user avatar
24 votes
1 answer
11k views

Length of arrow in tikz-cd

Looking at the code \documentclass{article} \usepackage{tikz-cd} \usetikzlibrary{decorations.markings,intersections} \begin{document} \begin{tikzcd}[scale=10] F_n \otimes M \arrow{r}[name=U]{\...
user avatar
15 votes
1 answer
1k views

Drawing cyclic quiver

How can I draw the cyclic quiver like in the url below? https://books.google.com/books?id=rZ_z6GpAROoC&pg=PA361 I tried and wrote the following but it is far from what I want. Would you please ...
user avatar
  • 583
12 votes
3 answers
3k views

Delayed drawing of arrows in tikz-cd

I want to draw an arrow which passes over another arrow in a tikz-cd commutative diagram. I can do that as follows from the documentation: \documentclass{article} \usepackage{tikz-cd} \begin{document}...
user avatar
11 votes
2 answers
4k views

Centering diagrams made with tikz-cd

I used tikzcd in equation environment so that the diagram should be placed on a new line and centered but I don't know why it is not perfectly centered. Here is my code: \documentclass{article} \...
user avatar
  • 213
7 votes
1 answer
338 views

Curve of fixed height between two nodes in tikz-cd

I have a tikz-cd diagram, and I would like to bend the arrows by a certain distance (so that their heights are a fixed distance from the straight line connecting the endpoints). With bend left, the ...
user avatar
  • 413
9 votes
2 answers
355 views

Tikz-cd problems whilst also using breqn package

Running the following: \documentclass[11pt,a4paper]{article} \usepackage{tikz-cd} \usepackage{tikz-cd} \begin{document} \begin{tikzcd} 0 \arrow{r} & ker{h} \arrow{r} & H(C;G) \arrow{r} &...
user avatar
  • 357
9 votes
4 answers
1k views

Symmetric triangle inTikZ-cd

I would like to draw a commutative triangle with tikzcd where the entries have different sizes. \[ \begin{tikzcd}[column sep=15pt] \mathcal{C} \ar{rr} \ar{dr} & & S(\tau) \ar{dl} \\ &...
user avatar
6 votes
1 answer
613 views

How to define a new hooked arrow?

I want to use the following hooked arrow instead of usual one: where its tail is math command subset. But zooming further to this one (image from Lee smooth manifolds, p. 563) it reveals that it has ...
user avatar
5 votes
2 answers
7k views

Double arrows in tikzcd

please look at below example: \begin{center} \begin{tikzcd} x_1(k+1) \arrow{d}{x_1(k)} & \\ x_2(k+1) \arrow{d}{x_2(k)} & x_4(k+1) \arrow{lu}{x_1(k)} \arrow{l}{x_2(k)} \...
user avatar
3 votes
4 answers
1k views

Vertical subset symbol in tikzcd

I am writing a simple commutative diagram and some objects of the second line are subsets of objects on the first line so instead of an upward arrow I would like to have a set inclusion symbol - which ...
user avatar
  • 143
3 votes
1 answer
320 views

3D arrows in tikz-cd

Is there a way to get a "3D slant" effect on tikz-cd? I mean something like the Rightarrows in the following diagram, which I made using code from another tex.SE answer: There are still ...
user avatar
  • 191
3 votes
2 answers
1k views

Positioning arrows in commutative diagrams using TikZ-cd (or otherwise)?

I'm trying to make commutative diagrams to go with my math notes. So far, I've experimented with AMScd and TikZ-cd. But here's the problem: I need to align the arrows so that I can control where their ...
user avatar
  • 133
9 votes
2 answers
2k views

How to make loop smaller in Tikz-cd

I would like to know how I could make my loops smaller/less high? Because at the moment they take up too much space on the page. This is the code I used: \[ \begin{tikzcd} i \arrow[r,"\alpha"] &...
user avatar
7 votes
2 answers
2k views

Split text nodes multiline in tikz-cd

This LaTeX code: \documentclass{article} \usepackage{tikz-cd} \usepackage{amsmath} \begin{document} \begin{figure}[ht] \begin{tikzcd}[row sep=3cm, column sep=0.9cm] & \text{binary relations} \...
user avatar
  • 1,066
5 votes
1 answer
712 views

Tikzcd conflict with babel and cd

I have this problem: when I try to compile a diagram I get the following message: I think the culprit is a tikzcd arrow in ell 1-1 But I have not problem when, in the tikzlibrary, I just use cd, ...
user avatar
  • 51
3 votes
1 answer
1k views

Creating Direct Limits and Inverse Limits using Tikz

I am trying to make something that looks like I am trying to go from here (works): \begin{tikzcd} A \arrow{r}\arrow{rd} &B \arrow{d}\arrow[leftarrow]{r} &C \arrow{ld}\\ &D \end{tikzcd} ...
user avatar
  • 821
3 votes
1 answer
794 views

Rounded arrow in tikzcd with text on it

This is a continuation of my previous question. I would like to draw a rectangular-like arrow with rounded corners in tikzcd and would like to put a text on this arrow. Here is my attempt: \...
user avatar
0 votes
3 answers
143 views

I want to writing the matrix on the arrow from X to Y 3x3 type, from Z to Y 3x2 type ;

How can I program the above diagram? ` $$ \begin{tikzcd} k\oplus k^2 \arrow[r] & k\oplus k^2 & 0\oplus k \arrow[l] \end{tikzcd} $$ `
user avatar
  • 303
10 votes
2 answers
1k views

tikz-cd Extra arrow tip with start anchor on edge v0.9b

I'm drawing a BIG tikzpicture using the tikz-cd package. I won't reproduce the entire diagram here as there's no need. But the following MWE highlights the problem I'm having which is this: One region ...
user avatar
10 votes
4 answers
2k views

Box around tikz-cd diagram, without ampersand replacement

Problem statement: I'd like to put a box around a tikz-cd diagram, without needing to use ampersand replacement. Using \fbox seems to require ampersand replacement. Demonstration: The following ...
user avatar
7 votes
2 answers
2k views

Tikz-cd: How can I arrange diagonal arrows parallel?

The two lower diagonal arrows in the following diagram are obviously not exactly parallel. How can I arrange them correctly? \documentclass{article} \usepackage{tikz-cd} \usepackage{amsmath} \begin{...
user avatar
  • 135
7 votes
1 answer
1k views

'tikz' style arrow tips missing when using tikz-cd crossing over

I have been using tikz-cd to create commutative diagrams. I just upgraded to version 0.9b from 0.3c and now there is a problem with the arrow tips. I like to use the 'tikz' solid tips. The following ...
user avatar
6 votes
2 answers
206 views

Script for dualizing diagrams in tikzcd by mirroring

My question is very similar to this one, but in some cases I would prefer my diagrams to be mirrored instead of rotated. Is it possible to write a script which achieves this in LaTeX? As an example I ...
user avatar
5 votes
5 answers
2k views

Arrows inside a commutative diagram using tikzcd

\documentclass[12pt,reqno,a4paper]{amsart} \usepackage{extsizes} \usepackage{blindtext} \textheight 9.3in \textwidth 6.5in \calclayout \usepackage{mathtools} \usepackage{amsmath,amsthm,amsfonts,...
user avatar
4 votes
1 answer
176 views

Why missing \endcsname with tikz-cd when using babel?

Why do I get the error Missing \endcsname inserted at line 15? \documentclass{article} %\usepackage[strict]{csquotes} %\usepackage[autostyle=true]{csquotes} \usepackage[T2A,T1]{fontenc} \usepackage[...
user avatar
  • 6,661
4 votes
2 answers
860 views

Strike out arrow in commutative diagram using tikzcd

I'd like to strike out the arrow between C and D in the following commutiative diagram defined using the cd Tikz library: Building on this answer I came up with the following code that gives me the ...
user avatar
4 votes
2 answers
153 views

Circular arrow in commutative diagram using tikz

I am using tikz and the following code to make a commutative diagram. \documentclass{article} \usepackage{tikz-cd, mathtools} \usetikzlibrary{calc} \usetikzlibrary{arrows} \begin{document} \...
user avatar
  • 249
3 votes
1 answer
2k views

Commutative diagram with parallel arrows using Tikz (with matrix)

I have used the next code to get a commutative diagram: \documentclass[10pt,a4paper]{article} \usepackage[spanish]{babel} \usepackage{amsmath} \usepackage{tikz-cd}% diagramas \begin{document} %----...
user avatar
  • 932
3 votes
1 answer
485 views

Using strings to list parameters for tikz-cd arrows

I'm trying to write some macros for making tikz-cd commutative diagrams. In tikz-cd you can give your arrows options like "bend left" or "dotted", in a comma-delimited list: \documentclass{article} ...
user avatar
  • 55
3 votes
2 answers
1k views

Making Tikzcd picture larger

I have the following picture. I want to make the arrows a little bigger, so that there is enough space for F and G to be written, and the diagram look a little more beautiful. Can anybody help? \...
user avatar
  • 31