Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [commutative-diagrams]

Questions regarding the creation of commutative diagrams. Use this tag if you can't find a more specific tag for one of these packages: https://www.ctan.org/topic/diagram-comm

Filter by
Sorted by
Tagged with
19 votes
5 answers
17k views

Commutative Diagrams and TikZ [duplicate]

I wish I knew how to draw the this commutative diagram with the TikZ package. I would also like to know how to put subtitles in the diagram.
MathOverview's user avatar
  • 2,941
19 votes
4 answers
2k views

Line is not perfectly horizontal in Commutative Diagram in Tikz

I ran into an issue today, while rendering a simple diagram with Tikz. The horizontal line in the following picture is ever so slightly lower on the right hand side than on its left. Adding a ...
Stefan Mesken's user avatar
19 votes
3 answers
5k 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} \...
Constantin K's user avatar
11 votes
1 answer
584 views

Paul Taylor's diagrams.sty NEVER HAPPEN error

I am a tikz-cd user trying to render a document that uses diagrams.sty. I am getting the error "THIS (S) SHOULD NEVER HAPPEN" when running the minimal example below in Overleaf (and locally ...
User371's user avatar
  • 215
11 votes
2 answers
5k 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} \...
Oromis's user avatar
  • 213
9 votes
1 answer
15k views

How to make a commutative diagram using {tikz-cd}? [duplicate]

