# \bf is an undefined command [duplicate]

I am very new to Latex and I am getting this error:

Class scrartcl Error: undefined old font command \bf'.
See the scrartcl class documentation for explanation.
Type H <return> for immediate help.... \maketitle


My template is never even using \bf but I still get this error. I am using the newest version of Texmaker.

## marked as duplicate by Ruben, egreg errors StackExchange.ready(function() { if (StackExchange.options.isMobile) return; $('.dupe-hammer-message-hover:not(.hover-bound)').each(function() { var$hover = $(this).addClass('hover-bound'),$msg = $hover.siblings('.dupe-hammer-message');$hover.hover( function() { $hover.showInfoMessage('', { messageElement:$msg.clone().show(), transient: false, position: { my: 'bottom left', at: 'top center', offsetTop: -7 }, dismissable: false, relativeToBody: true }); }, function() { StackExchange.helpers.removeMessages(); } ); }); }); Jan 3 '17 at 14:07

• clearly some code in your document is using \bf (it should use \bfseries but if you give no information it is hard to know what to change) or add \DeclareOldFontCommand{\bf}{\normalfont\bfseries}{\mathbf} to your preamble to define \bf – David Carlisle Jan 3 '17 at 13:35
• Note this is unrelated to texmaker which is just the editor used for producing the tex source file. – David Carlisle Jan 3 '17 at 13:36
• I have no idea, I only know that when I am searching for \bf there are no results. So \bf is not here. I never wanted to use latex because of such errors. It is just frustrating. – Dominik K Jan 3 '17 at 13:39
• @DominikK Most likely it's being used in a package which is (still) using the deprecated \bf command. Can you edit into the question your preamble (from \documentclass to \begin{document}). – Joseph Wright Jan 3 '17 at 13:43
• The definition I suggest will make the error go, the use of \bf is in a definition of \maketitle in some file that you are using. – David Carlisle Jan 3 '17 at 13:43

The error message is showing that you have a local redefinition of (some command used in) the definition of \maketitle that uses \bf.
\bf has not been defined by default since 1993 so the code you are using seems a little old.
Rather than debugging that, simpler would be to use the definition of \bf as used for example by article class
\DeclareOldFontCommand{\bf}{\normalfont\bfseries}{\mathbf}

will define \bf` to work as it worked in LaTeX2.09.