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}
PDFkit
renderer (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!math font
are quite obvious and I'm not using Apple's PDFkit, for sure!)