4

Is it possible to make TikZ identify the LaTeX font used in the current document and (say through defining a proper "mimic style") make it automatically draw arrows with the "same" shape?

MWE:

\documentclass[border=10pt]{standalone}
\usepackage{tikz,fourier}
\begin{document}
\tikz{\draw [->] (0,0) -- (1,0);}
$\rightarrow$
\end{document}

How can the TikZ arrow be made to match, just given the current font configuration?

mismatch

  • It does not seem clear to me what you mean by "mimetize" (mimic?) the same shape. – strpeter Mar 30 '17 at 14:31
  • @strpeter I mean "looking as close as possible". – suitangi Mar 30 '17 at 14:33
  • 1
    So can you give a visualized example? I simply do not get your point. – strpeter Mar 30 '17 at 14:35
  • The shape of an arrow (say \rightarrow) depends on the font used, I would like TikZ to recognize this font, and adapt its arrows accordingly. – suitangi Mar 30 '17 at 14:39
  • This needs a massive amount of effort if you want all fonts. – percusse Mar 30 '17 at 14:47
2

As I commented, see 's manual for more information

\documentclass[border=10pt]{standalone}
\usepackage{tikz-cd,fourier}
\begin{document}

\tikzset{
    fourier to/.tip={Glyph[glyph math command=rightarrow]},
    fourier notowns/.tip={Glyph[glyph math command=notowns]},
}

\tikz[line width=.53pt]\draw[fourier notowns-fourier to](0,0)to[bend right](1,0);

\end{document}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.