I would like to get a curly f lowercase letter for a mathematic formula. But the following example
\documentclass{minimal}
\begin{document}
$$\mathcal{f}$$
\end{document}
Leads to this output
I use texlive2021. I tried on overleaf and it outputs the same result. But on katex.org on the contrary the mathcal commands seems to be ignore.

$$...$$for displayed math in LaTeX. Always use\[...\]or\begin{displaymath}...\end{displaymath}or one of theamsmathenvironments. – cabohah Feb 15 '23 at 12:55