I am using the default font, Computer Modern Roman, and I am trying to get \operatorname
to work properly. The issue is that it appears to look identical to normal text. This question: LuaLaTeX: No kerning within \operatorname when not loading lmodern package shows a method for resolving this in LuaTex.
How can I achieve this in pdfTex?
Example
\documentclass{report}
% Math packages
\usepackage{mathtools}
\usepackage{amsfonts}
\usepackage{amssymb}
\begin{document}
$foo$ foo $\operatorname{foo}$
\end{document}
In the above image the last two words should not look the same.
If you switch the default font, for example: \renewcommand*\rmdefault{bch}
. You will get the following result:
I don't want to change the default font, I just want to make \operatorname
show a distinction.
\operatorname
to be typeset differently. This is for use in my thesis which has a lot of math and I need a clear distinction between text, symbols, and function names (among other things). In this context,\operatorname
would be used to describe a function name, similar to how\sin
is used to describe the sine function.\operatorname{\text{foo}}
?