Questions tagged [tikz-cd]

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

The tag concerns creating commutative diagrams using the tikz-cd package.The package is also suitable for other types of mathematical diagrams. It can be used to typeset commutative diagrams as alternative to xy-matrix, and other kinds of mathematical pictures, generating high-quality results.

enter image description here

An example of a commutative diagram. Image from Wikipedia Commons.

920 questions
14
votes
2 answers

Varying column and row width in tikz-cd

I have created the following diagram using tikz-cd \begin{tikzcd} S_E \arrow[dddd, bend right, two heads] \arrow[ddrrr, bend left, two heads, tail] & & & \\ & E \arrow[dd, dash,swap, "G"] \arrow[dr, dash, "\langle\sigma\rangle"] & & \\ & &…
Mathmo123
  • 275
14
votes
2 answers

Removing arrow tips in TikZCD

I love the TikZcd syntax to draw diagrams, and I want to use it to draw diagrams of field extensions ; this involves drawing arrows without tips. The only command I know to draw lines in tikzcd environments is \ar (or \arrow if I write it out), and…
11
votes
5 answers

Circular arrow in tikz-cd

How do I draw a circular arrow (to indicate commutativity) in tikz-cd, similar to the one in the middle of the following diagram? (Image from this question.)
Snowball
  • 2,835
  • 5
  • 17
  • 11
10
votes
1 answer

Increasing the text size of tikz-cd labels

By default the arrow labels in tikz-cd are quite small. When the labels involve subscripts or superscripts, they can become unreadable. How can I increase the label text size for all tikz-cd diagrams in my document?
Ruud
  • 1,423
9
votes
4 answers

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} \\ & \mathsf{Set} & \end{tikzcd} \] This produces a…
9
votes
3 answers

Manipulate cell width in tikz-cd

This is something of a nitpick, but I'm having some trouble getting to grips with tikz-cd. I'm not sure of the TikZ terminology, but I think I'm trying to find a way to manipulate cell widths. Here's a minimal example to illustrate my…
DavidR
  • 91
8
votes
2 answers

Co-equalizer diagram in tikz-cd in LaTex

Can someone help me to draw a horizontal parallel arrows as a co-equalizer diagram in tikz-cd? An example of co-equalizer diagram is: Thanks in advance!
Kaythi
  • 81
8
votes
3 answers

Adjoint functors with tikz-cd

I'd like to construct diagrams such as , preferably with tikz-cd, but I've no idea where to start. Please help :) EDIT: This is what I have so far. \begin{tikzcd} \mathbf{C} \arrow[bend left=35]{r}[name=F]{F} & \mathbf{D}\arrow[bend…
Shaun
  • 293
7
votes
3 answers

usepackage{tikz-cd} vs usetikzlibrary{cd}

Is there a difference between using the package tikz-cd and using the cd tikz library and loading tikz directly? I can't find the answer in the documentation of either package.
7
votes
3 answers

Bent arrow under a node

Here is my problem. I am trying to get a bent arrow "go" under the CxExF node by breaking the long arrow into two parts. However, I would like the two parts to follow the same "path" as the long arrow. This means that I would need to move/shift…
geguze
  • 470
  • 2
  • 11
7
votes
2 answers

hooked and double-headed arrow in tikz-cd

In tikz-cd, I would like to combine hookleftarrow and two heads. It works just fine to write \arrow[hook, two heads]{r}, but if this arrow runs leftwards instead (with {l} instead of {r}) then the hook goes downwards instead of upwards, and…
6
votes
1 answer

Arrow with superscript in math mode and tikz-cd

I have two scenarios where I use arrows with a super-scripted asterisk: math mode and tikz-cd diagrams. I would like to be able to show such an arrow in both scenarios such that the arrows look the same, i.e., with respect to positioning of the…
6
votes
1 answer

Two labels up and down for same arrow

Starting from \documentclass[a4paper,12pt]{article} \usepackage{tikz-cd} \begin{document} \begin{tikzcd} A \arrow[r, "\alpha"] & B \end{tikzcd} \end{document} reading the guide of tikz-cd I found no reference on how to insert two labels above…
Sebastiano
  • 54,118
6
votes
1 answer

Different sized loops in tikzcd matrix

I have a matrix of numbers with arrows and loops. The trouble i'm having is some loops are of different sizes depending on which way the loop is oriented. Loops are defined with 60 degrees difference between the in and out position (with midpoint of…
Dunk the Lunk
  • 600
  • 4
  • 10
6
votes
2 answers

easiest way to normalize entry size in tikzcd

I've been drawing commutative diagrams using tikzcd in which one entry is dramatically larger than the others. I'd like for the entry sizes to be "normalized" somehow so the display is not too uneven and I want to be able to adjust them locally for…
1
2 3
12 13