[Tex/LaTex] How to make italic and bold letter with \pmb command

amsmathboldmathitalic

I'd like to italicize the letter in the following code:

\documentclass{article}
\usepackage{amsmath}
\begin{document}
$\pmb{\mathsf{z}}$
\end{document}

I've already read the discussion in this thread, but it does not offer a solution for the \pmb command. Any help?

P.S. Since I've already used \boldsymbol, I would like to use a different notation style for the letter above.

Best Answer

The Computer Modern fonts lack sans serif boldface slanted, but the Latin Modern fonts have it.

\documentclass{article}
\usepackage{amsmath}

\DeclareMathAlphabet{\mathsfit}{OT1}{lmss}{m}{sl}
\DeclareMathAlphabet{\mathsfbfit}{OT1}{lmss}{bx}{sl}

\begin{document}
$\mathsfit{z}\ne\mathsfbfit{z}$
\end{document}

enter image description here

A slightly different solution that avoids wasting a math group (useful if you happen to use up them all):

\documentclass{article}
\usepackage{amsmath}
\usepackage{bm}

\DeclareMathAlphabet{\mathsfit}{OT1}{lmss}{m}{sl}
\SetMathAlphabet{\mathsfit}{bold}{OT1}{lmss}{bx}{sl}

\begin{document}
$\mathsfit{z}\ne\bm{\mathsfit{z}}$
\end{document}