4

I want to draw an arrow as an equals sign in a commutative diagram. This should be possible using the equal option provided by tikz-cd. As pointed out in Long equals in tikz, this produces a faint artifact at the ends of the path. There is a small dark edge.

Q: How do I fix this?

I'm stealing the example code from https://tex.stackexchange.com/a/121192/12871:

\documentclass[tikz,convert=false]{standalone}
\usepackage{tikz-cd}
\usetikzlibrary{arrows}
\tikzset{commutative diagrams/.cd,arrow style=tikz,diagrams={>=latex'}}
\begin{document}
\begin{tikzcd}[swap,bend angle=45]
A \dar{f} \rar{a} \ar[bend left,equal]{rr}
  & X \dar{g} \rar{r}
      & A \dar[swap]{f} \\
B \rar[swap]{i}   \ar[bend right,equal]{rr}
      & Y \rar[swap]{\beta}
          & B
\end{tikzcd}
\end{document}

commutative diagram with "equals" arrow

jmc
  • 1,660
  • I would use plain TikZ or TikZ with ‘matrix’ library instead of tikz-cd – Black Mild Apr 01 '20 at 09:07
  • 1
  • It's a bug of TikZ, not tikz-cd. 2. The default arrow of TikZ does not look similar to \rightarrow. With the default setting of tikz-cd they look indistinguishable. With the glyph math command-option they will be exactly the same.
  • – Symbol 1 Apr 02 '20 at 02:25