I am using natbib with agsm (harvard citation style), which apparently uses the deprecated \bf command. Upon compiling, I receive a hundred warnings. Does this mean that agsm is itself deprecated? If so, how do I get exactly the same layout with a more recent style?

  • @MERose The command \bf was deprecated twenty years ago. Unfortunately, people continue to use it. Markus Kohm, in his KOMA classes, decided to add the warning (it's a good thing, in my opinion), but he can do nothing with software from third parties.
    – egreg
    Nov 27 '15 at 18:21
  • 1
    @egreg: the old meaning of \bf is deprected, but the definition in the article class imho maps the command to something sensible. People like short commands, and \bf has compared to \bfseries the advantage to be usable in math too. Imho Markus should either drop the command -- nobody can force him to provide it -- or use the article definition. Nov 27 '15 at 20:21

Add \DeclareOldFontCommand{\bf}{\normalfont\bfseries}{\mathbf} to your document to get rid of the warnings.

  • in my opinion the fact that there is such a work-around only stresses how disputable is the decision of Markus to issue all these harassing warnings. Why didn't the class simply apply itself the redefinition you advocate ?
    – user4686
    Nov 27 '15 at 20:05
  • @jfbu This is not a redefinition, but the standard definition from article.cls. It is KOMA that uses another definition. I don't understand all the warnings either. Beside filling the log file, it broke tex4ht. Imho Markus should either remove the commands completely or simply use the standard definition. Nov 27 '15 at 20:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.