[Tex/LaTex] How to use pxfonts with the standard KOMA Script font

fontskoma-scriptsans-serif

In an earlier question I asked how to display a triple line integral. This was not possible with the earlier package mathpazo which I use, so I would like to switch to pxfonts. This package, if I understand it correctly, contains a set of different fonts of different families, including an extended Palatino that allows me to use the \oiiint command.

My earlier font combination was the standard KOMA Script sans serif font (forgot its name unfortunately) with Palatino as serif font, which fits nicely in my opinion.
How can I achieve the same combination using the scrbook class and the pxfonts package?

Best Answer

Besides redefining \sfdefault, as lockstep suggested, the math sans serif font should also be changed. Otherwise it would still be Helvetica.

\documentclass{scrartcl}
\usepackage{pxfonts}
\renewcommand*{\sfdefault}{cmss}
\DeclareMathAlphabet{\mathsf}{OT1}{cmss}{m}{n}
\SetMathAlphabet{\mathsf}{bold}{OT1}{cmss}{bx}{n}
\begin{document}
\section{Text}
Text
\( \mathsf{Text} \)
\boldmath
\( \mathsf{Text} \)
\end{document}

cmss with pxfonts