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

14
  • It does not seem clear to me what you mean by "mimetize" (mimic?) the same shape.
    – strpeter
    Commented Mar 30, 2017 at 14:31
  • @strpeter I mean "looking as close as possible".
    – suitangi
    Commented Mar 30, 2017 at 14:33
  • 1
    So can you give a visualized example? I simply do not get your point.
    – strpeter
    Commented Mar 30, 2017 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
    Commented Mar 30, 2017 at 14:39
  • This needs a massive amount of effort if you want all fonts.
    – percusse
    Commented Mar 30, 2017 at 14:47

1 Answer 1

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}

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .