Closely Related To : Ugly spacing around f in math mode . I wonder how I should define an "f" that does not designate a function, but is just standard lettering. For example, I have contributors that may want to write ax + by + cz + and on occasion they letter all the way beyond f. (It would be better if they chose different naming schemes, but this is not my call.) So, I am thinking:
\newcommand{\f}{\hspace{-3pt}f\hspace{-5pt}}
as in
\documentclass[12pt]{article}
\usepackage{charter}
\usepackage{amsmath}
\begin{document}
\Huge
text test abcdefghi
text test \textit{abcdefghi}
math test $abcdefghi$ --- bad
math test $\text{a}\text{b}\text{c}\text{d}\text{e}\text{f}\text{g}\text{h}\text{i}$ --- not italic
math test $abcde\text{f}ghi$ --- bad
math test $abcde\text{\it f}ghi$ ---still bad
math test $abcde\hspace{-0.1em}fghi$ --- better
math test $abcde\hspace{-3pt}f\hspace{-5pt}ghi$ --- better
\newcommand{\f}{\hspace{-3pt}f\hspace{-5pt}}
math test $abcde{\f}ghi$ --- same
\end{document}
is this the recommended way of doing this? and if I wanted all "f" to lose their special appearance in math mode, how would I do this?
advice appreciated.
regards, /iaw

abcdefif you do not like thefin some font, choose a different font, anything else is likely to lead to pain. there is nothing special aboutfin tex math mode, just as every other letter it is just whatever the font designer chose. – David Carlisle Mar 10 '17 at 18:05\newcommand{\f}{\mkern-2mu f\mkern-3mu}-- use math length units in math mode... – Mico Mar 10 '17 at 20:57operatorsand upright serif text. – cfr Mar 11 '17 at 02:06\it.{\it f}is going to give you a crappy result regardless of mode because you've forgotten to include any italic correction. If you don't want to think about that, don't use TeX font commands (which have other disadvantages and should be avoided for those reasons anyway). – cfr Mar 11 '17 at 02:11