The problem
The tikz/double
option which is used by tikz/commuting diagrams/Rightarrow
internally creates a wide black line and a slightly less wide white line on top of it to display what looks like a double stroked path (see pgf manual, /tikz/double=
). This causes (at least) two types of visual glitches. Notably, several viewers do not display both "strokes" of the path on all zoom levels, as the white part sometimes completely overrides the black path (discussed here, see also the screenshot below). Furthermore, there is a spurious horizontal line at the tail and before the head of the arrow (discussed here):
Question
In a more general sense, the question would be "What is the best way to fix these issues?"
(Originally, there were some specific questions here on an attempted fix. The solution described below implements a more general solution to the problem, rendering the original questions obsolete. See also the discussion on Github for some context.)
\documentclass
, includes all relevant\usepackage
commands, ends with\end{document}
and compiles without errors, even if it does not produce your desired output.rounded corners
if the specified radius is too big or the line segments are too short. You can't catch all weird things that could happen (PGF isn't CAD). I believe for most cases (and especially CDs) this accomplished a lot already.nfold
might come in handy.