The bm package

大抵大体これくらいで。

\newcommand\hmmax{0} % default 3
\newcommand\bmmax{1} % default 4
\usepackage{bm}