Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [tikz-cd]

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

6
votes
5answers
419 views

How to define multiple functions in the same diagram?

I want to write something like this: So far I tried with tikzcd, but I did not manage to give the arrows the right placement and length.
3
votes
2answers
70 views

Composition of natural transformations diagram

I'd like to draw a diagram with tikz-cd for a composition of natural transformations between functors that looked like the following The best I could do so far is given by the following code: \...
3
votes
1answer
58 views

Adjoint functors diagram

I'd like to improve the following diagram for a pair of adjoint functors: This is the code: \documentclass{article} \usepackage{amsmath,amssymb,tikz-cd} \begin{document} \[ \begin{...
6
votes
2answers
55 views

How to arrange commutative diagrams in displayed form

I would like to arrange the following three diagrams \[ \begin{tikzcd} Z\arrow[dr, "h", dashed]\arrow[drr, "g", bend left]\\ & X\arrow[r, "f"] & Y \end{tikzcd} ...
0
votes
0answers
19 views

Typing ordered pairs over arrows in a tikz-cd [duplicate]

When I try to type an ordered pair like (x,y) over an arrow in a tikz-cd I get the following error message: Missing \endcsname inserted. The code that works looks like this: \begin{tikzcd} ...
4
votes
3answers
71 views

Is there a way to “shrink” this tikzpicture?

I used a graphical editor to construct a some tikzcd diagrams, but I am looking for a way to "shrink" the diagram if possible, as they are quite wide, and aren't quite fitting on my pages. Any help ...
2
votes
2answers
48 views

equations in tikz commutative diagram

This question had good answers, here: equation label within commutative diagram and I thank everyone again. But the text is very sensitive to changes, so when I try to change what people suggested, ...
3
votes
4answers
55 views

node position in tikz-cd

I'd like to get the appended below commutative diagram by using tikz-cd. The source has been made in TeX, and the positioning of the nodes at the bottom row i.e. coker ker f and ker coker f have been ...
3
votes
1answer
33 views

Correct spacing in tikz-cd with kpfonts

Tikz-cd does not respect spacing correctly when used with kpfonts. Here is a MWE \documentclass{minimal} \usepackage{kpfonts} \usepackage{tikz-cd} \usepackage{amsmath} \begin{document} \begin{tikzcd} ...
0
votes
1answer
36 views

Filling in a square with custom sides

I have the following code which produces the boundary of a square with each side labeled with a certain kind of arrow. I want to fill the interior with a color, but when I add "fill=color" as an ...
2
votes
1answer
41 views

I need help restructuring some Tikz code

I am trying to render the commutative diagram below in such a way that the arrows u and v are reversed, but I'm not sure how to do that. Any help would be appreciated. \documentclass{standalone} \...
3
votes
2answers
45 views

arrow length and text placing to left in tikzcd

I am trying this: \documentclass[10pt]{article} \usepackage{amsmath,amssymb,tikz-cd} \begin{document} \begin{equation*} \begin{tikzcd}[row sep=huge] A \arrow[r, "aaa"] \arrow[d, "xxxx"] & ...
2
votes
2answers
185 views

can you help for diagram for in latex?

\begin{tikzcd} 3 \arrow[dr] & \\ 4 \arrow[r] & 2\arrow[dr] & \\ 1 \end{tikzcd} could you help me? how do yo writting latex?
2
votes
1answer
19 views

Check if mmode Command Doesn't Work in Tikz-cd environment

I have a command that allows me to write \terminal in math mode and it print in its bb-bold style, but also allows me to call it in text mode as \terminal (as opposed to \(terminal\) or whatever). The ...
0
votes
1answer
49 views

Diagram of objects in latex

I'm trying to write a code for some diagram, but it does not work. \begin{tikzcd} Z\arrow[lu]\arrow[lu]\arrow[lu]\\ X \arrow[r]& Z^{"} & \arrow[l] Y \\ Z^{'} \arrow[rd] \arrow[rd] \...
2
votes
1answer
27 views

How to test alignment of tikzcd nodes?

I have the following diagram in tikzcd: Generated by this MWE: \documentclass[border=1cm]{standalone} \usepackage{tikz} \usetikzlibrary{cd} \begin{document} \begin{tikzcd} &&& \...
4
votes
1answer
64 views

