Home > tikz pgf > Help formatting a commutative diagram in TikZ

# Help formatting a commutative diagram in TikZ

April 15Hits:2

I need some serious help getting this commutative diagram to look presentable. I've been messing around with it for literally weeks and this is the best I've got.

The only suppression that I could accept is swapping $H^{n-p}(F)$ for a suppression like $\mathcal{F}$. The code is:

$\begin{tikzpicture}[scale=1.5] \node (sa) at (0,5) {\ldots}; \node (sb) at (4,5) {\ldots}; \node (a1) at (0,4.3) {\mathop\bigoplus\limits_{p = 0}^n [H^p(U\cup V) \otimes H^{n-p}(F)]}; \node (a2-1) at (-.12,3.3) {\mathop\bigoplus\limits_{p = 0}^n [(H^p(U)\otimes H^{n-p}(F)}; \node (a2-2) at (0,3) {\oplus}; \node (a2-3) at (.16,2.7) {(H^p(V)\otimes H^{n-p}(F))]}; \node (a3) at (0,1.7) {\mathop\bigoplus\limits_{p = 0}^n [H^p(U\cap V)\otimes H^{n-p}(F)]}; \node (a4) at (0,.7) {\mathop\bigoplus\limits_{p = 0}^n [H^{p+1}(U\cup V) \otimes H^{n-p}(F)]}; \node (b1) at (4,4.3) {H^n(\pi^{-1}(U\cup V))}; \node (b2-1) at (4,3.3) {H^n(U\times F)}; \node (b2-2) at (4,3) {\oplus}; \node (b2-3) at (4,2.7) {H^n(V\times F)}; \node (b3) at (4,1.7) {H^n((U\cap V\times F))}; \node (b4) at (4,.7) {H^{n+1}(\pi^{-1}(U\cup V))}; \node (ea) at (0,0) {\ldots}; \node (eb) at (4,0) {\ldots}; \path[->,font=\scriptsize,>=latex] ([xshift=5pt]sa.east) edge node[above]{\Psi} ([xshift=-5pt]sb.west) (a1) edge node[above]{\Psi} (b1) ([xshift= 36pt]a2-2.east) edge node[above]{\Psi} ([xshift= -20pt]b2-2.west) (a3) edge node[above]{\Psi} (b3) ([xshift=5pt]ea.east) edge node[above]{\Psi} ([xshift=-5pt]eb.west) (a4) edge node[above]{\Psi} (b4) (sa) edge ([yshift= -3.6pt]a1.north) ([yshift=5pt]a1.south) edge node[left]{\delta} ([xshift= 3.43pt,yshift=-4pt]a2-1.north) ([xshift= -4.55pt]a2-3.south) edge node[left]{\gamma} ([yshift=-3.6pt]a3.north) ([yshift= 5pt]a3.south) edge node[left]{d^*} ([yshift= -3.6pt]a4.north) ([yshift= 5pt]a4.south) edge (ea) (sb) edge (b1) (b1) edge node[right]{\delta} (b2-1) (b2-3) edge node[right]{\gamma} (b3) (b3) edge node[right]{d^*} (b4) (b4) edge (eb); \end{tikzpicture}$ 


Here's a possibility with tikz-cd; the Psi labels would better be aligned, though; there should be a way!

\documentclass{article}
\usepackage{amsmath,mathtools}
\usepackage{tikz-cd}

\begin{document}

$\newcommand{\sbop}{\mathop{\textstyle\bigoplus}\limits} \begin{tikzcd}[column sep=6em,row sep=large] \cdots \arrow[r,"\Psi"] \arrow[d] & \cdots \arrow[d] \\ \smash{\sbop_{p = 0}^n}\, [H^p(U\cup V) \otimes H^{n-p}(F)] \arrow[r,"\Psi"] \arrow[d,swap,"\delta"] & H^n(\pi^{-1}(U\cup V)) \arrow[d,"\delta"] \\ \begin{multlined} \smash[t]{\sbop_{p = 0}^n}\, [(H^p(U)\otimes H^{n-p}(F) \\ \oplus (H^p(V)\otimes H^{n-p}(F))] \end{multlined} \arrow[r,"\Psi"] \arrow[d,swap,"\gamma"] & H^n(U\times F) \oplus H^n(V\times F) \arrow[d,"\gamma"] \\ \smash{\sbop_{p = 0}^n}\, [H^p(U\cap V)\otimes H^{n-p}(F)] \arrow[r,"\Psi"] \arrow[d,swap,"d^*"] & H^n((U\cap V\times F)) \arrow[d,"d^*"] \\ \smash{\sbop_{p = 0}^n}\, [H^{p+1}(U\cup V) \otimes H^{n-p}(F)] \arrow[r,"\Psi"] \arrow[d] & H^{n+1}(\pi^{-1}(U\cup V)) \arrow[d] \\ \cdots \arrow[r,"\Psi"] & \cdots \end{tikzcd}$

\end{document}



## Related Articles

• ### Help formatting a commutative diagram in TikZApril 15

I need some serious help getting this commutative diagram to look presentable. I've been messing around with it for literally weeks and this is the best I've got. The only suppression that I could accept is swapping $H^{n-p}(F)$ for a suppression lik

• ### How do I draw parallel arrows in commutative diagrams with TikZ?December 15

How do I draw two parallel arrows having the same domain and the same codomain in a commutative diagram with TikZ? For that matter, how do I draw any sort of parallel paths between two nodes? Do I need to explicitly shift the two paths myself? And if

• ### How to draw labeled parallel arrows in commutative diagram with TikZ?March 16

I want to draw labeled parallel arrow in commutative diagram with TikZ, I searched on google and Tex Stackexchange, however, I found only the method to draw parallel arrow by transform canvas only, I tried to add the labeled but it failed. Here is my

• ### How to draw commutative diagrams in TikzMay 21

One of my friends can draw simple commutative diagrams in TikZ but he cannot draw this one: I am not an expert in TikZ so I was wondering if someone could help with drawing this one in TikZ. --------------Solutions------------- A solution with names

• ### Graphs in commutative diagrams in TikZOctober 28

I want to draw a diamond shape commutative diagram using tikz. Instead of just letters I want to have simple graphs (just edges and vertices) in the diagram. I tried some stuff but the diagram still looks superugly. Is there any way to make this look

• ### Isomorphisms in commutative diagrams in TikZFebruary 13

Sorry for the basic question. I am trying to get commutative diagrams like \usepackage{tikz} \usetikzlibrary{matrix,arrows} \begin{tikzpicture}[description/.style={fill=white,inner sep=2pt}] \matrix (m) [matrix of math nodes, row sep=3em, column se

• ### Commutative Diagrams and TikZFebruary 25

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. --------------Solutions------------- Here's a start diagram for you: We use a matrix for the positioning of t

• ### problem making a commutative diagram in tikz using positioning libraryMarch 19

I am using the positioning TikZ library to make a commutative diagram. I am having trouble getting the bottom arrow to be horizontal. Here is the output with my problem: the positioning library is on the left, and the output I thought I should get (d

• ### Creating macros for common commutative diagrams in tikzApril 30

I am currently typesetting a document which requires many commutative diagrams of the same shape and construction, but with different labels at the vertices and edges. For example, I want a commutative diagram which describes the associative structur

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

I'd like to get question mark symbols in the center of my commutative diagrams, thus: \documentclass{article} \usepackage{tikz-cd} \begin{document} \[ \begin{tikzcd}[row sep=tiny] A \arrow{d}[swap]{\beta} & K_h \arrow{l}[swap]{\pi'} \arrow{d}[swap]{\

• ### Creating triangle commutative diagram with tikz-cdJuly 14

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? Everything I've tried just causes errors. Here's my current

• ### Positioning arrows in commutative diagrams using TikZ-cd (or otherwise)?November 28

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 tails and heads go. For instance, I have the foll

• ### Getting commutative diagrams in TikZ to workJune 30

I'm new to making documents in LaTeX, though I've used just math mode for a while. I've installed texlive-core via texlive-most from the Arch repositories and rendered a few basic documents. However, when I try to render this (taken verbatim from her

• ### Making arrows parallel in commutative diagram in TikzFebruary 3

I would simply like to make all the arrows that should be parallel in my commutative square, actually parallel. Here is my diagram: The outer square displays functions from the displayed domains and codomains. The inner square (the problem square) di

• ### Scaling a tikz-cd commutative diagram in TikZ?October 15

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} \usepackage{tikz-cd} \usetikzlibrary{matrix} \begin{

• ### How to draw straight lines between nodes in commutative diagram without using TikZ matrix library?June 19

I want to draw a commutative diagram with TikZ as follows: \usepackage{tikz} \usetikzlibrary{positioning} \begin{tikzpicture}[auto] \node (S1) {$\sigmaSet \cap X_N$}; \node (S2) [below= 2cm and 4cm of S1] {$\sigmaSet \cap X_N$}; \node (S3) [below= 2c

• ### Problems with Beamer and diagrams in TikzJune 18

I did a commutative diagram with tikz in the article class and everything works. The next code is the MWE in article class. \documentclass{article} \usepackage{tikz} \usetikzlibrary{matrix} \begin{document} \begin{center} \begin{tikzpicture} \matrix(

• ### Commutative diagram with curved arrowOctober 19

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{tikzpicture} \node (E) at (0,0) {$T_V U$}; \node[right=o

• ### Tikz for Commutative DiagramsApril 9

I need to use tikz package because of the quality of commutative diagrams it produces as I've seen in some manuals. I've tried it severally but all to no avail. I'm using MiKTeX with TeXmaker editor on windows. The MiKTeX was installed last year sept

• ### Commutative diagrams side by side using tikzMarch 21

How can I put two commutative diagrams besides each other using the tikz package? \documentclass{article} \usepackage{tikz} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsthm} \usepackage{dsfont} \begin{document} \begi