I want to make a commutative diagram which looks like: I tried the following code: \begin{tikzcd} A\arrow[r,"\phi_n"] \arrow[d,swap,"\text{id}"]& A_n \arrow[dl,swap,"\psi_n"] \arrow[dr,"\...
tattwamasi amrutam's user avatar
8 votes
4 answers
3k views

Drawing non-trivial commutative diagrams?

I am trying to draw the following mathematical diagram (see attached). If all the elements were in an array style figure I would be fine with the usual \begin{array} etc. However the arrows from the \...
AngusTheMan's user avatar
8 votes
2 answers
272 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 ...
jacopoburelli's user avatar
8 votes
2 answers
3k views

tikz Commutative Diagrams - Compiling and Best Practice

Newcomers wanting to use TikZ to create commutative diagrams face a varied (non-uniform) approach. I found this simple method to create a commutative diagram: \documentclass{article} \usepackage[...
STP's user avatar
  • 125
7 votes
6 answers
2k views

Pentagram Diagram

Can somebody help me make this commutative diagram look more aesthetic? % compile with LaTeX \documentclass{article} \usepackage{pictexwd,dcpic} \begin{document} \begindc{\commdiag}[500] \obj(0,0){...
Nicolas Bourbaki's user avatar
7 votes
4 answers
876 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^'$}\\ &...
Partha's user avatar
  • 327
7 votes
2 answers
2k views

tikzcd: how to position a node in the center of two other nodes

I'm trying to draw a commutative diagram that looks similar to the following: ...except that I want the two arrows $1 \times \tilde{I}$ and $\tilde{m}$ to be on the same line and the node $\tilde{G} \...
pamplemousse's user avatar
7 votes
1 answer
978 views

Commutative diagram for modified cube

I want to draw the attached diagram of a modified cube for a tex document using tikz-cd package, but modifying from the command for a cube does not seem to work here. Any suggestions appreciated. ...
mm_90's user avatar
  • 131
6 votes
3 answers
2k views

Arrow fat at one end, narrowing at the other end

I can find fat arrows and thin arrows, I can find fancy curly arrows that start thin and get fat, All I want is a basic arrow that is thick at the origin, and thin at the other end, indicating that we ...
MairAW's user avatar
  • 128
6 votes
4 answers
828 views

Labelling arrows drawn to paths in tikz-cd

I'm trying to draw a (commutative) diagram using tikz-cd. The package manual, in section 3.2, describes how to use to path for fine-grained control of the shapes of arrows, but says little on how to ...
chsk's user avatar
  • 3,677
6 votes
3 answers
1k views

How to plot the commutative triangle diagram in Tikz?

I want to draw the following commutative diagram in latex (tikz). I have tried the following code: \begin{tikzcd} A \arrow{rr}{f} \arrow[swap]{dr}{g} & & B \arrow{ur}{h} \\[10pt] &...
learner's user avatar
  • 673
6 votes
2 answers
2k views

Commutative diagrams side by side have different sizes

Within the statement of a theorem, I have two commutative diagrams. I am trying to use pb-diagram to create them and I would like them to be side by side. Unfortunately the size of the commutative ...
Aru Ray's user avatar
  • 173
6 votes
3 answers
542 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} ...
Vladimir's user avatar
  • 343
6 votes
1 answer
2k views

How do I change the distance between a label and its arrow in tikzcd?

I am using tikzcd to make a fairly complex diagram and would like to have the labels on arrows closer to the arrows they are associated with in order to remove ambiguity. Here is what I have currently:...
Abe Schulte's user avatar
6 votes
1 answer
8k views

Text above isomorphism symbol

When writing that two objects are isomorphic, I use X \cong Y. Sometimes however, it is necessary to specify the type of isomorphism in question. I wish to do this with text above/below the ...
Matt's user avatar
  • 387
6 votes
2 answers
249 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 ...
Fredrik Bakke's user avatar
6 votes
2 answers
737 views

How to draw a commutative cube diagram with colored faces with a small upper-right corner x-y-z axis

I am looking for a package where I can draw this vertix-and-edge-labelled commutative cube diagram with colored (and labelled) bottom (grey) and top (striped grey) faces with a small upper-right ...
StudentType's user avatar
6 votes
3 answers
285 views

Problems with special arrow shaft in xypic

I'm trying to draw a diagram my teacher drew on the blackboard to summarize divisibility relationships and I just can't get it right. Here is my best attempt: \documentclass[a4paper]{report} \...
MickG's user avatar
  • 5,426
6 votes
1 answer
1k views

Multiple Commutative Diagrams

I need to make two commutative diagrams (I am using the CD environment) in the same line (I mean not one above the other) can anyone give me an idea?
Dimitri's user avatar
  • 545
6 votes
2 answers
327 views

How do I ensure that edges of a TikZ cube are parallel?

I sometimes find myself typesetting commutative cubes using TikZ. Here is my code. \documentclass{article} \usepackage{tikz} \usetikzlibrary{matrix} \tikzset { over/.style={preaction={draw=white,...
Karol Szumiło's user avatar
5 votes
5 answers
684 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.
klirk's user avatar
  • 455
5 votes
3 answers
1k views

label a part of commutative diagram

\documentclass[12pt,reqno,a4paper]{amsart} \usepackage{extsizes} \usepackage{blindtext} \textheight 9.3in \textwidth 6.5in \calclayout \usepackage{amsmath,amsthm,amsfonts,amssymb} \usepackage{hyperref}...
Praphulla Koushik's user avatar
5 votes
4 answers
678 views

How to create well-aligned, clean structure to define a function (mathematics)?

I am new to Latex. I am aiming to define a function appropriately using latex, that is to first define the sets, e.g. $f:X \to Y$ and then how the elements map into the image, i.e. $x \to f(x)$. I ...
user9078057's user avatar
5 votes
4 answers
3k views

Arrows for morphisms of exact sequences

I'm trying to figure out a good way to use LaTeX to draw the following diagram (snapshot image from a document). The closest I could come to this is using the following code: \begin{align} \begin{...
leastaction's user avatar
5 votes
3 answers
573 views

Diagram for Limit

I want a diagram that looks like the one found here, This is my attempt: \[ \begin{tikzcd} [column sep = large] N \arrow[d, "u"] \arrow[ddr, "q_j"] \arrow[ddl, "q_k"] \\ \mathcal{A} \arrow[dr, ...
user7090's user avatar
  • 161
5 votes
2 answers
448 views

Punctuation in commutative diagrams

I'm using many commutative diagrams in my notes and I'm trying to punctuate them, as any other mathematical object. Now I have two questions on how to achieve the right punctuation. When the period is ...
Luis Turcio's user avatar
  • 2,759
5 votes
2 answers
497 views

This tikz-diagram has crooked arrows

Consider the diagram arrows in the following example: \documentclass[a4paper,10pt,psamsfonts]{amsart} \usepackage[utf8x]{inputenc} \usepackage[T1]{fontenc} \usepackage[english]{babel} \usepackage{...
shuhalo's user avatar
  • 2,545
5 votes
2 answers
257 views

Draw right triangular commutative diagram

I was wondering how to draw the commutative diagram of the following figure. The closest I could get from previous posts is given in the code below, but it is not quite right. \documentclass{article} ...
AEW's user avatar
  • 819
5 votes
2 answers
265 views

How can I align the vertical arrows?

I am trying to make the following diagram compact and aligned for aesthetic reasons. \documentclass[11pt]{article} \usepackage{tikz} \usepackage{amsmath} \usepackage{amssymb} \usepackage{tikz-cd} \...
MrPajeet's user avatar
  • 673
5 votes
2 answers
184 views

Automatically stretching non-default arrows in tikz-cd

Can I make a non-standard arrow stretch automatically? I'm hoping not to have to apply a \scalebox manually every time. Approach to generating non-standard symbols is taken from here. Code \...
mjc's user avatar
  • 745
5 votes
3 answers
360 views

Aligning object in a commutative diagram

MWE: \documentclass[a4paper]{article} \usepackage{amsmath} \usepackage{amssymb} \usepackage{tikz-cd} \usepackage{faktor} \begin{document} I'd like the first line of the following diagram to be ...
Lele99_DD's user avatar
  • 588
5 votes
4 answers
1k 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 ...
Martino's user avatar
  • 1,400
5 votes
2 answers
830 views

Numbering rows in array environment

I would like to (use the \label - \ref mechanism to) number as equations the first and third rows in the following diagram: \documentclass[10pt]{article} \usepackage{amsmath} \usepackage{amsfonts} \...
suitangi's user avatar
  • 799
5 votes
2 answers
3k views

Commutative diagram with curved arrow

I want to get a bent arrow from node A to node E, this is my code: \usepackage{tikz-cd} \usetikzlibrary{cd} \usepackage{tikz} \usetikzlibrary{positioning} \begin{document} \begin{center} \begin{...
MrPajeet's user avatar
  • 673
5 votes
2 answers
695 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} \...
fdzsfhaS's user avatar
  • 259
5 votes
1 answer
658 views

Tikzcd "Crossing Over" Background Color?

I'm making a Tikzcd diagram but I wanted to add color to the background of my document like so: However, there's clearly an issue with the middle diagram. In the middle diagram, I wanted to make ...
trujello's user avatar
  • 607
5 votes
1 answer
2k views

Short exact sequences stemming from a long exact sequence with tikz

Does something exist, preferrably with tikz, but anything really that generates the diagram I think it would be extremely insightful to how short exact sequences are related. I would rather not re-...
Relative0's user avatar
  • 831
5 votes
1 answer
2k views

Location of Labels with Crossing Arrows in Commuative Diagrams with tikzcd

I want to add a commutative diagram and started using tilkcd today, but having a trouble with the location of labels attached to an arrow when two arrows cross over with each other. Here's a ...
Taxxi's user avatar
  • 459
5 votes
1 answer
2k views

Commutative Diagram (Homological Algebra)

I am having a hard time with the following commutative diagram. Mostly, I am not sure how to align the middle row correctly. Currently this is my best attempt. I cannot get the code to compile upon ...
akgjh's user avatar
  • 161
5 votes
1 answer
1k views

Adjusting arrows in a commutative diagram with tikzcd

I'm trying to type the following diagram with tikzcd: I end up with by the following codes: \documentclass{article} \usepackage{tikz, tikz-cd} \usetikzlibrary{matrix,decorations.pathmorphing,arrows}...
user avatar
5 votes
1 answer
333 views

Adding elements on the surfaces of a cubic diagram

Thanks to this answer here; I can draw a nice cubic diagram as bellow: with the following code: \documentclass{standalone} \usepackage{tikz-cd} \begin{document} \begin{tikzcd}[ row sep=...
qartal's user avatar
  • 251
4 votes
2 answers
986 views

Drawing a commutative diagram [duplicate]

There several codes for commutative diagrams, but I could not find any code for the following diagram:
user118746's user avatar
4 votes
2 answers
1k views

LaTeX code for commutative diagram

Kindly provide me LaTeX code for this and if possible the circles in each of the boxes saying the diagram is commutative. For one commutative diagram I have the code \xymatrixrowsep{10mm} \...
user avatar
4 votes
3 answers
376 views

How can I put the arrow with the 0 in this diagram?

Here is the diagram I want to draw: I got a help on drawing the following from here : \documentclass{article} \usepackage{tikz} \usetikzlibrary{cd} \begin{document} $$\begin{tikzcd} &...
Smart20's user avatar
  • 227
4 votes
1 answer
436 views

Want to draw this commutative diagram [duplicate]

Not a pro in Latex, struggling to draw this commutative diagram. Any help is appreciated.
Partha's user avatar
  • 327

1
2 3 4 5
7