Error in Tikz-cd package

I am trying to draw the following commutative diagram.

I tried to start with the following commands,

\documentclass[12pt,a4paper,footinclude=true,headinclude=true,openany]{scrbook}
\usepackage{tikz-cd,amsmath}

\begin{document}
\begin{tikzcd}
D(T)=N(T)\oplus C_PT \arrow[l,shift left] [r]{www} & R(T)\oplus N(Q) \arrow [d]\arrow {r}& 1\\
& d &
\end{tikzcd}

\end{document}


But I am getting the following errors,

pgfkeys: I do not know the key '/tikz/l' and I am going to ignore it. Perhaps you misspelled it. \end{tikzcd}

Missing number, treated as zero \end{tikzcd}

pgfkeys: I do not know the key '/tikz/d' and I am going to ignore it. Perhaps you misspelled it. \end{tikzcd}

Questions:

1. How to correct these errors.

2. How to get the union symbol in that diagram in tikz-cd?

• I am getting other errors. Do you just compile that MWE above? \arrow[l,shift left] [r]{www} is wrong for sure. You are mixing different syntaxes here. This arrow has a left and a right specifier. Nov 30, 2015 at 12:23

1 Answer

I can not read everything in your screen-shot but it must be somthing similar to this:

% arara: pdflatex

\documentclass{scrbook}
\usepackage{tikz-cd}
\tikzset{%
symbol/.style={%
draw=none,
every to/.append style={%
edge node={node [sloped, allow upside down, auto=false]{$#1$}}}
}
}
\begin{document}
\begin{tikzcd}
z=Q(P)\oplus N(P) \arrow[symbol=\supset]{d}
& y=\overline{R(T)}\oplus N(Q) \arrow[symbol=\supset]{d}
& z=Q(P)\oplus N(P) \arrow[symbol=\supset]{d} \\
D(T)=N(T)\oplus C_P(T) \arrow{r}{T}\arrow[shift left]{d}{\widetilde{I-P}}
& R(T)\oplus N(Q) \arrow{r}{T^\dagger}\arrow[shift left]{d}{\widetilde{Q}}
& N(T)\oplus C_P(T) \arrow[shift left]{d}{\widetilde{I-P}} \\
C_P(T)=D(T) \cap N(P) \arrow{r}{\widetilde{T}}\arrow[shift left]{u}{i}
& R(T) \arrow{r}{\widetilde{T}^{-1}}\arrow[shift left]{u}{j}
& C_p(T)=R(T^\dagger T) \arrow[shift left]{u}{i}
\end{tikzcd}
\end{document}


• with your codes also i am getting this error pgfkeys: I do not know the key '/tikz/edge node' and I am going to ignore it. Perhaps you misspelled it. \end{tikzcd}@LaRiFaRi Dec 1, 2015 at 3:45
• I am woriking with tikz-cd.sty 2014/10/30 v0.9e Commutative diagrams with tikz tikz.sty 2015/08/07 v3.0.1a (rcs-revision 1.151) pgf.sty 2015/08/07 v3.0.1a (rcs-revision 1.15) pgfrcs.sty 2015/08/07 v3.0.1a (rcs-revision 1.31). Please check for differences to this by putting \listfiles in the beginning of your file! Dec 1, 2015 at 9:57