What is the correct way of having all operator names be set in, say, sans serif? Saying
\documentclass{article}
\usepackage{amsmath}
\makeatletter
\def\operator@font{\sf}
\makeatother
\DeclareMathOperator\operator{operator}
\begin{document}
An $\operator 1$.
\end{document}
seems to do the trick, but amsopn.sty defines
\def\operator@font{\mathgroup\symoperators}
which seems to do more...
It would be nice if there were a @-free way of doing this, by the way.
\operator@font, which is used in other macros with that name. Either use\makeatletterand\makeatotheror rewriteamsopn.styin order not to use\operator@font. I guess that the choice is easy. :) – egreg Feb 02 '12 at 00:02