In equations (2) and (3), both of which use TikZ, how do I get the arrow tips to be the same as those produced as in equation (1) by the math font in use?
\documentclass[12pt]{article}
\usepackage{tikz-cd}
\usetikzlibrary{arrows.meta,decorations.markings}
\usepackage{newtxtext,newtxmath}
\begin{document}
\begin{equation} % eq 1
A \longrightarrow B \rightarrow C
\end{equation}
%
\begin{equation} % eq 2
\begin{tikzcd}
A \arrow[r]{$f$} & B
\end{tikzcd}
\end{equation}
%
\begin{equation} % eq 3
\begin{tikzpicture}[
middlearrow/.style 2 args={
thick,
decoration={
markings,
mark=at position 0.5 with {\arrow{>}, \node[#1]{#2};}
},
postaction={decorate}
},
]
\draw[middlearrow={below}{$\sigma$}] (0,0) -- (2,0);
\draw[thick,->=-latex] (0, -1) -- (2, -1);
\end{tikzpicture}
\end{equation}
\end{document}
[![Want TikZ arrow tips to match tips of math font's arrows][1]][1]
Note: I am not asking the reverse question! That is, I am not asking how to modify the arrows produced by \rightarrow
, etc., to match those produced by TikZ.
Addition: I have the same question — just about matching the arrow heads, not about the syntax — but for using TeX Gyre Termes Math font (with XeLaTeX) instead of newtxmath. See: How make TikZ arrow tips match arrows with TeX Gyre Termes Math font? [1]: https://i.sstatic.net/bfm2P.png
\draw[thick,->=-Straight Barb] (0, -1) -- (2, -1);
but get no change! And I haven't a clue to the correct syntax to get it in themiddlearrow
construction.]