How to write
$\hat{f}$
to obtain hat above italics f in better way?
\documentclass[article]{report}
\usepackage{amssymb}
\usepackage{amsthm}
\usepackage[T1]{fontenc}
\pdfmapfile{+winfonts.map}
\renewcommand\rmdefault{trebuchet}
\usepackage[cm]{sfmath}
\begin{document}
\begin{equation}
\hat{f}(\xi)
\end{equation}
\end{document}


\documentclass{article} \begin{document} $\hat{f}$ \end{document}. Please post a minimal working example (MWE) if you want others to be able to help you. – frougon Apr 11 '20 at 12:24\begin{document}
$\hat{f}$
\end{document}
– frougon Apr 11 '20 at 12:39(BTW,\mathrel` doesn't make much sense for a function).\mathrel, not the rest... – frougon Apr 11 '20 at 12:41\mathrelworks but not with trebuchet font as in my example. I need this font. – Carly Apr 11 '20 at 12:42\renewcommand\rmdefault{trebuchet}has no influence on the$\hat{f}$, AFAICT. It is\sfdefaultthat matters according to the documentation insfmath.sty. – frougon Apr 11 '20 at 12:53\usepackage[cm]{sfmath}it works but it is not trebuchet. – Carly Apr 11 '20 at 13:06winfonts.mapfile, but to the best of my knowledge, thefin your example is typeset in Computer Modern Sans Serif, akacmss. You can use\showoutputto make sure. I get\OT1/cmss/m/sl/10 fwith your example, which confirms my assertion. This is not a math font, and is used in horizontal mode inside an\hbox! No wonder math accents can't be placed correctly in these conditions. – frougon Apr 11 '20 at 13:21fdoesn't use trebuchet unless yourwinfonts.mapoverrides things in a way I can't guess (which is not clearly visible in your screenshot, anyway). – frougon Apr 11 '20 at 13:28sansmathaccent, like this: `\documentclass{article} \usepackage{sfmath} \usepackage{sansmathaccent}\begin{document}
$\hat{f}$
\end{document}` (found here).
– frougon Apr 11 '20 at 13:35