[Tex/LaTex] Semi-bold \mathbf

fonts

Is there a way to obtain semi-bold version of the standard \mathbf command?

I'm using the kpfonts package which somewhat reduces the weight in \mathbf but I'd still like to lighten it a bit. Is there a command for doing so?

Best Answer

You can use the rmx option that provides a semi-bold weight.

Here's the output with just \usepackage{kpfonts}

enter image description here

Here's how to get semi-bold:

\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage[rmx]{kpfonts}
\renewcommand{\bfdefault}{sb}

\makeatletter
\DeclareMathAlphabet{\mathbf}{OT1}{jkpx}{sb}{n}
\SetMathAlphabet{\mathbf}{bold}{OT1}{jkpx}{b}{n}
\makeatother

\begin{document}

abc\textbf{abc}abc$\mathrm{a}\mathbf{b}$

\end{document}

enter image description here

Related Question