I changed the commutative diagrams in a LaTeX document from xypic to tikz-cd. I must add that I also have some tikz diagrams with arrows (for example, Dynkin diagrams). Initially I had some problems matching the arrow tips for tikz diagrams and tikz-cd diagrams, but thanks to the comments bellow I was able to fix this.
My question now is how to globally set the arrow tips to something more agreeable (to me), for example with
\tikzset{>=Straight Barb}
(I am not sure about the names of the arrow tips)
Following the comments below I was able to get a minimal running example with the CM arrrow tips:
\documentclass{amsart}
\usepackage[usenames,dvipsnames]{xcolor}
\usepackage{tikz}
%\tikzset{>=latex}
\usepackage{tikz-cd}
\usetikzlibrary{arrows.meta}
\usetikzlibrary{matrix,arrows,decorations.pathmorphing}%
\tikzcdset{arrow style=tikz}
\begin{document}
\begin{equation*}
\begin{tikzcd}
A \arrow{r}{f} \arrow[two heads]{d}[swap]{x} & C\arrow[two heads]{d} \\
B \arrow{r}[swap]{g} & D
\end{tikzcd}
\end{equation*}
\bigskip
\begin{center}
\begin{tikzpicture}[scale=1.2]
\draw[red, thick,->] (2,0) -- (3,0);
\draw[thick,-] (2,0) -- (2,1);
\draw[thick,-] (2,0) -- (1,0);
\draw[thick,-] (2,0) -- (2,-1);
\draw[fill=red] (2,0) circle(.02);
\draw[red, thick,->] (2,0) -- (2.707,0.707);
\draw[red,thick,->] (2,0) -- (2.707,-0.707);
\draw[thick,->] (2,0) -- (1.293,0.707);
\draw[thick,->] (2,0) -- (1.293,-0.707);
\end{tikzpicture}
\end{center}
\end{document}
\documentclass
and ends with\end{document}
. I don't get an error using the preamble and the code you placed above it. That said, you can style the arrows intikz-cd
environments with\tikzcdset{arrow style=tikz, every arrow/.append style={red, thick}}
for example.\tikzcdset{arrows=-stealth}
?