The "equal" key from the tikz-cd package comes with rendering issues on the screen. In particular, they do not look the same on all zoom levels, and sometimes there are grey lines at the beginning or end of the arrow. This may not happen in all PDF readers.
In order to fix this, I would like to replace these arrows with two single arrows. This gets rid of the problem:
\documentclass{standalone}
\usepackage{tikz-cd}
\begin{document}
$
\begin{tikzcd}
A \arrow[r,equals] & B
\end{tikzcd}
\begin{tikzcd}
A \arrow[r,dash,shift left=.1em] \arrow[r,dash,shift right=.1em] & B
\end{tikzcd}
$
\end{document}
yielding
where the PNG file was obtained from the LaTeX'ed PDF by
convert -density 300 tikzcd-equals.pdf -quality 100 -background white \
-alpha off tikzcd-equals.png
Questions:
Is this a reasonable approach to fix this problem?
The distance between the two lines is 0.2 em which is just an educated guess. Is there a way to obtain the correct distance for shifting, i.e., half the distance between the two lines in a
=in the current font? I know that tikz-cd internally uses the tikz keydouble equal sign distance, but I do not know how to extract the appropriate dimension for shifting.How can I make this into a tikz-cd style
myequalsuch that I can simply useA \arrow[r,myequal] & Bfor the second diagram?
P.S.: This problem has been discussed, but not solved, in the comments of Equalities look “broken” with tikz-cd and “math font”.


equalkey. – Alexander Körschgen Jan 09 '18 at 16:57