When making commutative diagrams, I prefer using tikz-cd with the arrow style=math font option, in order to let the arrow tips match that of the document font, which is kpfonts in the below MWE. That sometimes works fine and sometimes breaks, like in the below example, where the equality signs look “broken,” both on screen and print.
Removing the option math font yields the following. Now the equalities look just fine, but the arrow tips do not match the kpfonts arrows anymore. Can this somehow be fixed, for instance by letting the arrows use the math font option, but not the equalities? So far, I have only been able to switch the two options globally.
\documentclass{article}
\usepackage{amsmath,kpfonts,tikz-cd}
\tikzcdset{arrow style=math font}
\begin{document}
\begin{tikzcd}[row sep=small]
H_n(S^n)
\arrow[r,"i_*"]
\arrow[d,equal]
& H_n(X)
\arrow[r,"q_*"]
\arrow[d,equal]
&
H_n(X/S^n)
\arrow[d,equal]
\\
\mathbb{Z}
&
\mathbb{Z}/m
&
0
\end{tikzcd}
\end{document}




PDFkitrenderer (used in preview.app, skim,…), cause those artefacts look quite familiar to me :D As far as I know there is nothing you can do about that, except using a different pdf viewer hoping it does a better job. Adobe Reader has a sharper rendering for example (accompanied with a lot of drawbacks unfortunately). The important thing is: a print won't have those grey lines! – JBantje Mar 22 '16 at 23:39math fontare quite obvious and I'm not using Apple's PDFkit, for sure!) – cfr Mar 22 '16 at 23:45tikz-cd? Or does TikZ itself specifically provide this somewhere? – cfr Mar 23 '16 at 12:26tikz-cduses thearrowslibraries of TikZ/PGF – egreg Mar 23 '16 at 12:36tikz-cdmanual (specifically, the part concerned with thearrow styleoption), the optionarrow style=math fontis provided bytikz-cdrather thantikz; there is another optionarrow style=tikzthat relies on the standardarrowslibrary. – Gaussler Mar 23 '16 at 12:45arrowslibrary. – Gaussler Mar 23 '16 at 12:53arrowsorarrows.metalibraries.tikz-cdseems to just use a double line to draw them. (Tips and caps are from the libraries, but those aren't relevant here.) But perhaps I'm misreading the code as I don't see why changing the tips for the other arrows should affect the drawing of double lines. You can change the background colour, by the way, andtikz-cdwill pick this up and use it for the colour between the two lines i.e. for the second line it draws to create the 'double' line effect. (It draws a thick line and then a thinner.) – cfr Mar 23 '16 at 12:56math fontoption does is hack into the font and grab the tips of everything. That includes the “tips” of equality signs. This is probably meant to ensure a consistent look of these (spacing and width of lines), but the result is obviously not satisfactory. – Gaussler Mar 23 '16 at 13:22.tipto empty for this case, though. Unless it adds something somewhere else. (I didn't check through.) – cfr Mar 23 '16 at 13:58