What is the difference between math font \xx{} and \mathxx{} where xx=rm, bf, cal?
When I use them it seems that the \xx{} formats all the words after it.
But \mathxx{} formats only what is between brackets {}.
Is this correct?
What is the difference between math font \xx{} and \mathxx{} where xx=rm, bf, cal?
When I use them it seems that the \xx{} formats all the words after it.
But \mathxx{} formats only what is between brackets {}.
Is this correct?
Commands like \bf are obsolete in LaTeX. See, e.g., Always \textrm, never \rm? A counterexample?.
Moreover, the proper usage is {\bf your text}, because it is a global switch. In math mode you can use \mathxx or also \textxx. In particular, in the former spaces are omitted, in the latter they behave like in normal text.
\bf,\rmetc. should not be used any longer, but rather\textbf{},\textrm{}etc. and this will also distinguish them clearly from\mathbf{}etc. as well astextto\mathmode, so the answer is yes, it is correct – Jul 13 '14 at 14:43KOMAclasses explicitly shipout warnings if the code encounters\bfetc. command, this as tiny remark – Jul 13 '14 at 14:49