Commutative diagram using TikZ

\begin{tikzcd} A \arrow{rr}\arrow{dr} & & B \arrow{rr}\arrow{dl} & & C \\ & D \arrow{dr} \\ ...
4
votes
2answers
78 views

Dashed hook right arrow

I'd like to use a dashed hook right arrow instead of a classic one in my LaTeX document, but I don't know how to create one. MWE: \documentclass[a4paper]{article} \usepackage[T1]{fontenc} \usepackage[...
1
vote
1answer
48 views

Tikz-cd arrow bending and loop for indicating that portion of diagram commutes

I am trying to get the arrow from $R$ to $R[x]$ to cooperate with me and go alongside the LHS of the picture. Here is my MWE: \begin{tikzcd} & R \arrow[d, "f"] \arrow[ld, "\phi"', hook'] \...
5
votes
4answers
131 views

Linebreak inside label - tikzcd package

I am using tikzcd. I want to use line breaks within the label of the arrows. Naively, I thought that \begin{tikzcd} A \arrow[d, "label 1 \\ label 2"] \\ B \end{tikzcd} would work. But it gives ...
2
votes
1answer
28 views

label shifting behavior in tikz vs tikz-cd

I have a tikz picture that has labels, and the labels are in the correct place. However when I put the {tikzpicture} inside a {tikzcd} environment, the position of the labels shifts noticeably up, and ...
1
vote
1answer
23 views

Commutative diagramm (tikzcd) in margin

The following example gives me an error \documentclass[12pt,oneside]{report} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage[french]{babel} \usepackage[a4paper, inner=...
6
votes
2answers
92 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} &...
3
votes
3answers
85 views

How to modify a tikz-cd diagram by changing the placement and length of arrows

Consider the following code for a commutative diagram, followed by the output. \documentclass{amsart} \usepackage{tikz-cd} \begin{document} \[ \begin{tikzcd} A \arrow[r, leftrightarrow, "\alpha"] \...
4
votes
1answer
55 views

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 ...
0
votes
1answer
21 views

Using command with optional arguments inside tikzcd arrows

I have defined a command for the jacobian matrix, such as follows \newcommand{\Jacobian}[2][]{\operatorname{J}_{#1}{#2}} The problem comes if I try to use it inside a tikzcd arrow, probably because ...
5
votes
2answers
255 views

How to use tikzmark inside tikz-cd?

I want to use tikzmark in tikzcd. However, even the following sample returns errors \documentclass{article} \usepackage{amsmath} \usepackage{tikz-cd} \usetikzlibrary{tikzmark} \begin{document} \...
2
votes
2answers
88 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 ...
2
votes
1answer
50 views

Arrows between tensor products

An arrow between tensor products $A\otimes B\to C\otimes D$ is determined by its components $A\to C$ and $B\to D$. Hence it seems natural to represent such an arrow by a pair of arrows. My question ...
3
votes
1answer
49 views

Overlapping arrow and twisted labels in tikz-cd

The tikz-cd code \documentclass[standalone]{standalone} \usepackage{amsmath,mathtools} \usepackage{amsfonts} \usepackage{tikz} \usepackage{caption} \usetikzlibrary{arrows} \usetikzlibrary{cd} \...
5
votes
2answers
122 views

Using tikz-cd the labels are not centered and arrows done not come together

Using tikz with tikzcd the: label on the arrow are not centered, see those that sloped. When arrow split ans come back together the distance between the end points are not equal. How do you solve ...
1
vote
2answers
39 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} \...
1
vote
1answer
65 views

Downward Rightarrow for natural transformation, tikzcd

I am pretty sure this is out there on this site, but I did not find it after searching. How to draw a downward \Rightarrow in a commutative tikzcddiagram?
1
vote
1answer
38 views

Alignment in tikzcd

I want use this options: \arrow[d, start anchor={[xshift=0.35cm]south west}, end anchor={[xshift=0.35cm]north west}] but it is a very long code. Is there a way in order to have a ...
0
votes
1answer
52 views

How do I latex the following diagram in the tikz-cd environment?

I am a little new to the tikz-cd commutative diagram package. How would I latex the following diagram in the tikz-cd environment? Thanks in advance!
4
votes
1answer
169 views

Commutative diagrams and arrows

I'm trying to make a commutative diagram with tikzcd. Here's what I get: I want the hook from B to A to be upside down and the /simeq symbol over the arrow from C to D. Sample code: \documentclass[...
-1
votes
1answer
56 views

Tikzcd. How to align on left?

I need to align the output on the left instead to be centered. Someone can help? Code: \begin{tikzcd}[arrows = dash, row sep = 0.5cm] F[\,x\,] \arrow[d] \\ F_n[\,x\,] = f \in \F[\,x\,] \td deg \ f ...
3
votes
2answers
99 views

Naming diagrams drawn with tikz-cd

I have this commutative diagram: \begin{equation*} \begin{tikzcd} A\arrow[r,"a"]\arrow[d,"a"]&A\arrow[d,"a"]\\ A\arrow[r,"a"]&A \end{tikzcd} \end{equation*} I want to name the diagram with ...
0
votes
1answer
195 views

How to install Tikz-cd on MikTex

I have to use tikz-cd package to draw triangular commutative diagram. I have downloaded the tikz-cd package and put the file.sty in the same folder where I have the latex file. Then I wrote \...
1
vote
1answer
98 views

Labelling a dotted arrow in tikz

I wrote the following code, trying to get a commuting triangle with one of the arrows being dotted. \begin{tikzcd}[column sep=1.5em] S \ar{dr}{f} \ar{rr}{m} && Y\arrow[dl,dotted]{g} \\ &...
3
votes
1answer
45 views

Tikzcd: set description option in labels of arrows as default

I want all arrows in my tikzcd diagrams to have labels over them, as in the example below. \documentclass{article} \usepackage{tikz-cd} \begin{document} \begin{tikzcd}[sep = large] T \arrow[drr, ...
1
vote
1answer
49 views

Can tikzcd nodes be placed automatically in displaystyle?

I've been converting from xy-pic over to tikz-cd. One thing I liked about xy-pic is that if I include in my file \let\objectstyle=\displaystyle then all of the nodes in my xymatrix diagrams are ...
2
votes
1answer
53 views

Macros running within cells of tikzcd, but to be (partially) executed later

The \arrow functionality in tikz-cd is placed in a given cell, and uses the position of that cell, although execution of the code itself (if I'm understanding correctly) is deferred until after the ...
3
votes
2answers
52 views

Tikz-cd commutative diagram not compiling?

Why is the following tikz-cd commutative diagram not compiling? It is giving me an error in the line \mathbb{R} \arrow{ru}{\phi\circ E^{-1}}. \begin{tikzcd}[column sep=large, row sep=large] \...
1
vote
0answers
28 views

Error with tikz-cd [duplicate]

Compiling this code \documentclass[a4paper,12pt,twoside]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage[ngerman,english]{babel} %MATHEMATICS \usepackage{mathbbol} \...
2
votes
1answer
57 views

Using independent column alignments in two rows of a tikz-cd environment?

I have a sequence (of inclusions) that is too long for a single row, so I am forced to split it into two rows. The upper row contains 4 smaller objects (and 1 big one), while the lower row contains 3 ...
7
votes
1answer
258 views

“equal” arrows without transparent ends possible in tikzcd?

It appears that tikzcd puts a transparent, but visible vertical line at both ends of an \arrow[equal] like this: I find this somewhat irritating and would like to know if it is possible to make ...
0
votes
0answers
43 views

I want to write matrices in diagram.help me [duplicate]

I have drawn the diagram but I can not make the matrices \documentclass[margin=3mm]{standalone} \usepackage{amsmath,mathtools} \usepackage{tikz-cd} \begin{document} \begin{tikzcd} k^2 &&...
0
votes
3answers
116 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} $$ `
3
votes
2answers
283 views

Cannot understand why: ! Missing \endcsname inserted

I am trying to insert in a file the following diagram and keep getting an error I do not understand despite reading through tikz-cd documentation. Any hint? \documentclass[10pt,a4paper,...