# newtx font makes arrows bigger in tikz-cd

I noticed that the newtx font somehow makes the arrows in tikz-cd diagrams appear significantly bigger. I wonder why that is and if there would be any way to solve this issue.

MWE below.

The code

\documentclass[11pt,a4paper]{article}
\usepackage[utf8]{inputenc}

\usepackage{tikz-cd}
%\usepackage{newtxtext}
%\usepackage{newtxmath}

\begin{document}
$\begin{tikzcd} X_0 \rar & X_1 \lar[shift left=1.5] \lar[shift right=1.5] \rar[shift right=1.5] \rar[shift left=1.5] & X_2 \lar\lar[shift right=3]\lar[shift left=3] \rar \rar[shift left=3] \rar[shift right=3] & \dots \lar[shift left=1.5]\lar[shift left=4.5]\lar[shift right=1.5]\lar[shift right=4.5] \end{tikzcd}$
\end{document}


yields the following picture :

but uncommenting the newtxtext and math will give me this :

• Arrows in the newtxmath font are bigger, that's the main reason. – egreg May 25 '19 at 15:45
• I'm voting to close this question because the problem has been solved with the comment. – Sebastiano Apr 4 '20 at 21:09
• @ged it would be better to post your edit as a self-answer to the question (in the Answer box) and remove it from the question text. – Marijn Apr 5 '20 at 12:16
• @all I voted to reopen to allow a self-answer to be posted. – Marijn Apr 5 '20 at 12:17

I found a quick way to fix it by simply changing my arrow tips (allowing me to also match the arrow style of the newtx font). By simply adding

\tikzset{>={Straight Barb[scale = 0.7]}}
\tikzcdset{arrow style=tikz}


to my preamble I get this :

which already looks much nicer. I still wonder what causes the problem in the first place and would appreciate any insight.

It is in general better to make these changes local since they may affect other tikzpictures if they are not.

\documentclass[11pt,a4paper]{article}
\usepackage[utf8]{inputenc}

\usepackage{tikz-cd}
\usepackage{newtxtext}
\usepackage{newtxmath}
\tikzcdset{smaller arrows/.style={arrow style=tikz,every arrow/.append style={>={Straight Barb[scale = 0.7]}}}}
\begin{document}
$\begin{tikzcd}[smaller arrows] X_0 \rar & X_1 \lar[shift left=1.5] \lar[shift right=1.5] \rar[shift right=1.5] \rar[shift left=1.5] & X_2 \lar\lar[shift right=3]\lar[shift left=3] \rar \rar[shift left=3] \rar[shift right=3] & \dots \lar[shift left=1.5]\lar[shift left=4.5]\lar[shift right=1.5]\lar[shift right=4.5] \end{tikzcd}$
\end{document}