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
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
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
20 votes
1 answer
25k views

Labels in tikzcd?

For some reason the tikzcd documentation that comes with TeXLive says nothing about the following: How do I specify whether or not a label is below/above an arrow? How do I specify the size of ...
user avatar
19 votes
2 answers
4k views

How to put a square inside a commutative diagram?

How to put a square inside a commutative diagram as in the following picture: It would like to have a square in the following diagram: \documentclass[a4paper,12pt]{article} \usepackage{tikz-cd} \...
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
17 votes
1 answer
756 views

Does anyone have a script that will convert \xymatrix to tikzcd?

I have a long set of lecture notes where the commutative diagrams are written in xy using the \xymatrix format. I would like to switch over to tikz-cd. The syntax for the two are pretty similar with ...
user avatar
15 votes
4 answers
3k views

Can we rotate symbols in LaTeX? How should we make this diagram?

I would like to insert this diagram Into my LaTeX document. However, I don't know if it is possible at all to rotate symbols, and how they could fit into a diagram (notice that the \cong symbol has ...
user avatar
  • 559
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
14 votes
2 answers
5k views

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 ...
user avatar
13 votes
4 answers
948 views

Represent schematically using the tikz package a "commutative" diagram where two of the "arrows" are circular loops

Consider the diagram where the clockwise circular arrows indicate $M_{f^t}$ has a structure inherited from the structure of the R-module $\mathscr{D}_{n,k}[t]. I have tried to duplicate it as follows ...
user avatar
  • 265
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
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
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
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
12 votes
2 answers
5k views

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,...
user avatar
  • 255
12 votes
1 answer
235 views

Display problems with a tikz-cd diagram

I use tikz-cd package to construct a math diagram. Here is the code: \documentclass[12pt, a4 paper]{article} \usepackage[utf8]{inputenc} \usepackage{tikz-cd} \usepackage{amsmath} \usepackage{mathdots}...
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
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
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
11 votes
1 answer
2k views

Column alignment in tikzcd

I am not sure whether this is possible or not. I would like to have some control on the horizontal alignment of columns in tikzcd. In particular I would like to be able to mimic (on some of my ...
user avatar
  • 621
11 votes
1 answer
2k views

tikzcd and aligned, how to?

I have a problem when trying to make tikzcd and aligned environment coexist. In particular, when nesting an aligned inside a tikzcd, the alignment is completely wrong and pushed randomly to the right ...
user avatar
  • 621
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
10 votes
3 answers
2k views

Tikzcd pullback square issue

I have a tikzcd diagram \begin{center} \begin{tikzcd} F \arrow[r] \arrow[d] & * \arrow[d] \\ X \arrow[r, "f"] & Y \\ \end{tikzcd} \end{center} which looks like this: I wish to add a symbol ...
user avatar
  • 357
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
10 votes
2 answers
348 views

tikz-cd `shorten` in combination with `squiggly`

I want to draw a shortened squiggly arrow, like the following: However, when I use shorten in combination with squiggly, I get a strange effect, where the shortened segment is drawn both as squiggly ...
user avatar
  • 413
10 votes
1 answer
2k 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 ...
user avatar
  • 527
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
1 answer
330 views

Drawing partition in LaTeX

I want to draw partition lattice for n=4 like this I was looking for informations how to do it and i found package tikz-cd which i think could be useful but the only thing I managed to do by myself is ...
user avatar
10 votes
1 answer
2k views

How can I get symbols to appear in the middle of commutative diagrams using tikz-cd?

I'd like to get question mark symbols in the centre of my commutative diagrams, thus: \documentclass{article} \usepackage{tikz-cd} \begin{document} \[ \begin{tikzcd}[row sep=tiny] A \arrow{d}[swap]...
user avatar
10 votes
1 answer
954 views

Arrow with superscript in tikz-cd

I need my tikz-cd diagrams to have arrows (vertical and horizontal) that mimic \mapsto^* to match the relation in the text. The closest I've managed is to add a label {*} at [pos=1]: \documentclass{...
user avatar
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
9 votes
3 answers
2k views

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 ...
user avatar
  • 91
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
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
2 answers
3k views

Bending arrows in tikz-cd

Following the advice of LaRiFaRi in an answer to this question, I switched from XY-Pic to tikz-cd. The file below contains my diagram in XY-Pic and in tikz-cd. Please help me to make my diagram in ...
user avatar
8 votes
2 answers
226 views

Draw dephased exact sequence diagram

I was wondering whether there was a simple way to draw the following diagram, the problem is that I don't know how to draw three diagram dephased of a little bit with the elements under, not the ...
user avatar
8 votes
3 answers
2k views

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}...
user avatar
  • 271
8 votes
2 answers
3k views

\Mapsto in tikz-cd

I'm loving using tikz-cd to draw compiler correctness diagrams, but I can't manage to get quite the same arrows for relations that I'm using in the text. In particular, I'm not sure how to get \Mapsto ...
user avatar
8 votes
2 answers
19k views

How can I install the tikz-cd package on Ubuntu?

I have certain codes written in LaTeX with several diagrams in tikz-cd. I must compile these codes in other computer (with Ubuntu 12.04 LTS) and when I compile appear this error: tikz-cd.sty not ...
user avatar
  • 307
8 votes
1 answer
2k views

Beamer, tikz-cd: uncover does not work

I have a similar problem to this one, only I'm using tikz-cd instead of tikz. Here is a minimal example: \begin{frame} \begin{tikzcd}[ampersand replacement=\&] 1{\uncover<2->{\arrow{r}}}\&...
user avatar
8 votes
1 answer
3k views

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 ...
user avatar
  • 1,303
8 votes
1 answer
3k views

Enumerating tikz-cd diagrams

How can I enumerate diagrams made with tikz-cd? I mean, not only enumerate them but enumerate in order to quote them later in the document.
user avatar
  • 307
8 votes
1 answer
8k views

Adjunction symbol in commutative diagram

I'm writing about Category theory using tikz-cd and have a pair of adjoint functors, which is usually denoted by $F\dashv G$ I would like to have this \dashv symbol in a commutative diagram like ...
user avatar
  • 185
8 votes
1 answer
845 views

Commutative Diagrams with internal mappings

I'd like to produce a commutative diagram with mappings specified inside it, as follows: My rankly amateur efforts so far have centered on tikzcd with extra columns and rows, as in \usepackage{tikz-...
user avatar
7 votes
4 answers
799 views

Problem with a commutative diagram

I want to draw this diagram: And I have tried out the following code which is not working: \[ \begin{tikzcd} & E \arrow{r}{u} \arrow{dr}{$\pi$} & {E^'}\arrow{dl}{$\pi^'$}\\ &...
user avatar
  • 327
7 votes
4 answers
971 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 ...
user avatar
  • 235
7 votes
3 answers
1k views

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 ...
user avatar
  • 460
7 votes
3 answers
691 views

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.
user avatar

1
2 3 4 5
16